From 7739f8dd381b238da5f870e386ae866193897f0b Mon Sep 17 00:00:00 2001 From: anzr299 Date: Mon, 29 Jul 2024 11:27:59 +0400 Subject: [PATCH] Remove VectorNormOp, ClampOp, EmptyOp due to no effect on the algorithm --- nncf/torch/graph/operator_metatypes.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/nncf/torch/graph/operator_metatypes.py b/nncf/torch/graph/operator_metatypes.py index a22574258be..7e91dab2162 100644 --- a/nncf/torch/graph/operator_metatypes.py +++ b/nncf/torch/graph/operator_metatypes.py @@ -1101,24 +1101,6 @@ class PTScaledDotProductAttentionMetatype(PTOperatorMetatype): target_input_ports = [0, 1] -@PT_OPERATOR_METATYPES.register() -class PTEmptyMetatype(PTOperatorMetatype): - name = "EmptyOp" - module_to_function_names = {NamespaceTarget.TORCH: ["empty"]} - - -@PT_OPERATOR_METATYPES.register() -class PTVectorNormMetatype(PTOperatorMetatype): - name = "VectorNormOp" - module_to_function_names = {NamespaceTarget.ATEN: ["linalg_vector_norm"]} - - -@PT_OPERATOR_METATYPES.register() -class PTClampMetatype(PTOperatorMetatype): - name = "ClampOp" - module_to_function_names = {NamespaceTarget.TORCH: ["clamp", "clamp_min"]} - - def get_operator_metatypes() -> List[Type[OperatorMetatype]]: """ Returns a list of the operator metatypes.