Skip to content

Commit

Permalink
Add GroupNorm to the OV list of ignored ops for ModelType.TRANSFORMER (
Browse files Browse the repository at this point in the history
…#2985)

### Changes

Add `OVGroupNormalizationMetatype` to the list of op types ignored with
`ModelType.TRANSFORMER`.

For PT backend it is already present. For ONNX backend there is no such
metatype.

### Reason for changes

It was observed that with update to OV 2024.4 some models are converted
in such a way that in places where there was an MVN node before, now is
a GroupNorm node. Since GroupNorm is not ignored, it leads to FQs being
placed for them.

### Related tickets

152427
  • Loading branch information
nikita-savelyevv authored Sep 24, 2024
1 parent 05f37f5 commit 2efda7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nncf/quantization/algorithms/min_max/openvino_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def get_ignored_metatypes(model_type: ModelType, device: TargetDevice) -> List[O
om.OVSumMetatype,
om.OVSquaredDifferenceMetatype,
om.OVMVNMetatype,
om.OVGroupNormalizationMetatype,
om.OVBatchNormMetatype,
om.OVDivideMetatype,
om.OVSqrtMetatype,
Expand Down

0 comments on commit 2efda7d

Please sign in to comment.