Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions backends/arm/_passes/arm_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def call_submodule(
self.submodule_depth += 1
if self.submodule_depth == 1:
result = super().call_submodule(graph_module, inputs)
elif self.should_run_pass(graph_module):
result = super().call_submodule(graph_module, inputs)
else:
# When we trace a submodule, we don't want to apply the calling pass.
# Temporarily replace call_operator to avoid this.
Expand Down
Loading
Loading