Skip to content

Commit

Permalink
fix(gpt): device parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Oct 10, 2024
1 parent b3a180e commit 57f2cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChatTTS/utils/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def select_device(min_memory=2047, experimental=False):
)
device = torch.device("cpu")
else:
device = provider.device(dev_idx)
device = provider._get_device(dev_idx)
elif torch.backends.mps.is_available():
"""
Currently MPS is slower than CPU while needs more memory and core utility,
Expand Down

0 comments on commit 57f2cc8

Please sign in to comment.