mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
PyTorch MergeBot
parent
f80a61adf5
commit
d1947a8707
@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user