Skip to content

Commit

Permalink
Correct config update
Browse files Browse the repository at this point in the history
Signed-off-by: smajumdar <titu1994@gmail.com>
  • Loading branch information
titu1994 committed May 8, 2022
1 parent 5462c37 commit 644247d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions nemo/core/classes/modelPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,11 +1302,6 @@ def cfg(self):
Please create a new model using an updated config to properly update the model.
"""
self._set_hparams(OmegaConf.create({'cfg': self._cfg}))

# TODO: Remove in NeMo 1.7 (or when PTL fixes this on their end)
if hasattr(self, '_hparams_initial') and 'cfg' in self._hparams_initial:
self._hparams_initial['cfg'] = OmegaConf.to_object(self._cfg)

return self._cfg

@cfg.setter
Expand Down

0 comments on commit 644247d

Please sign in to comment.