Skip to content

Commit 4fb49f8

Browse files
committed
pre commit fix
1 parent 8bc29a6 commit 4fb49f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nncf/common/graph/operator_metatypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def wrap(obj: Type[OperatorMetatype]) -> Type[OperatorMetatype]:
114114
self._op_name_to_op_meta_dict[name] = obj
115115
if hasattr(obj, "module_to_function_names"):
116116
for namespace, function_names in obj.module_to_function_names.items():
117-
for function_name in function_names:
117+
for function_name in function_names:
118118
target_function_name = f"{namespace.value}.{function_name}"
119-
if target_function_name in self._func_name_to_op_meta_dict.keys():
119+
if target_function_name in self._func_name_to_op_meta_dict:
120120
msg = (
121121
"Inconsistent operator metatype registry - single patched "
122122
f"op name `{target_function_name}` maps to multiple metatypes!"

0 commit comments

Comments
 (0)