torchrec
torchrec copied to clipboard
Simplify custom op naming for meta functionalization of sparse modules
Summary: Registering custom ops for meta functionalization with ids can lead to hash collisions, resulting in wrong dimensions for a sparse module. This diff replaces custom op naming to just the dimension that is returned, alongside the module type, to ensure that the right dimensions are always returned and simplify the custom op naming logic significantly.
Differential Revision: D57108438
This pull request was exported from Phabricator. Differential Revision: D57108438
This pull request was exported from Phabricator. Differential Revision: D57108438