Fix double iteration bug when resumed from a checkpoint. (#20775)
* Fix double iteration bug when resumed from a checkpoint.
* Apply suggestions from code review
* update wording in the comments.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
* update test
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
* Add independent flag to track checkpoint resumption.
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
* lint
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
* update
* Update src/lightning/pytorch/loops/training_epoch_loop.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/ci-tests-pytorch.yml
* update
* skip
---------
Signed-off-by: sudipto baral <sudiptobaral.me@gmail.com>
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
Co-authored-by: Bhimraj Yadav <bhimrajyadav977@gmail.com>
Co-authored-by: Deependu <deependujha21@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>