Error while trying to run a GNN on a custom Heterogenous Graph #3569
-
Hi all, I'm quite new to the topic of graph neural networks and face an error when trying to run a GNN on a Heterogenous Graph for label classification. I tried to redo this example on a custom Dataset. My data looks like follows:
So I tried to copy the data format from the example, which data structure looks like follows:
The example works fine and also let itself train. I think my structure is the same. But on my custom dataset I get the following error when I try to train it:
I also checked all my tensors if they are not float (torch.LongTensor or torch.BoolTensor for the mask). The model I used is the GAT() from the example link, I also tried different models and faced the same error. Does someone knows a solution for this error? Is something wrong within my data structure? Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is actually quite hard to tell since |
Beta Was this translation helpful? Give feedback.
This is actually quite hard to tell since
torch.fx
does not really reveal much information about the reasons behind this error. Do you can upload your data somewhere so I can take a look?