Skip to content
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

[Feature][GPU] Add function for setting weights of a sparse embedding on multiple GPUs. #3047

Merged
merged 6 commits into from
Jun 22, 2021

Conversation

nv-dlasalle
Copy link
Collaborator

Description

This renames the method NodeEmbedding.gather_embedding() to NodeEmbedding.all_get_embedding() to make its usage more clear, and adds the method NodeEmbedding.all_set_embedding(), which is needed by tests in #3034, for initializing the embedding to the same values as a pytorch embedding.

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented
  • To the my best knowledge, examples are either not affected by this change,
    or have been fixed to be compatible with this change

@dgl-bot
Copy link
Collaborator

dgl-bot commented Jun 21, 2021

To trigger regression tests:

  • @dgl-bot run [instance-type] [which tests] [compare-with-branch];
    For example: @dgl-bot run g4dn.4xlarge all dmlc/master or @dgl-bot run c5.9xlarge kernel,api dmlc/master

Copy link
Contributor

@classicsong classicsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nv-dlasalle nv-dlasalle merged commit 7359481 into dmlc:master Jun 22, 2021
@jermainewang jermainewang added this to the v0.7 milestone Jun 23, 2021
Rhett-Ying pushed a commit to Rhett-Ying/dgl that referenced this pull request Jun 25, 2021
… on multiple GPUs. (dmlc#3047)

* add unit test

* Extend NDArrayPartition object

* Add method for setting embedding, and improve documentation

* Sync before returning

* Use name unique to sparse embedding class to avoid delete

Co-authored-by: xiang song(charlie.song) <classicxsong@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants