From 7061d12c00e735339045fe0918836da110580480 Mon Sep 17 00:00:00 2001 From: zy <48225584+zeyueN@users.noreply.github.com> Date: Thu, 12 Sep 2024 15:31:13 -0400 Subject: [PATCH] not use cached optimizer object to make tf v2.17 happy --- mrmustard/math/backend_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mrmustard/math/backend_manager.py b/mrmustard/math/backend_manager.py index cdaafda02..eecea7d50 100644 --- a/mrmustard/math/backend_manager.py +++ b/mrmustard/math/backend_manager.py @@ -1316,8 +1316,7 @@ def DefaultEuclideanOptimizer(self): @property def euclidean_opt(self): r"""The configured Euclidean optimizer.""" - if not self._euclidean_opt: - self._euclidean_opt = self.DefaultEuclideanOptimizer() + self._euclidean_opt = self.DefaultEuclideanOptimizer() return self._euclidean_opt # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~