From 2efda7dd16276c8d8f70fabfb9a94b4bcd7af08f Mon Sep 17 00:00:00 2001 From: Nikita Savelyev Date: Tue, 24 Sep 2024 12:16:58 +0200 Subject: [PATCH] Add GroupNorm to the OV list of ignored ops for ModelType.TRANSFORMER (#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 --- nncf/quantization/algorithms/min_max/openvino_backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nncf/quantization/algorithms/min_max/openvino_backend.py b/nncf/quantization/algorithms/min_max/openvino_backend.py index 80776336839..dfe144c1ad0 100644 --- a/nncf/quantization/algorithms/min_max/openvino_backend.py +++ b/nncf/quantization/algorithms/min_max/openvino_backend.py @@ -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,