Skip to content

Commit

Permalink
enable mac silicone acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
JudeWells committed Sep 25, 2024
1 parent 53abfe6 commit ca0ef5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def get_torch_device(force_cpu=False):
try:
if torch.cuda.is_available() and not force_cpu:
device_string = "cuda"
# elif torch.backends.mps.is_available() and not force_cpu:
# device_string = "mps"
elif torch.backends.mps.is_available() and not force_cpu:
device_string = "mps"
else:
device_string = "cpu"
except Exception as exc:
Expand Down

0 comments on commit ca0ef5d

Please sign in to comment.