Skip to content

Commit

Permalink
Correctly log class that was restored
Browse files Browse the repository at this point in the history
Signed-off-by: smajumdar <titu1994@gmail.com>
  • Loading branch information
titu1994 committed Jun 11, 2021
1 parent 2133f51 commit 80fd773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/core/classes/modelPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def _default_restore_from(
instance = instance.to(map_location)
instance.load_state_dict(torch.load(model_weights, map_location=map_location), strict=strict)

logging.info(f'Model {cls.__name__} was successfully restored from {restore_path}.')
logging.info(f'Model {instance.__class__.__name__} was successfully restored from {restore_path}.')
finally:
cls._set_model_restore_state(is_being_restored=False)
os.chdir(cwd)
Expand Down

0 comments on commit 80fd773

Please sign in to comment.