forked from pytorch/FBGEMM
-
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.
NBit forward TBE: remap indices before prefetching; and some more uni…
…t tests. (pytorch#1433) Summary: Pull Request resolved: pytorch#1433 It's reported that UVM_CACHING doesn't work with pruning. D40788589 (pytorch@bcc69ed) fixed issues in linearize kernel. It worked with int_nbit_split_embedding_uvm_caching_codegen_lookup_function, because in that case, index remapping for pruning occurs before calling int_nbit_split_embedding_uvm_caching_codegen_lookup_function. IntNBitTableBatchedEmbeddingBagsCodegen::forward() runs index remapping after prefetch, so it didn't work even with the fix in linearize kernel. This diff changes the order we call index remapping: first, index remapping, and then prefetch. Added related tests also. Differential Revision: D40821768 fbshipit-source-id: 017db632cd2d7891c177cd3959f1d8967538b2ea
- Loading branch information
1 parent
81ba6c5
commit 2d6f38c
Showing
4 changed files
with
47 additions
and
8 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
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