Skip to content

Commit

Permalink
Fix walrus operator precedence. (#6374)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysiraichi authored and bhavya01 committed Apr 22, 2024
1 parent 24eb3c1 commit bd77aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/torchbench_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def load_benchmark(self):
# torch.backends.__allow_nonbracketed_mutation_flag = True

# torchbench uses `xla` as device instead of `tpu`
if device := self.benchmark_experiment.accelerator == 'tpu':
if (device := self.benchmark_experiment.accelerator) == 'tpu':
device = str(self.benchmark_experiment.get_device())
return benchmark_cls(
test=self.benchmark_experiment.test,
Expand Down

0 comments on commit bd77aab

Please sign in to comment.