onnxruntime
96ee72d7 - [QNN EP] Support Resize with 'asymmetric' transformation mode on HTP backend (#16060)

Commit
2 years ago
[QNN EP] Support Resize with 'asymmetric' transformation mode on HTP backend (#16060) ### Description - Adds support for Resize with the `asymmetric` coordinate transformation mode on the QNN HTP backend. - Adds unit test that shows this is only correct if the `nearest_mode` is `"floor"`. ### Motivation and Context This is needed to enable more models to run on the QNN HTP backend. Note: QNN's ONNX converter tool translates an ONNX Resize op with `{mode: "nearest", coordinate_transformation_mode: "asymmetric", "nearest_mode": <ANYTHING>}` to QNN's ResizeNearestNeighbor with `{align_corners: 0, half_pixel: 0}`. Unit tests show that this is only accurate if the ONNX attribute nearest_mode is "floor". Need to investigate how to handle other rounding modes. Ideally, we would use QNN's own Resize operator (instead of ResizeNearestNeighbor), but that doesn't support the "asymmetric" coordinate transformation mode on the HTP backend.
Parents
Loading