Skip to content

Commit

Permalink
Fix Inductor runs. (#6195)
Browse files Browse the repository at this point in the history
  • Loading branch information
golechwierowicz authored and bhavya01 committed Apr 22, 2024
1 parent 9986118 commit ac9e76f
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 @@ -202,8 +202,8 @@ def load_benchmark(self):
self.module, self.example_inputs = benchmark.get_module()

# Move the initialized model to XLA device.
device = self.benchmark_experiment.get_device()
if self.benchmark_experiment.xla:
device = self.benchmark_experiment.get_device()
self.module = self.module.to(device)
self.example_inputs = pytree.tree_map_only(torch.Tensor,
lambda t: t.to(device),
Expand Down

0 comments on commit ac9e76f

Please sign in to comment.