Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shink committed Nov 21, 2024
1 parent 2decb94 commit bfef1a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torchbenchmark/util/experiment/instantiator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def list_devices() -> List[str]:
devices = ["cpu"]
import torch

if device_type := torch._utils._get_available_device_type():
device_type = torch._C._get_accelerator().type
if device_type != "cpu":
devices.append(device_type)
return devices

Expand Down

0 comments on commit bfef1a5

Please sign in to comment.