Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions hydra/core/default_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ def __post_init__(self) -> None:
raise ValueError("_self_@PACKAGE is not supported")
if self.package == "_here_":
self.package = ""
if self.package is not None:
# Deep copy is required to avoid mutating the original config so this mode is turned off if this condition is found
OmegaConf.default_flags["no_deepcopy_set_nodes"] = False

def is_self(self) -> bool:
return self.path == "_self_"
Expand Down
Loading