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

FIX: get_device method lacks MPS judgment branch #137

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

Conversation

Zihann73
Copy link

@Zihann73 Zihann73 commented Jun 10, 2024

get_device() function in utils.py lacks MPS judgment branch, causing incompatibility on macOS machines.

Also sees #136

FYI: https://pytorch.org/docs/master/tensor_attributes.html#torch-device

@wbrown
Copy link
Collaborator

wbrown commented Jun 11, 2024

@Zihann73 Thank you for this PR! I'll stand up a test environment on my MacOS X machine and make sure this works. I'm thinking about how to add a test case for this in GHA, as well.

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.

2 participants