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

Rename sampler.py to neignbor_sampler.py #30

Conversation

ashishkrshrivastava
Copy link

I got the error "ImportError: cannot import name neighbor_sampler" , def neighbor_sampler is implemented in sampler.py

@rusty1s
Copy link
Owner

rusty1s commented Jul 17, 2019

I do not see why this ImportError should happen. The __init__ file imports the neighbor_sampler from sampler.py, so both of the following commands should work:

from torch_cluster import neighbor_sampler
from torch_cluster.sampler import neighbor_sampler

@ashishkrshrivastava
Copy link
Author

yeah, you are right, torch-cluster was not updated in my pc. its working fine now.

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

Successfully merging this pull request may close these issues.

None yet

2 participants