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

AttributeError: 'SparseTensor' object has no attribute 'sample_adj' #14

Open
rd27995 opened this issue Feb 23, 2021 · 3 comments
Open

Comments

@rd27995
Copy link

rd27995 commented Feb 23, 2021

When CONV =GIN and MINIBATCH =NeighborSampler, I get the following error message (using torch 1.4.0 and CUDA 10.1, torch-sparse=0.6.1)

Can you please suggest if there's anything I am missing here? Thanks in advance for your help!

image

@wentinghome
Copy link

When CONV =GIN and MINIBATCH =NeighborSampler, I get the following error message (using torch 1.4.0 and CUDA 10.1, torch-sparse=0.6.1)

Can you please suggest if there's anything I am missing here? Thanks in advance for your help!

image

I find solution from this discussion .

@youngfish42
Copy link

youngfish42 commented Aug 2, 2021

I find new solution to this probleim

pyg-team/pytorch_geometric#1770 (comment)

You should update your torch-sparse >=0.6.4

just pip install torch-sparse==0.6.4

@mfernezir
Copy link

A comment for anybody else checking this in 2023. After running pip install torch-sparse==0.64, there's still a failure when the code internally runs

from torch_sparse import SparseTensor

pyg-team/pytorch_geometric#1770 (comment) mentions additional manual hacks to get 0.6.4 working with PyTorch 1.4.0. That version of PyTorch only support 0.6.1 out of the box.

The core issue is mentioned in this comment by the repo author. GIN embeddings were done with a different PyTorch Geometric version, with code refactoring later on.

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

4 participants