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 413074e commit 67efd65Copy full SHA for 67efd65
onnx_diagnostic/torch_export_patches/patch_module.py
@@ -264,7 +264,7 @@ def visit_If(self, node):
264
)
265
if dropped and isinstance(tgt, ast.Tuple):
266
tgt = ast.Tuple(
267
- tuple(t for t in tgt.elts if t.id not in dropped), ctx=ast.Load()
+ tuple(t for t in tgt.elts if t.id not in dropped), ctx=ast.Store()
268
269
270
assign = ast.Assign(targets=[tgt], value=call)
0 commit comments