-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register shape functions for some image related ops #6373
Conversation
out = output_tensor((4,), "int64") | ||
out[0] = int64(data[0]) | ||
out[1] = int64(2) | ||
out[2] = int64(target_shape[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we support different layout for affine_grid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I don't think so.
out[0] = int64(data[0]) | ||
out[1] = int64(data[1]) | ||
out[2] = int64(grid[2]) | ||
out[3] = int64(grid[3]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question here. different layout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I think it only supports NCHW
ping @Laurawly @icemelon9 please follow up |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please resolve the conflict
tests/python/relay/test_any.py
Outdated
y = relay.image.resize(data, size, layout) | ||
mod["main"] = relay.Function([data], y) | ||
data_np = np.random.uniform(size=static_data_shape).astype(dtype) | ||
for kind in ["debug", "vm"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, this has been moved to test_result
and you may want to annotate the test with @tvm.testing.uses_gpu
if gpu is supported
6a6fda5
to
4441338
Compare
* debugging * added three shape funcs * fix lint * address comment * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts
* debugging * added three shape funcs * fix lint * address comment * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts
* debugging * added three shape funcs * fix lint * address comment * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts * resolve conflicts
Added shape functions for image.resize, image.grid_sample and image.affine_grid
@icemelon9 Could you please review?