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 Jan 25, 2024
1 parent 4ab7a24 commit 44660d8
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 44660d8

Please sign in to comment.