Skip to content

[Issue]: concat_op.axis >= 0 assertion violates onnx spec #4569

@shssoichiro

Description

@shssoichiro

Problem Description

When compiling certain onnx models via migraphx, an assertion is thrown from this line. I reproduced this on multiple of the SwinIR models from the vs-mlrt repo. However, the onnx spec states that valid axis values are "[-r, r-1] where r = rank(inputs)". Therefore, this assert violates the onnx spec, and the code needs to be updated to support negative axis values.

Operating System

CachyOS Linux 6.18.6

CPU

AMD Ryzen 9800x3d

GPU

AMD Radeon RX 7900 XTX

Other

No response

ROCm Version

ROCm 6.0.0

Steps to Reproduce

  • Download the onnx-formatted SwinIR models from vs-mlrt
  • Run the migraphx compilation command, e.g. migraphx-driver compile --onnx /usr/lib/vapoursynth/models/swinir/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x2_GAN.onnx --gpu --optimize --binary --output /usr/lib/vapoursynth/models/swinir/003_realSR_BSRGAN_DFO_s64w8_SwinIR-M_x2_GAN.onnx.1920x1080_fast_migx-2.14.0_AMD-Radeon-RX-7900-XTX_79bab741.mxr --input-dim @input 1 3 1080 1920

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

The dropdown for ROCm version only goes as high as 6.0, but I encountered this running ROCm 7.1.1. The dropdown needs updated in the issue template.

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