Skip to content

Conversation

@qti-hungjuiw
Copy link
Contributor

Description

  • 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

  • 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.

- Move ReplaceUpsampleWithResize prior to SymbolicShapeInference
- Avoid unnecessary modification on model.opset_import
    - Setting model.opset_import manually prevents version_converter
      from successfully convertering the opset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants