Open SHamda opened 1 year ago
Hi!
I have not run the code myself, but according to your last comment about edge_index_dict
being empty, I can spot one odd thing in your code:
At some point you write:
data['user', 'writes', 'tweet'].edgeindex = edge_index
I think it should be data['user', 'writes', 'tweet'].edge_index
instead.
Hope that helped :)
I added https://github.com/pyg-team/pytorch_geometric/pull/7714 to prevent this mistake in future releases :)
š Describe the bug
Below, you'll find the code used for the creation of the heterodata obejct.
When I check the content through the line
data.metadata()
I get the following output(['user', 'tweet'], [('user', 'writes', 'tweet')])
. So, it's safe to assume that my graph object was created properly. Nevertheless, when I try to train the graph on a binary classification task through this NN architecture.I get the following error:
When I check the content of edge_index_dict I find it empty why is that, and in no other code example was I able to find a case where edge_index_dict is initialized explicitly, so I assume it's infered from edge_index. Any help would be much appreciated thanks.
Environment
conda
,pip
, source):torch-scatter
):