* resolve issues
* update
* update
* update
* add more exceptions
* resolve bug
* update
* update
* update changelog
* resolve bug
* resolve comments
* update
* update
* update changelog
* update
* update
* remove space
* update
* add progress tracking to loops
* validate json
* update
* convert to dict for better readability
* validate reload
* update
* update
* update on comments
* remove deadcode
* clean changelog
* clean changelog
* update
* update on comments
* CHANGELOG
* CHANGELOG
* Update pytorch_lightning/loops/base.py
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* whitespace suggestions
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* make fault_tolerant_enabled protected
* whitespace fixes around Args
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update
* typo it's -> its
* fix copy-paste typo in progress docstring
* Delete classes
* Minor change
* docs
* protected get_loops_state
* merge restore_loops with restore_progress
* Fix tests after removals
* explicit save with trainer.save_checkpoint()
* handle optimization restart based on optimizer_idx
* update increments
* update val batch progress and remove iteration count
* update progress tracking for dataloader loops
* remove self.dataloader_idx from eval_epoch_loop
* add batch progress to predict loop
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* incorporate progress tracking for current_epoch
* Fix test
* Actually remove it
* Remove unused TrainingEpochProgress
* Fix optimization progress - missing scheduler
* Restarting changes
* Scheduler progress
* Unused property, reset on epoch
* Resolve FIXME
* Remove FIXME
* fix test_progress (wip)
* fix batch_progress.current.reset
* Hold off on split progress. Out of scope of this PR
* Unnecessary if
* fix structure in test_progress
* structure
* clean up unused variables in test_progress
* refactor naming and organization in test_progress
* Unnecessary variable
* Remove unnecessary diff
* Improve comment
* Undo typing change to avoid polluting everything with mypy fixes
* Fix and improve test_loops.py
* Fix and organize `test_loop_state_dict`
* Remove unnecessary checks in test
* Update test after disallowing updates on None attributes
* Typing
* Minor test cleanup
* Fix and move loop test
* Move test from progress to loops
* Reset the scheduler progress
* SchedulerProgress fix
* Consistent whitespace
* Fix final test
* Minor test changes
* One test to rule them all
* Formatting
* Rename and clean variables
* Shorter names
* Shorter scheduler name
* Fix optimizer step calculation for stop_batch=2
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove empty connects
* Update CHANGELOG
* Holy shit finally got the formula right
* Fix final thing!!!
* Do not check state dicts
* parametrize multiple_dataloader progress test
* Update CHANGELOG.md
Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Justus Schock <justus.schock@posteo.de>
* edit arg to reload_dataloaders_every_n_epoch
* init reload_dataloaders_every_n_epoch
* edit logic to reload dl
* update arg to test datamodule
* update arg test dataloader
* edit reload dl logic in eval loop
* fix var name in reset_train_val_dataloaders
* fix error, use current_epoch attribute
* edit every_n_epoch to every_n_epochs
* edit every_n_epoch to every_n_epochs
* edit every_n_epoch to every_n_epochs
* edit every_n_epoch to every_n_epochs
* edit every_n_epoch to every_n_epochs
* edit every_n_epoch to every_n_epochs
* assert reload_dataloaders_every_n_epochs positive
* assert reload_dataloaders_every_n_epochs positive
* add trainer property should reload dl
* update should reload dl in train loop
* condition on should reload dl in eval loop
* pep8
* fix update should reload dl in train loop
* add test case
* replace assertion with misconfig exception
* remove unused variable
* remove unnecessary checks
* replace to BoringModel
* remove unrequired comment
* deprecate _every_epoch
* add deprecated argument to trainer
* test case for deprecated arg
* remove unrequired assertion in train loop
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* modify misconfig exception for int
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* conv bool to int of depreciated _every_epoch
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* update description of deprecated param
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* update deprecation warning
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* modify argument to int only
* fix deprecated test function name
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* merge tests for reload dls
* add propery should reload dl
* removed and added to trainer property
* use property in train loop
* remove deprecated test
* add deprecated test to new file
* test case for exception
* update test datamodule every_n_epochs
* update trainer docs
* update hooks with every_n_epochs
* edit format if statement
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
* Update CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
* typo in exception
* pytest check only misconfig exception
* remove unnecessary code in test
* remove unnecessary code in deprec test
* added match in test
* typo in comment
* revert to prev, keep only req in context manager
* Apply suggestions from code review
* docs
* rebase
* Apply suggestions from code review
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix import: model_helpers instead of model_utils
* fix, add reload_dataloaders_every_n_epochs argument to data connector
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add required imports
* move deprecated log
* add missing import rank_zero_warn
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update varname in should_reload_dl_epoch
suggestion from code review
* Fix CHANGELOG. Update deprecation versions
* Minor change
* change property name, mark protected
* update property name
* update property name
* Remove deprecated *_loop.py files
* Rename test func
* Update CHANGELOG.md
* use rank_zero_deprecation
* update deprecation message in trainer api docs
* test deprecation with real arg name in message
* fix typo in trainer docs
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Akihiro Nitta <nitta@akihironitta.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
* Move result teardown to loops
* Update CHANGELOG
* Remove teardown from run
* Move previous teardown to on_run_end
* Add comment
* Merge 8250
* Remove stage set to None where it shouldnt