You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am currently trying to get pytorch geometric to run on my Mac with M1 Pro, the recent update to 13.3 fixed quite a few things. Look here for a bit more info about that: pytorch/pytorch#96610
But currently I have following error message that points towards pytorch_cluster:
Traceback (most recent call last):
File "/Users/nic/Projects/pytorch_geometric/examples/pointnet2_classification.py", line 104, in <module>
train(epoch)
File "/Users/nic/Projects/pytorch_geometric/examples/pointnet2_classification.py", line 70, in train
loss = F.nll_loss(model(data), data.y)
File "/Users/nic/mambaforge/envs/imitation/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/Users/nic/Projects/pytorch_geometric/examples/pointnet2_classification.py", line 56, in forward
sa1_out = self.sa1_module(*sa0_out)
File "/Users/nic/mambaforge/envs/imitation/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "/Users/nic/Projects/pytorch_geometric/examples/pointnet2_classification.py", line 20, in forward
idx = fps(pos, batch, ratio=self.ratio)
File "/Users/nic/mambaforge/envs/imitation/lib/python3.9/site-packages/torch_geometric/nn/pool/__init__.py", line 51, in fps
return torch_cluster.fps(x, batch, ratio, random_start)
File "/Users/nic/mambaforge/envs/imitation/lib/python3.9/site-packages/torch_cluster/fps.py", line 70, in fps
return torch.ops.torch_cluster.fps(src, ptr, r, random_start)
File "/Users/nic/mambaforge/envs/imitation/lib/python3.9/site-packages/torch/_ops.py", line 642, in __call__
return self._op(*args, **kwargs or {})
RuntimeError: src.device().is_cpu() INTERNAL ASSERT FAILED at "csrc/cpu/fps_cpu.cpp":14, please report a bug to PyTorch. src must be CPU tensor
To replicate this I just change the device in pytorch_geometric/examples/pointnet2_classification.py to mps
Hm, ok I might've just realised that one would have to specifically implement code for the MPS interfaces which are currently not implemented and might be not too easy to implement, so I guess I am going back to CPU based tests...
Do I understand the issue correctly? If so the issue can be closed
Yes, I am sorry. We don‘t have any MPS-specific implementation right now. You might be able to convert to CPU before calling the cluster routines, and back to MPS afterwards.
Hi, I am currently trying to get pytorch geometric to run on my Mac with M1 Pro, the recent update to 13.3 fixed quite a few things. Look here for a bit more info about that: pytorch/pytorch#96610
But currently I have following error message that points towards pytorch_cluster:
To replicate this I just change the device in
pytorch_geometric/examples/pointnet2_classification.py
tomps
My current installed packages are following:
So a lot of nightly things. I know that this makes the support quite difficult, but maybe someone can still point me to a solution to this issue.
The text was updated successfully, but these errors were encountered: