Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
makgyver committed Oct 4, 2024
1 parent a7a1aec commit 76bf37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluke/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def set_device(self, device: str) -> torch.device:
return GlobalSettings().auto_device()

if device.startswith('cuda') and ":" in device:
idx = int(device.split(":")[0])
idx = int(device.split(":")[1])
self._device = torch.device("cuda", idx)
else:
self._device = torch.device(device)
Expand Down

0 comments on commit 76bf37c

Please sign in to comment.