Skip to content

Commit 67efd65

Browse files
committed
store
1 parent 413074e commit 67efd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnx_diagnostic/torch_export_patches/patch_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def visit_If(self, node):
264264
)
265265
if dropped and isinstance(tgt, ast.Tuple):
266266
tgt = ast.Tuple(
267-
tuple(t for t in tgt.elts if t.id not in dropped), ctx=ast.Load()
267+
tuple(t for t in tgt.elts if t.id not in dropped), ctx=ast.Store()
268268
)
269269

270270
assign = ast.Assign(targets=[tgt], value=call)

0 commit comments

Comments
 (0)