Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add jit.ignore to prototype optimizers (#2958)
Summary: X-link: facebookresearch/FBGEMM#58 Pull Request resolved: #2958 `torch.compile` doesn't seem to cause errors if we deprecate an optimizer that is no longer used, but `torch.jit.script` will. `torch.jit.script` seems to check and ensure all decision branches are alive. To make prototype optimizers easily deprecated once included in production, we wrap the invoker function with `torch.jit.ignore`. This means that we need to always keep auto-generating the `lookup_{}.py` even the optimizers are deprecated and their backends are removed. [simplified Bento example](https://fburl.com/anp/rbktkl08) Reviewed By: q10 Differential Revision: D60943180
- Loading branch information