Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions backends/arm/operator_support/to_copy_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class ToCopySupported(SupportedTOSAOperatorCheck):

@staticmethod
def _merge_supported_types(
dtypes1: SupportedTypeDict, dtypes2: SupportedTypeDict
# pyre-ignore[11]
dtypes1: SupportedTypeDict,
dtypes2: SupportedTypeDict,
) -> SupportedTypeDict:
merged_dtypes = dtypes1
for k, v in dtypes2.items():
Expand Down Expand Up @@ -92,7 +94,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
if input_dtype not in supported_dtypes:
logger.info(
f"Input dtype {input_val.dtype} is not supported in "
f"{node.target.name()}."
f"{node.target.name()}." # pyre-ignore[16]
)
return False

Expand All @@ -102,7 +104,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
if output_val.dtype not in supported_dtypes[input_dtype]:
logger.info(
f"Output dtype {output_val.dtype} is not supported in "
f"{node.target.name()} for input dtype {input_dtype}. "
f"{node.target.name()} for input dtype {input_dtype}. " # pyre-ignore[16]
f"Supported output types: "
f"{''.join(str(t) for t in supported_dtypes[input_dtype])}"
)
Expand All @@ -113,7 +115,7 @@ def is_node_supported(self, node: fx.Node, tosa_spec: TosaSpecification) -> bool
if node.kwargs["memory_format"] in (torch.preserve_format,):
logger.info(
f"Argument 'memory_format' is not supported for "
f"{node.target.name()} right now."
f"{node.target.name()} right now." # pyre-ignore[16]
)
return False

Expand Down
Loading