Add caching for inside torch.compile.disable function to avoid unnecessary recompilation. (#160934)
Summary:
Fixes #157399
cherry pick of d6a5c03
mlazos
X-link: https://github.com/pytorch/pytorch/pull/160934
Approved by: https://github.com/mlazos
Reviewed By: seemethere
Differential Revision: D80547511
fbshipit-source-id: bd294ab9f3f710423d5b7e7f314dab85ac4d7212
Author
generatedunixname499836121