Skip to content

Commit

Permalink
Fix typo for input (#126981)
Browse files Browse the repository at this point in the history
Summary:
The variable name should be `cloned_inputs` rather than `clone_inputs`.

X-link: pytorch/pytorch#126981
Approved by: https://github.com/xuzhao9

Reviewed By: DanilBaibak

Differential Revision: D57777144

Pulled By: FindHao

fbshipit-source-id: 6a8f77d515b9f3f298871170bbab11a6d540dce7
  • Loading branch information
FindHao authored and facebook-github-bot committed May 24, 2024
1 parent 0f36131 commit d1a6363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userbenchmark/dynamo/dynamobench/torchbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def forward_and_backward_pass(self, mod, inputs, collect_outputs=True):
cloned_inputs = clone_inputs(inputs)
self.optimizer_zero_grad(mod)
with self.autocast(**self.autocast_arg):
if isinstance(clone_inputs, dict):
if isinstance(cloned_inputs, dict):
pred = mod(**cloned_inputs)
else:
pred = mod(*cloned_inputs)
Expand Down

0 comments on commit d1a6363

Please sign in to comment.