Commit 2dff1aba authored by Giuseppe Futia's avatar Giuseppe Futia Committed by Lingfan Yu
Browse files

[Bugfix] Fix shape of test_relation tensor in RGCN (#464)

parent 5033d945
......@@ -113,7 +113,7 @@ def main(args):
test_deg = test_graph.in_degrees(
range(test_graph.number_of_nodes())).float().view(-1,1)
test_node_id = torch.arange(0, num_nodes, dtype=torch.long).view(-1, 1)
test_rel = torch.from_numpy(test_rel).view(-1, 1)
test_rel = torch.from_numpy(test_rel)
test_norm = torch.from_numpy(test_norm).view(-1, 1)
test_graph.ndata.update({'id': test_node_id, 'norm': test_norm})
test_graph.edata['type'] = test_rel
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment