-
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
[RELAY][DYN] Dynamic UpSampling3D Op #6353
Conversation
@mbrookhart @zhiics can you 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, one change I don't quite understand.
Can you rebase?
func = relay.Function([x, scale_d_var, scale_h_var, scale_w_var], z) | ||
|
||
for target, ctx in ctx_list(): | ||
##TODO(mbrookhart)(electriclilies): remove when VM supports heterogeneous execution |
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.
we can try gpu tests now
verify_upsampling((1, 16, 32, 32), 2.0, 2.0,"NCHW", "nearest_neighbor") | ||
verify_upsampling((1, 16, 32, 32), 2.0, 2.0, "NCHW", "bilinear", True) | ||
verify_upsampling((1, 16, 32, 32), 2.0, 2.0, "NHWC", "nearest_neighbor") | ||
##TODO(mbrookhart)(electriclilies): remove when VM supports heterogeneous execution |
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.
ctx_list has been removed. Use enabled_targets and we can enable GPU tests now
Thanks @electriclilies @mbrookhart |
* frontend and start of cpp impl * upsampling3d typerel and makefunc * impl upsampling3d dynamic to static pass * passes test_dyn_upsampling3d_infer_type_const * fix bugs and improve doc for resize and upsampling * code cleanup * make tests more complex * code cleanup, fix test_dyn_upsampling3d_run * fix typo * ci not working
* frontend and start of cpp impl * upsampling3d typerel and makefunc * impl upsampling3d dynamic to static pass * passes test_dyn_upsampling3d_infer_type_const * fix bugs and improve doc for resize and upsampling * code cleanup * make tests more complex * code cleanup, fix test_dyn_upsampling3d_run * fix typo * ci not working
* frontend and start of cpp impl * upsampling3d typerel and makefunc * impl upsampling3d dynamic to static pass * passes test_dyn_upsampling3d_infer_type_const * fix bugs and improve doc for resize and upsampling * code cleanup * make tests more complex * code cleanup, fix test_dyn_upsampling3d_run * fix typo * ci not working
This PR implements the dynamic version of the UpSampling3D relay op. After this is merged, we will be able to remove the final infer_value calls from the onnx importer, allowing us to import truly dynamic onnx graphs into relay. I also cleaned up some documentation and tests for upsampling and resize
It is very similar to the dynamic UpSampling op (see #6273).
@mbrookhart @zhiics @icemelon9 please take a look