Skip to content

Commit 809d281

Browse files
ezyangfacebook-github-bot
authored andcommitted
Change _dynamo.export to be export(f)(*args, **kwargs) (#106109)
Summary: Signed-off-by: Edward Z. Yang <[email protected]> X-link: pytorch/pytorch#106109 Approved by: https://github.com/voznesenskym bypass-github-export-checks Reviewed By: PaliC Differential Revision: D47860637 Pulled By: ezyang fbshipit-source-id: 3933e3ffc43929f27ca4d3dc44a9bc822e8bc8db
1 parent 3cd7906 commit 809d281

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exir/tracer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,14 +674,15 @@ def dynamo_trace(
674674
# functionalization
675675
return torchdynamo.export(
676676
f,
677-
*copy.deepcopy(args),
678677
aten_graph=aten_graph,
679678
tracing_mode=tracing_mode,
680679
assume_static_by_default=dynamo_config.assume_static_by_default,
681680
decomposition_table=_default_decomposition_table(_use_old_decomp_table)
682681
if aten_graph
683682
else None,
684683
constraints=constraints,
684+
)(
685+
*copy.deepcopy(args),
685686
)
686687
except torchdynamo.exc.Unsupported as exc:
687688
raise ExportError(

0 commit comments

Comments
 (0)