-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dist] sample_etype_neighbors
samples unexpected num_edges
#4150
Comments
@jermainewang @zheng-da pls help make comments on this. |
We found this bug when investigating a performance issue of distributed training. The details are as following:
My suggestions:
2 and 3 are immediate patch to take while 1 and 4 may need more time. |
all required changes have been merged. |
🐛 Bug
When sampling from
DistGraph
wheredgl.ETYPE
is not sorted for the neighbors of sorteddst
, far more than expected edges will be sampled. This is caused by below flag:etype_sorted=True
.False
should be the default value. And such argument should be exposed to user for better control.dgl/python/dgl/distributed/graph_services.py
Lines 87 to 89 in 31e4a89
To Reproduce
Expected behavior
Environment
conda
,pip
, source):Additional context
The text was updated successfully, but these errors were encountered: