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
4 changes: 3 additions & 1 deletion backends/cadence/aot/remove_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Comment on lines +811 to +813
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would also be good if we can actually reduce the complexity of this function

slice_copy_nodes = [
node
for node in graph_module.graph.nodes
Expand Down
Loading