[Relax][ONNX] Parse ONNX Upsample to Relax resize2d #18180
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upsampleop during conversion, the node name still ends with/resize.From ONNX version 10 onward, the
Upsampleop is no longer supported (This version of the operator has been deprecated since version 10. ref: https://onnx.ai/onnx/operators/onnx__Upsample.html)resize2dprovides a superset ofupsample(2-D) capabilities, and end-to-end model results are correct, soresize2dfully covers the need.upsamplingorupsampling3dbased on the input rank. For the 3-D case, Relax could translateupsampling3dtoresize3d(TOPI already has the resze3d implementation), but Relax currently lacks aresize3doperator.Therefore, if we ever need
upsampling3din the future, the better path would be to add the more capableresize3doperator at the Relax op level.