diff --git a/backends/cadence/aot/remove_ops.py b/backends/cadence/aot/remove_ops.py index c5381d3d891..06e83d92695 100644 --- a/backends/cadence/aot/remove_ops.py +++ b/backends/cadence/aot/remove_ops.py @@ -808,7 +808,9 @@ def remove_branched( class RemoveCatFromSliceCopyPass(ExportPass): - def _remove_unused_cat(self, graph_module: torch.fx.GraphModule) -> None: + def _remove_unused_cat( # noqa: C901 + self, graph_module: torch.fx.GraphModule + ) -> None: slice_copy_nodes = [ node for node in graph_module.graph.nodes