From 8dd32d1ab818f4c8f9ad903d4e7578465afa54e7 Mon Sep 17 00:00:00 2001 From: Jieru Hu Date: Wed, 20 Jan 2021 11:52:58 -0800 Subject: [PATCH] commit --- hydra/core/singleton.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hydra/core/singleton.py b/hydra/core/singleton.py index 2715d0df5ac..e67035a86d6 100644 --- a/hydra/core/singleton.py +++ b/hydra/core/singleton.py @@ -20,6 +20,7 @@ def instance(cls: Any, *args: Any, **kwargs: Any) -> Any: def get_state() -> Any: try: from hydra.core.plugins import Plugins + del Singleton._instances[Plugins] except KeyError: pass @@ -32,5 +33,6 @@ def get_state() -> Any: def set_state(state: Any) -> None: Singleton._instances = state["instances"] from hydra.core.plugins import Plugins + Plugins.instance() BaseContainer._resolvers = deepcopy(state["omegaconf_resolvers"])