Closed sanmin0312 closed 3 years ago
In graph, 'u' is the destination node, 'v' is the source node, eg, if pre[i]['v'][j] = 3
, pre[i]['u'][j]=4
then node 3
is the i-step predecessor of node 4
. Hope can help you.
Thank you for your answer! It helps a lot :)
for k1 in ["left", "right"]: graph[k1] = dict() for k2 in ["u", "v"]: temp = [graphs[i][k1][k2] + counts[i] for i in range(batchsize)] temp = [ x if x.dim() > 0 else graph["pre"][0]["u"].new().resize(0) for x in temp ] graph[k1][k2] = torch.cat(temp) return graph
'left' and 'right' is error keys in graph which is not founded
Hello,
Thanks for the great code. Can you explain about "u" and "v" for graph['pre'] and graph['suc'] in data.py?
and this also shows up in lanegcn.py