Skip to content

Commit

Permalink
consider device number for xla
Browse files Browse the repository at this point in the history
  • Loading branch information
zpcore committed Jan 22, 2024
1 parent a694479 commit 047ea00
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 @@ -230,7 +230,7 @@ def load_benchmark(self):

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

0 comments on commit 047ea00

Please sign in to comment.