torchrec
torchrec copied to clipboard
Permute export fix
Summary: Make KJT permute work in edge cases for torch.export: https://fb.workplace.com/groups/6829516587176185/posts/7206415192819654/?comment_id=7207715762689597&reply_comment_id=7210658785728628.
A cleaner solution than before as well. Necessary for enabling PT2 eager model processing on AIMP
Differential Revision: D57162331
This pull request was exported from Phabricator. Differential Revision: D57162331