-
Notifications
You must be signed in to change notification settings - Fork 300
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
Renumber utility function for sampling output #3707
Conversation
Define the function API first. Several questions to be resolved.
Besides the questions above, do you have any other concerns? |
For (1): We are already partitioning, sending all samples for a single batch to a single GPU. So single GPU implementation is ok. There should be no comms/transfer between GPUs. Each worker should just run this function independent of all other workers. For (2): I think we always want the minimum hop. So this behavior is fine. |
@seunghwak this API looks good to me 👍 |
2). Yes, a src vertex should be associated with its minimum hop, so [0, 5] should be renumbered to [1, 0] in that case. |
Yes, Agreed it should be associated with the minimum hop. API looks good to me. |
OK, I will drop the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, just needs a C API. I assume @ChuckHastings is working on that?
@@ -0,0 +1,49 @@ | |||
/* | |||
* Copyright (c) 2022-2023, NVIDIA CORPORATION. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, working.
/merge |
Implements a utility function to renumber sampling function (e.g.
uniform_neighbor_sample
) outputs based on DGL and PyG requirements.closes #3718