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

getDefaultCPUGenerator #27

Closed
sinanmut opened this issue Jul 3, 2019 · 2 comments
Closed

getDefaultCPUGenerator #27

sinanmut opened this issue Jul 3, 2019 · 2 comments

Comments

@sinanmut
Copy link

sinanmut commented Jul 3, 2019

Hi,
I am getting the following error when I try to install pytorch_cluster. My pytorch version is 1.1.0.
Any idea about how to fix it?
Thanks

cpu/sampler.cpp: In function ‘at::Tensor neighbor_sampler(at::Tensor, at::Tensor, size_t, float)’:
cpu/sampler.cpp:6:45: error: ‘getDefaultCPUGenerator’ is not a member of ‘at::detail’
6 | at::CPUGenerator *generator = at::detail::getDefaultCPUGenerator();
| ^~~~~~~~~~~~~~~~~~~~~~
cpu/sampler.cpp:27:32: error: ‘struct at::CPUGenerator’ has no member named ‘random’
27 | int64_t z = generator->random() % num_neighbors;

@sinanmut
Copy link
Author

sinanmut commented Jul 3, 2019

I installed it from pip repository instead of building it from source.

@rusty1s
Copy link
Owner

rusty1s commented Jul 4, 2019

Yes, this should fix the issue. The change in master is only needed for PyTorch nightly.

@rusty1s rusty1s closed this as completed Jul 4, 2019
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