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

Minor fix to add Mac MPS support #103

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

Conversation

drscotthawley
Copy link

Hi, I was noticing that this code was failing when running on my Mac using the MPS device (the closest thing to CUDA) because MPS has no float64 type implemented. The fix is just to change to float32 before moving meter onto the device. Because of the "if" check, that conversion will only occur when running on MPS; CUDA and CPU will be unaffected by this change.

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

Successfully merging this pull request may close these issues.

1 participant