You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trainer.progress_bar_dict does not contain what was self.log-ed in that epoch's training step, but the previous value.
This also means that there is no value for epoch 0.
Okay, the cause of the issue is that trainer.call_hook('on_train_epoch_end', epoch_output) is run before trainer.logger_connector.on_train_epoch_end(). And the progress_bar_dict is updated in the second one.
I think the problem is in the reset in call_hook of the model._results as we call after that also self._cache_logged_metrics() which is on empty Result.
Also in the def training_step(...) in training_loop.py we have call_hook which reset the Result and after that collecting the results from model._results which is empty
carmocca
changed the title
Missing values in trainer.progress_bar_dict after epoch 0
trainer.progress_bar_dict values are delayed by one epoch
Nov 28, 2020
🐛 Bug
trainer.progress_bar_dict
does not contain what wasself.log
-ed in that epoch's training step, but the previous value.This also means that there is no value for epoch 0.
To Reproduce (and to test)
Expected behavior
trainer.progress_bar_dict
contains the values logged intraining_step
Environment
The test fails on master
The commit that introduced this bug is 9c8701f. The previous one works as expected.
I haven't dived into the changes much since it is a large commit. Maybe the author can help @tchaton
The text was updated successfully, but these errors were encountered: