"...git@developer.sourcefind.cn:OpenDAS/pytorch-encoding.git" did not exist on "b872eb8cc01f6e0dde3d9acfb5846abe5c3a450a"
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): ...@@ -50,7 +50,7 @@ def load_ogb(dataset, global_norm):
if ntype == category: if ntype == category:
category_id = i category_id = i
g = dgl.to_homo(hg) g = dgl.to_homogeneous(hg, edata=['norm'])
if global_norm: if global_norm:
u, v, eid = g.all_edges(form='all') u, v, eid = g.all_edges(form='all')
_, inverse_index, count = th.unique(v, return_inverse=True, return_counts=True) _, 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