torchrec
torchrec copied to clipboard
Replace `constraints` with `dynamic_shapes` in apf
Summary: constraints argument for torch.export has been deprecated in favor of the dynamic_shapes argument. This PR updates the use of the deprecated API in apf. In addition, this diff registers DefaultRecTrainInput as a pytree node to make it work with torch.export.dynamic_shapes.process_dynamic_shapes().
Differential Revision: D53697239
This pull request was exported from Phabricator. Differential Revision: D53697239