From d1a6363b1e972de84ff19db0391b4dfb2e7dd632 Mon Sep 17 00:00:00 2001 From: "Yueming Hao (Meta Employee)" Date: Fri, 24 May 2024 11:53:59 -0700 Subject: [PATCH] Fix typo for input (#126981) Summary: The variable name should be `cloned_inputs` rather than `clone_inputs`. X-link: https://github.com/pytorch/pytorch/pull/126981 Approved by: https://github.com/xuzhao9 Reviewed By: DanilBaibak Differential Revision: D57777144 Pulled By: FindHao fbshipit-source-id: 6a8f77d515b9f3f298871170bbab11a6d540dce7 --- userbenchmark/dynamo/dynamobench/torchbench.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userbenchmark/dynamo/dynamobench/torchbench.py b/userbenchmark/dynamo/dynamobench/torchbench.py index 2a9437e08b..bf497a2b19 100755 --- a/userbenchmark/dynamo/dynamobench/torchbench.py +++ b/userbenchmark/dynamo/dynamobench/torchbench.py @@ -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)