-
Hi
where A is 0 and B is 1. In
so I am confused about what's best and what's wrong. Could you help me on this? thx |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
All edge indices in data[tv, doc].edge_index = torch.tensor([[0], [0]])
data[doc, tv].edge_index = torch.tensor([[0], [0]]) |
Beta Was this translation helpful? Give feedback.
-
got it, sorry wrong example. However, should I create rev_edges AND add flipped edges for undirected hetero graphs? (e.g. data[tv, doc].edge_index = torch.tensor([[0, 0], [0, 0]])) |
Beta Was this translation helpful? Give feedback.
-
sry I forgot to reply! Thannkkkss |
Beta Was this translation helpful? Give feedback.
No, one of them is enough. You can either create them manually or on the fly via
transforms.ToUndirected()
.