Skip to content

Commit

Permalink
Fix partition for 0.5.1 (dmlc#2187)
Browse files Browse the repository at this point in the history
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
classicsong and Ubuntu authored Sep 13, 2020
1 parent 877101a commit 782527d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pytorch/rgcn/experimental/partition_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def load_ogb(dataset, global_norm):
if ntype == category:
category_id = i

g = dgl.to_homo(hg)
g = dgl.to_homogeneous(hg, edata=['norm'])
if global_norm:
u, v, eid = g.all_edges(form='all')
_, inverse_index, count = th.unique(v, return_inverse=True, return_counts=True)
Expand Down

0 comments on commit 782527d

Please sign in to comment.