Unverified Commit 782527d4 authored by xiang song(charlie.song)'s avatar xiang song(charlie.song) Committed by GitHub
Browse files

Fix partition for 0.5.1 (#2187)


Co-authored-by: default avatarUbuntu <ubuntu@ip-172-31-24-210.ec2.internal>
parent 877101a9
......@@ -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)
......
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