Skip to content

Commit

Permalink
Handle _io_unflatten_object when _thread_local.output_dir is not avai…
Browse files Browse the repository at this point in the history
…lable

Signed-off-by: Hemil Desai <[email protected]>
  • Loading branch information
hemildesai committed Nov 14, 2024
1 parent 02f0932 commit c506a03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nemo/lightning/io/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ def _io_flatten_object(instance):


def _io_unflatten_object(values, metadata):
assert hasattr(_thread_local, "output_dir")
if not hasattr(_thread_local, "output_dir"):
return fdl.Config.__unflatten__(values, metadata)

output_dir = _thread_local.output_dir

if len(values) == 1:
Expand Down

0 comments on commit c506a03

Please sign in to comment.