[Bug]: Late update of Trainer current_epoch
property for LightningDataModule
#3974
Labels
Milestone
current_epoch
property for LightningDataModule
#3974
🐛 Bug
Late update of Trainer
current_epoch
property forLightningDataModule
object.To Reproduce
The below code reproduces the issue:
Please check for the print logs for the
current_epoch
number intrain_dataloader
.Code sample
logs
Note:
current_epoch
is 0 two time, which is indeed due to the late update of this propertyExpected behavior
current_epoch
should be updated and reflect the right epoch number for theLightningDataModule
Environment
Please copy and paste the output from our
environment collection script
(or fill out the checklist below manually).
You can get the script and run it with:
The text was updated successfully, but these errors were encountered: