Skip to content

Commit

Permalink
Fix a bug in the torch._export.aot_load API (#2128)
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/torchrec#1652

X-link: pytorch/pytorch#118039


tree_flatten_spec should use args instead of *args

clone of pytorch/pytorch#117948 but with some fbcode specific changes

Reviewed By: angelayi

Differential Revision: D52982401
  • Loading branch information
desertfire authored and facebook-github-bot committed Jan 23, 2024
1 parent dbc3201 commit 6f5def3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userbenchmark/dynamo/dynamobench/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ def export_aot_inductor(model, example_inputs, device):

def opt_aot_inductor(_, example_inputs, collect_outputs=False):
example_args, example_kwargs = _normalize_bench_inputs(example_inputs)
return optimized(example_args, example_kwargs)
return optimized(*example_args, **example_kwargs)

return opt_aot_inductor

Expand Down

0 comments on commit 6f5def3

Please sign in to comment.