mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-27 22:45:57 +00:00
skip_infer for SkipGroupNorm in SymbolicShapeInference (#18630)
### Description <!-- Describe your changes. --> https://github.com/microsoft/onnxruntime/pull/18273 added `SkipGroupNorm` contrib op but it did not skip onnx shape inference for this op in `SymbolicShapeInference`. This leads to failed shape inference of the transformers optimized model with `enable_skip_group_norm=True`. Also results in an invalid float16 model for the SD CUDA example. This PR adds `SkipGroupNorm` to `skip_infer` so that it skips onnx shape inference for this op and instead uses the relevant dispatcher. ### 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. --> Fix shape inference failure for models with `SkipGroupNorm` nodes.
This commit is contained in:
parent
227dcb3a88
commit
c20488ced7
1 changed files with 1 additions and 0 deletions
|
|
@ -467,6 +467,7 @@ class SymbolicShapeInference:
|
|||
"PythonOp",
|
||||
"MultiHeadAttention",
|
||||
"GroupNorm",
|
||||
"SkipGroupNorm",
|
||||
"BiasSplitGelu",
|
||||
"BiasAdd",
|
||||
"NhwcConv",
|
||||
|
|
|
|||
Loading…
Reference in a new issue