Skip to content

Commit

Permalink
Remove VectorNormOp, ClampOp, EmptyOp due to no effect on the algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
anzr299 committed Jul 29, 2024
1 parent 909fb13 commit 7739f8d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions nncf/torch/graph/operator_metatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7739f8d

Please sign in to comment.