Skip to content

Commit

Permalink
Add default value to move_to_device.
Browse files Browse the repository at this point in the history
  • Loading branch information
ysiraichi committed May 18, 2024
1 parent 3c59087 commit 62c3ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def is_xla_device_available(devkind):
return r.returncode == 0


def move_to_device(item, device, torch_xla2):
def move_to_device(item, device, torch_xla2=False):
if torch_xla2:
import torch_xla2
import jax
Expand Down

0 comments on commit 62c3ba6

Please sign in to comment.