Skip to content

Resize: custom axes attribute expansion (8 tests) #348

Description

@antimora

Summary

Resize rejects models using the axes attribute (opset 18+). 8 tests skip-codegen.

Error

Node 'resize1' (Resize): Invalid attribute 'axes': custom axes attribute is not supported

Example tests

  • test_resize_downsample_sizes_nearest_not_smaller
  • test_resize_tf_crop_and_resize_axes_2_3
  • test_resize_tf_crop_and_resize_axes_3_2
  • test_resize_upsample_scales_cubic_asymmetric_axes_2_3

Proposed fix

Same pattern as the Pad axes static-expansion that already landed (onnx-ir pad.rs::expand_axes_pads_to_full): when axes is a static attribute, expand the per-axis scales / sizes / roi to full-rank (identity = 1.0 scale / unchanged size / full roi on unlisted axes) at IR time, then feed the full-rank values to existing codegen.

Refs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions