onnxruntime
327fb1fd - [QNN EP] Use QNN's ResizeBilinear operator for specific configs of ONNX Resize (#20292)

Commit
1 year ago
[QNN EP] Use QNN's ResizeBilinear operator for specific configs of ONNX Resize (#20292) ### Description Uses QNN's ResizeBilinear operator for ONNX Resize with: - input rank: 4 - mode: linear - coordinate transformation mode: half_pixel, align_corners, or asymmetric #### Mapping matrix of ONNX Resize w/ "linear" mode on HTP backend. Table entries correspond to the QNN operator used for the given configuration (Resize = QNN Resize op, RBL = QNN ResizeBilinear op, X = Unsupported). | coordinate_transformation_mode | input_rank < 3 | input_rank = 3 | input_rank = 4 | input_rank = 5 | input_rank > 5 | | ------------- | ------------- |------------- |------------- |------------- |------------- | | half_pixel | X | Resize | RBL | Resize | X | | pytorch_half_pixel | X | Resize | Resize | Resize | X | | align_corners | X | Resize | RBL | Resize | X | | asymmetric | X | Resize | RBL | Resize | X | ### Motivation and Context QNN's ResizeBilinear operator seems to perform better (lower latency) than QNN's Resize operator for certain configurations.
Parents
Loading