Using Apple M1 GPU error #148
marcoseraphin
started this conversation in
General
Replies: 2 comments 1 reply
-
It is not an error, it is warning, tell you the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @marcoseraphin, I get this error too. PyTorch on MPS is still a work in progress. However, the latest version of PyTorch (released October 2022), has added some more support for MPS devices - https://pytorch.org/blog/new-library-updates-in-pytorch-1.13/ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Daniel,
I just started the course and already set up PyTorch locally on my MacBook Pro M1 machine using VS Code.
It seems to run without errors.
But if I try to move a tensor to the Apple GPU (MPS) I am getting an error using your code:
==> output / error:
PyTorch version: 1.13.0.dev20220827
Is MPS (Metal Performance Shader) built? True
Is MPS available? True
Using device: mps
/Users/marcoseraphin/opt/miniconda3/envs/torch/lib/python3.9/site-packages/torch/_tensor_str.py:114: UserWarning: The operator 'aten::masked_select' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/_temp/anaconda/conda-bld/pytorch_1661584288993/work/aten/src/ATen/mps/MPSFallback.mm:11.)
nonzero_finite_vals = torch.masked_select(
tensor([[0.4496, 0.6186, 0.7236, 0.4368],
[0.7587, 0.4787, 0.1247, 0.4760],
[0.4457, 0.3475, 0.8220, 0.5320]], device='mps:0')
How do I solve the error that the tensor x is NOT transferred to the GPU ?
Thanx
Marco
Beta Was this translation helpful? Give feedback.
All reactions