Skip to content

Commit 2d089a5

Browse files
anijain2305pytorchmergebot
authored andcommitted
[dynamo] Remove unintended lru_cache (pytorch#147147)
I forgot to remove it while add frozenset __contains__ method in this PR - pytorch#146062 This is causing memory leak Fixes #ISSUE_NUMBER Pull Request resolved: pytorch#147147 Approved by: https://github.com/williamwen42
1 parent 6344ca1 commit 2d089a5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torch/_dynamo/variables/functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ def __init__(self, fn, is_constant=False, **kwargs) -> None:
390390
self.fn = fn
391391

392392
@staticmethod
393-
@functools.lru_cache(None)
394393
def is_supported_builtin_method(obj):
395394
method_self = obj.__self__
396395
method_name = obj.__name__

0 commit comments

Comments
 (0)