From f439ca1c1903e6d488595ba5ffe31980186f715e Mon Sep 17 00:00:00 2001 From: Nikita Malinin Date: Mon, 25 Sep 2023 20:42:51 +0200 Subject: [PATCH] Fix linter --- nncf/quantization/algorithms/min_max/algorithm.py | 4 ++-- nncf/quantization/algorithms/min_max/torch_backend.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nncf/quantization/algorithms/min_max/algorithm.py b/nncf/quantization/algorithms/min_max/algorithm.py index 9eebedcabb0..263423a127e 100644 --- a/nncf/quantization/algorithms/min_max/algorithm.py +++ b/nncf/quantization/algorithms/min_max/algorithm.py @@ -850,8 +850,8 @@ def _is_node_after_producers(node): def _apply_branch_merge_pass(self, quantizer_setup: SingleConfigQuantizerSetup, nncf_graph: NNCFGraph) -> None: if self._backend_entity.disable_branches_merge: - return - + return + destination_node_names = [] main_node = None quantization_point = None diff --git a/nncf/quantization/algorithms/min_max/torch_backend.py b/nncf/quantization/algorithms/min_max/torch_backend.py index 2c6213e4f0e..22844fd656f 100644 --- a/nncf/quantization/algorithms/min_max/torch_backend.py +++ b/nncf/quantization/algorithms/min_max/torch_backend.py @@ -66,7 +66,6 @@ class PTMinMaxAlgoBackend(MinMaxAlgoBackend): def disable_branches_merge(self) -> bool: return True - @property def mat_mul_metatypes(self) -> List[OperatorMetatype]: return [om.PTModuleLinearMetatype]