Created
September 3, 2021 00:58
-
-
Save anuradhawick/904e7f2d2101f4b76516d04046007426 to your computer and use it in GitHub Desktop.
SAGE Cora
Hi.
This is because the the version of PyTorch Geometric. I may have coded using an older version.
You should be able to find the examples using latest version in their repository. You will see how to use the neighbour sampler with latest version. Unfortunately I cannot provide what changes you need to do as I’m currently busy with other work.
All the best. Feel free to give me an update when you succeed.
Cheers
It can be fixed easily by importing from torch_geometric.loader import NeighborSampler as RawNeighborSampler
, instead of from torch_geometric.data import NeighborSampler as RawNeighborSampler
.
@anuradhawick Can you update your gist?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I tried to run your code, the program reported the following error at line
class NeighborSampler(RawNeighborSampler):
I haven't made any changes to this class or your other code, and the imported package is the same. Google's advice on how to fix this error is also sparse and not very relevant.
Could you please help me to correct this error and run this code correctly?
Your code is very helpful for me to learn GraphSAGE, and I would really appreciate it if you could help me.