Support for set_aspect_ratio_policy for Resize (ONNX Opset 18)
@pfultz2 is already working on this.
Since May 6, 2026.
- Dominant language
- C++
- Stars
- 333
- Forks
- 150
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 54
Description
While working with ONNX Opset 18 models, I noticed that the MIGraphX ONNX parser
does not yet support the following Resize attributes:
axesset_aspect_ratio_policy
I may be missing some context, but there appears to be an active TODO in
parse_resize.cpp related to these attributes, suggesting this support is
planned but not yet implemented.
Error
model = migraphx.parse_onnx(onnx_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: /longer_pathname_so_that_rpms_can_support_packaging_the_debug_info_for_all_os_profiles/src/AMDMIGraphX/src/onnx/parse_resize.cpp:342: set_aspect_ratio_policy: PARSE_RESIZE: keep_aspect_ratio_policy is not supported!
heatmaps_resized = F.interpolate( heatmaps, size=self.target_hw, mode='bicubic', align_corners=True )
References
- ONNX Resize operator (Opset 18):
https://onnx.ai/onnx/operators/onnx__Resize.html
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.