torchrec
torchrec copied to clipboard
Update PositionWeightedModule to make it jit trace compitable
Summary: In
torch.ops.fbgemm.offsets_range(features[key].offsets().long(), torch.numel(features[key].values())
This part
torch.numel(features[key].values()
will be traced into constant
Reviewed By: snabelkabiya
Differential Revision: D53744703
This pull request was exported from Phabricator. Differential Revision: D53744703