Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support sending using lengths to TBE instead of just offsets
Summary: X-link: facebookresearch/FBGEMM#508 X-link: pytorch/torchrec#2557 Here we modify FBGEMM inference TBE to have the forward logic live in `_forward_impl`. This change makes it easy for subclasses of TBE to extend without having to call `super()`, which is not TorchScriptable. An example of a subclass using this is D66515313. Having subclasses TorchScriptable is vital for inference as TBE is generally not FX traced through. Reviewed By: sryap Differential Revision: D64906767 fbshipit-source-id: 41bab272c2611fc97dece7f89fdbbd820671843c
- Loading branch information