@@ -33,7 +33,9 @@ class ToCopySupported(SupportedTOSAOperatorCheck):
3333
3434 @staticmethod
3535 def _merge_supported_types (
36- dtypes1 : SupportedTypeDict , dtypes2 : SupportedTypeDict
36+ # pyre-ignore[11]
37+ dtypes1 : SupportedTypeDict ,
38+ dtypes2 : SupportedTypeDict ,
3739 ) -> SupportedTypeDict :
3840 merged_dtypes = dtypes1
3941 for k , v in dtypes2 .items ():
@@ -92,7 +94,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
9294 if input_dtype not in supported_dtypes :
9395 logger .info (
9496 f"Input dtype { input_val .dtype } is not supported in "
95- f"{ node .target .name ()} ."
97+ f"{ node .target .name ()} ." # pyre-ignore[16]
9698 )
9799 return False
98100
@@ -102,7 +104,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
102104 if output_val .dtype not in supported_dtypes [input_dtype ]:
103105 logger .info (
104106 f"Output dtype { output_val .dtype } is not supported in "
105- f"{ node .target .name ()} for input dtype { input_dtype } . "
107+ f"{ node .target .name ()} for input dtype { input_dtype } . " # pyre-ignore[16]
106108 f"Supported output types: "
107109 f"{ '' .join (str (t ) for t in supported_dtypes [input_dtype ])} "
108110 )
@@ -113,7 +115,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
113115 if node .kwargs ["memory_format" ] in (torch .preserve_format ,):
114116 logger .info (
115117 f"Argument 'memory_format' is not supported for "
116- f"{ node .target .name ()} right now."
118+ f"{ node .target .name ()} right now." # pyre-ignore[16]
117119 )
118120 return False
119121
0 commit comments