Migrate from lru_cache to cache (#155613)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/155613
Approved by: https://github.com/ezyang
ghstack dependencies: #155612
This commit is contained in:
Oguz Ulgen
2025-06-11 08:59:26 -07:00
committed by PyTorch MergeBot
parent f80a61adf5
commit d1947a8707
70 changed files with 157 additions and 157 deletions

View File

@ -1805,7 +1805,7 @@ class PolyfilledFunctionVariable(VariableTracker):
}
@classmethod
@functools.lru_cache(None)
@functools.cache
def _get_polyfill_handlers(cls) -> dict[Callable[..., Any], types.FunctionType]:
return {}