Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add forward/backward test for _fbgemm_permute_pooled_embs (pytorch#2480)
Summary: Pull Request resolved: pytorch#2480 # context * S443491 is caused by using a customized [version](https://www.internalfb.com/code/fbsource/[552b2a3cb49a261daa48b68b3647e8a951a3aa1b]/fbcode/minimal_viable_ai/models/main_feed_mtml/pytorch_modules.py?lines=2610) (fb.permute_pooled_embs_auto_grad) of fbgemm.permute_pooled_embs_auto_grad * the fb version doesn't dispatch to autograd but relied on a bug in fbgemm.permute_pooled_embs_auto_grad, which was fixed by D48574563 * The SEV was mitigated by switching to fbgemm version: D62040883 * this diff is to add more tests regarding fbgemm.permute_pooled_embs_auto_grad # details * `permute_pooled_embs_auto_grad` is called in `_fbgemm_permute_pooled_embs` function * add forward and backward test for `_fbgemm_permute_pooled_embs` function Reviewed By: ge0405 Differential Revision: D64195848 fbshipit-source-id: 237ad75028eb9583bb02a2f305defb083f0f280d
- Loading branch information