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

Support for Apple Metal (MPS) backend #16

Open
Archie3d opened this issue Jan 19, 2023 · 1 comment
Open

Support for Apple Metal (MPS) backend #16

Archie3d opened this issue Jan 19, 2023 · 1 comment

Comments

@Archie3d
Copy link

Please add support for the MPS backend as you do for cuda:

if torch.backends.mps.is_available():
    mps = torch.device("mps")
    model = model_utils.DataParallel(model)
    model.to(mps)

# ... and so on...
x = x.to(mps)
@reinerterig
Copy link

Has anyone looked into implementing MPS for this yet?

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

No branches or pull requests

2 participants