-
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
[ONNX] Resize op converter and add half_pixel mode to Resize op #4536
Conversation
LGTM, nice job! |
should we close this one? |
@yzhliu ok, I'll open another PR for onnx bits, when the CI is ready. |
@masahi I'm getting this error:
It's from a PyTorch 1.3 -> ONNX v4 opset version 11 model Does it have a different type of option in the Resize operator or isn't the error handling not updated yet? |
@Aeroxander if you are using the change in this PR correctly, you shouldn't get that error. ONNX change is not merged upstream, so you need to manually add them to your repo. |
Implemented a working opset 11 Resize op converter with test cases validated against onnxruntime.
It needs #4538 to be merged.
I removed the "align_corners" option from resize op, and instead introduced "coordinate_transformation_mode" option, which can be
Refer to ONNX Resize op spec for the meaning of these options.
Related discussion:
https://discuss.tvm.ai/t/relay-onnx-frontend-implement-resize-operation/5131/6