Replies: 1 comment 3 replies
-
The GraphSAINT example already makes use of trainable embeddings (see data.x_dict['paper'] = torch.arange(num_paper_nodes) and pass this vector to the Separating source and destination node features is useful in a bipartite graph, where nodes are of different type and you want to send messages from one type to another. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to adjust the graph_saint example from here https://github.com/snap-stanford/ogb/blob/master/examples/nodeproppred/mag/graph_saint.py such that RGCNConv one-dimensional node index tensor (in which case input features are treated as trainable node embeddings).
So I did:
And then set in_channels = data.x_dict['paper'].shape[0]
Then when I tried to run the model I got:
RuntimeError: [enforce fail at CPUAllocator.cpp:65] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 3342172169844 bytes. Error code 12 (Cannot allocate memory)
I suspect this is because I did something wrong previously. Could you please explain why it happens?
Also, it's written in the documentation that x can be of type tuple denoting source and destination node features. What exactly does it mean and why one might need that?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions