ROCm / ROCm/AMDMIGraphX

Support for set_aspect_ratio_policy for Resize (ONNX Opset 18)

Open
#4,840 1 comment 0 reactions 1 assignee View on GitHub

@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:

  • axes
  • set_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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.