migraphx-benchmark / AMDMIGraphX

AMD's graph optimization engine.
https://rocmsoftwareplatform.github.io/AMDMIGraphX/doc/html/
MIT License
0 stars 1 forks source link

Upsample ver7 unsupported #142

Closed attila-dusnoki-htec closed 8 months ago

attila-dusnoki-htec commented 8 months ago

The following models fail:

Udnie udnie-8.onnx 8 CONVOLUTION: mismatched channel numbers https://github.com/onnx/models/blob/main/vision/style_transfer/fast_neural_style/model/udnie-8.onnx
Pointilism pointilism-8.onnx 8 CONVOLUTION: mismatched channel numbers https://github.com/onnx/models/blob/main/vision/style_transfer/fast_neural_style/model/pointilism-8.onnx
Mosaic mosaic-8.onnx 8 CONVOLUTION: mismatched channel numbers https://github.com/onnx/models/blob/main/vision/style_transfer/fast_neural_style/model/mosaic-8.onnx
Candy candy-8.onnx 8 CONVOLUTION: mismatched channel numbers https://github.com/onnx/models/blob/main/vision/style_transfer/fast_neural_style/model/candy-8.onnx
Rain Princess rain-princess-8.onnx 8 CONVOLUTION: mismatched channel numbers https://github.com/onnx/models/blob/main/vision/style_transfer/fast_neural_style/model/rain-princess-8.onnx

The problem is with Upsample: version-7 has scales as attribute, version-9 has scales as input. In MIGraphX, parse_resize is used for upsample, and it does not check for the attribute, only for the input.

Important to note that Upsample is deprecated.