Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for MPS backend #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

magnusross
Copy link

No description provided.

elif torch.backends.mps.is_available():
# Set default GPU device
torch.set_default_device("mps")
B.set_global_device("mps:0")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking something more along the lines of set_default_device("mps"). I feel like if a user calls set_gpu_default_device() they will expect to use a GPU, not an MPS. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants