forked from pytorch/torchrec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify InferRwSequenceEmbedding Modules for GPU / CPU (pytorch#2559)
Summary: Pull Request resolved: pytorch#2559 Unify InferRwSequenceEmbedding Modules for GPU / CPU. There does not seem to be much difference in the implementation for InferRwSequenceEmbedding and InferCPURwSequenceEmbedding. For heterogeneous sharding, we need to merge them together into one module. Also introduced the concept of device_type_from_sharding_info to propagate the correct device for output dist. Reviewed By: jiayisuse Differential Revision: D65859663 fbshipit-source-id: d2419f34e62c8967b65a47481ec08720b26c695d
- Loading branch information
1 parent
7819471
commit 79111fb
Showing
3 changed files
with
37 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters