torchrec
torchrec copied to clipboard
Faster KJT init
Summary: To improve inference, we want to make creating a KJT as cheap as possible, which means the init method is nothing more than a attribute setter. All other fields are calculated lazily. This is practicularly important wrt jit script and moving between compilation units.
Differential Revision: D57577131
Privacy Context Container: 1203980333745195
This pull request was exported from Phabricator. Differential Revision: D57577131