Trying to implement Heterogeneous graph but training fails. #4148
goodrahstar
started this conversation in
General
Replies: 1 comment 1 reply
-
For heterogeneous graphs, you need to ensure that the following runs through: for edge_type in data.edge_types:
src, _, dst = edge_type
assert data[edge_type].edge_index[0].max() < data[src].num_nodes
assert data[edge_type].edge_index[1].max() < data[dst].num_nodes Otherwise, you may want to revisit your data processing pipeline to ensure that all edges points to valid node indices. You can use this tutorial as a reference. |
Beta Was this translation helpful? Give feedback.
1 reply
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 Team,
I am trying to train a heterogeneous graph but i am getting errors when trying to train it.
The heterograph looks like this
And the training architecture looks like this
Here is the code for the model architecture.
When trying to train the model, I get the following error.
Execution:
model(data.x_dict, data.edge_index_dict)
Error:
RuntimeError: index 9018 is out of bounds for dimension 0 with size 9000
How do i make sure the dimensions are correct and overcome this issue.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions