From db17195ae1942369da87f649cf07e76de83b011d Mon Sep 17 00:00:00 2001 From: Moritz Gunz Date: Fri, 1 Dec 2023 17:18:55 +0100 Subject: [PATCH] Instanciate delayed variables when printing a staged network dict (#465) Otherwise delayed variables and paths are stringified wrongly (via their repr, which for paths leads to ``). --- returnn/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/returnn/config.py b/returnn/config.py index b01570d1..4dd1b63a 100644 --- a/returnn/config.py +++ b/returnn/config.py @@ -217,7 +217,7 @@ def _write_network_stages(self, config_path): pp = pprint.PrettyPrinter(indent=2, width=150, **self.pprint_kwargs) network_definition = self.staged_network_dict[epoch] if isinstance(network_definition, dict): - content = "\nnetwork = %s" % pp.pformat(network_definition) + content = "\nnetwork = %s" % pp.pformat(instanciate_delayed(network_definition)) elif isinstance(network_definition, str): content = network_definition else: