Skip to content

Commit

Permalink
re-do: support nested LoadSerialized
Browse files Browse the repository at this point in the history
  • Loading branch information
msperber committed May 23, 2018
1 parent 76f4e7f commit bc8978c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xnmt/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ def preload_obj(root:Any, exp_name:str, exp_dir:str) -> UninitializedYamlObject:

@staticmethod
def _load_referenced_serialized(experiment):
for path, node in traverse_tree(experiment):
for path, node in traverse_tree(experiment, traversal_order=TraversalOrder.ROOT_LAST):
if isinstance(node, LoadSerialized):
try:
with open(node.filename) as stream:
Expand Down

0 comments on commit bc8978c

Please sign in to comment.