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

torch.backends.mps.is_available() is the new torch.cuda.is_available() #3662

Closed
geg00 opened this issue May 25, 2022 · 2 comments
Closed

torch.backends.mps.is_available() is the new torch.cuda.is_available() #3662

geg00 opened this issue May 25, 2022 · 2 comments

Comments

@geg00
Copy link

geg00 commented May 25, 2022

Feature requests should first be proposed on the forum.

Link to forum discussion.

Please place URL here.
https://forums.fast.ai/t/fastai-on-apple-m1/86059/28?u=gerardo

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When you use learner there is no way to select the device to be used

learn = vision_learner(dls, resnet18, metrics=error_rate)

Describe the solution you'd like
A clear and concise description of what you want to happen.
It just goes to use CPU not the MPS

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Availability to select a device

Additional context
Add any other context or code examples about the feature request here.
https://forums.fast.ai/t/how-to-specify-gpu-like-pytorch-device-cuda-2-in-fastai/54379/2?u=gerardo

THIS IS FOR FASTAI ON APPLE M1 MAC

@jph00
Copy link
Member

jph00 commented Jun 28, 2022

mac is not supported for fastai

@jph00 jph00 closed this as completed Jun 28, 2022
@geg00
Copy link
Author

geg00 commented Jun 28, 2022

Well that's disappointing

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