Skip to content

Instantly share code, notes, and snippets.

@lp6m
Created September 25, 2018 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lp6m/ac28ff5cce008e13edd830ddd7f8889e to your computer and use it in GitHub Desktop.
Save lp6m/ac28ff5cce008e13edd830ddd7f8889e to your computer and use it in GitHub Desktop.
int32_t width = 9;
int32_t height = 4;
ImageParam ip(mk_virt_image_param<uint16_t>({width, height}));
ImageParam op(mk_zero_image_param<uint16_t>({width, height}));
Func f = convolve2d(ip);
iname = ip.name();
oname = f.name();
itouched = Box({{-1, 1}, {-1, 1}});
otouched = Box({{0, 0}, {0, 0}});
return TestParam(f, {}, {ip}, {op}, {0.0}, {iname, oname});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment