heterogeneous graph attention network training error:torch.ops.torch_scatter.scatter_max #3824
-
Hello! I am struggling to find any example implementation. Especially those with edge features (edge_attr). I created a preliminary HeteroData graph,I'm utilizing Heterogeneous Graph Attention Network for training on GPU,and the following error is generated during training
Any guidance would be greatly appreciated. Thanks:)! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
It's really simple. The two types of nodes are cities and villages. Edge features are multidimensional feature matrices I have tried various GATConv implementations without success, but I know I may be missing the basics. Below are the details of the data I use:
I used the model of the official website example, this is model:
The following is a more detailed training module code:
Any guidance would be greatly appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
-
The error suggests that there exists a problem with your |
Beta Was this translation helpful? Give feedback.
-
Yeah, you should check that |
Beta Was this translation helpful? Give feedback.
Yeah, you should check that
edge_index[0].max() < x_src.size(0)
andedge_index[1].max() < x_dst.size(0)
for every edge type in yourHeteroData
object.