forked from pytorch/botorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't use functools.lru_cache on methods (pytorch#1650)
Summary: Pull Request resolved: pytorch#1650 It can cause memory leaks. For explanation and fix, see https://rednafi.github.io/reflections/dont-wrap-instance-methods-with-functoolslru_cache-decorator-in-python.html Reviewed By: Balandat Differential Revision: D42980747 fbshipit-source-id: 225edb7e43c363d1f2b4580bec77488542b1a7c3
- Loading branch information
1 parent
b3d3074
commit 7e1350b
Showing
1 changed file
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters