Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jieru-hu committed Jan 20, 2021
1 parent 2ebfea7 commit 8dd32d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hydra/core/singleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"])

0 comments on commit 8dd32d1

Please sign in to comment.