Skip to content

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