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

ARM64 torch_cluster.radius bug #217

Open
JSSchmidt opened this issue Jun 11, 2024 · 1 comment
Open

ARM64 torch_cluster.radius bug #217

JSSchmidt opened this issue Jun 11, 2024 · 1 comment

Comments

@JSSchmidt
Copy link

When executing torch_cluster.radius on my MacBook Pro 16-inch(Nov 2023, M3 Pro) even a minimal working example gives an error message. Problem does NOT persist on Server Ubuntu 22.04.4.

Minimum working example:

`from torch_cluster import radius
import torch

radius(torch.tensor([[0, 0], [1, 0], [0, 1], [1, 1]]), torch.tensor([[0, 0], [1, 0], [0, 1], [1, 1]]), r=1.5)`

`---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
Cell In[4], line 4
1 from torch_cluster import radius
2 import torch
----> 4 radius(torch.tensor([[0, 0], [1, 0], [0, 1], [1, 1]]), torch.tensor([[0, 0], [1, 0], [0, 1], [1, 1]]), r=1.5)

File ~/micromamba/envs/mldft/lib/python3.11/site-packages/torch_cluster/radius.py:82, in radius(x, y, r, batch_x, batch_y, max_num_neighbors, num_workers, batch_size)
79 ptr_x = torch.bucketize(arange, batch_x)
80 ptr_y = torch.bucketize(arange, batch_y)
---> 82 return torch.ops.torch_cluster.radius(x, y, ptr_x, ptr_y, r,
83 max_num_neighbors, num_workers)

File ~/micromamba/envs/mldft/lib/python3.11/site-packages/torch/ops.py:854, in OpOverloadPacket.call(self, *args, **kwargs)
846 def call(self_, *args, **kwargs): # noqa: B902
847 # use self_ to avoid naming collide with aten ops arguments that
848 # named "self". This way, all the aten ops can be called by kwargs.
(...)
852 # We save the function ptr as the op attribute on
853 # OpOverloadPacket to access it here.
--> 854 return self_._op(*args, **(kwargs or {}))

RuntimeError: x.dim() == 2 INTERNAL ASSERT FAILED at "csrc/cpu/radius_cpu.cpp":13, please report a bug to PyTorch. Input mismatch`

@JSSchmidt JSSchmidt changed the title ARM64 torch_cluster bug ARM64 torch_cluster.radius bug Jun 11, 2024
@tk-rusch
Copy link

I'm having the same issue. Any updates on that?

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