From 79217433b58a67a7c44808e465e058787d1d5632 Mon Sep 17 00:00:00 2001 From: "Jessica Zhang (NY)" Date: Fri, 3 Jan 2025 11:24:17 -0500 Subject: [PATCH] Comment out _set_parent call in instantiate function --- hydra/_internal/instantiate/_instantiate2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra/_internal/instantiate/_instantiate2.py b/hydra/_internal/instantiate/_instantiate2.py index 2f09ece868b..f4c5692d13d 100644 --- a/hydra/_internal/instantiate/_instantiate2.py +++ b/hydra/_internal/instantiate/_instantiate2.py @@ -211,7 +211,7 @@ def instantiate(config: Any, *args: Any, **kwargs: Any) -> Any: config_copy._set_flag( flags=["allow_objects", "struct", "readonly"], values=[True, False, False] ) - config_copy._set_parent(config._get_parent()) + # config_copy._set_parent(config._get_parent()) config = config_copy if kwargs: