-
Dear all, I created my Heterogeneous graph with multiple edge types (multi relational graph) and edge attributes via https://pytorch-geometric.readthedocs.io/en/latest/notes/heterogeneous.html and tried to use RGATConv based on https://github.com/pyg-team/pytorch_geometric/blob/master/examples/rgat.py. For example we have to set the following variables: How should give these values as input to the model? Because if we want to simply use edge_index, edge_type or edge_attr we face the following errors: I have to mention I tried model(data.x_dict, data.edge_index_dict, data.edge_types, data.edge_attr_dict) but I faced the following error: ValueError: My edge_index_dict: {('a', 'A', 'a'): tensor([[ 0, 0, 0, ..., 163, 163, 163], Thank you in advance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you share some reproducible script with us? In general, |
Beta Was this translation helpful? Give feedback.
Can you share some reproducible script with us? In general,
RGATConv
expects a single node feature matrixx
, a single matrixedge_index
and a correspondingedge_type
vector. In that sense, its input is somewhat different from the input given byHeteroData
(which represents features and edges across types within a dictionary). As such, you can useHeteroConv
orto_hetero
(as discussed in the doucmentation) for use withHeteroData
.