onnxruntime
3e8be0e8 - Adjust Quantization Preprocessing on Opset Handling (#26503)

Commit
175 days ago
Adjust Quantization Preprocessing on Opset Handling (#26503) ### Description <!-- Describe your changes. --> - Moved `ReplaceUpsampleWithResize` in the quantization preprocessing pipeline to occur before `SymbolicShapeInference`, due to the current lack of shape inference support for the `Upsample` operator. Prevented unnecessary modifications to `model.opset_import`. Setting `model.opset_import` prior to invoking `onnx.version_converter` can interfere with successful opset conversion. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> - This change ensures the quantization preprocessing functions correctly by addressing limitations in shape inference for `Upsample`. - It also avoids potential issues with opset conversion caused by premature modification of `model.opset_import`.
Author
Parents
Loading