We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f341379 commit 0dd1e57Copy full SHA for 0dd1e57
exir/backend/backend_api.py
@@ -208,7 +208,10 @@ def _insert_lowered_submodule(
208
# handle getitem node in multi-method scenario
209
call_submodule_inputs = []
210
for inp_node in call_submodule_node.all_input_nodes:
211
- if inp_node.target == operator.getitem:
+ if inp_node.target == operator.getitem and (
212
+ inp_node.args[0].target == torch._higher_order_ops.executorch_call_delegate
213
+ or inp_node.args[0].op == "call_module"
214
+ ):
215
# it could be an executorch_call_delegate node or a submodule to be replaced
216
subgraph = (
217
# get owning_module of lowered_module node
0 commit comments