lightning/tests/trainer/flags
Elia Cereda d0596fac94
Refactor RunningStage usage in advance of implementing Trainer.validate() (#4945)
* Update code

Co-authored-by: EliaCereda

* More property updates

* Move properties. Introduce trainer._fitting

* Use trainer.fitting

* Fix reset dataloaders

* Unused code

* RunningStage.SANITY_CHECKING

* Use setters

* Fix bugs

* Fix bugs

* TrainerState.{FITTING,VALIDATING,TESTING,PREDICTING,TUNING}

* Fix bugs

* Fix bugs

* Fix tests

* Update CHANGELOG. Add deprecation warning. Fix tests

* Unused imports

* Optional trainer

* More deprecation. More refactoring

* Correct version

* Use properties

* Address comments

* flake8

* Missed renamings

* Typo

* is -> ==

It is recommended to use  for Enums since they are singletons, however, since the LightningEnum subclasses str, it's not a good idea in case a user sets the state/stage with a str

* Also for tests

* Typo

* Address @tchaton's comments

* PEP8

* Correct property

* Update CHANGELOG

* Apply suggestions from code review

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>

* Update pytorch_lightning/trainer/trainer.py

Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>

* Remove called sanity check

Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-03-06 12:40:19 +00:00
..
__init__.py ref: training flag tests (val_check_interval) (#3825) 2020-10-03 14:05:01 -04:00
test_env_vars.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_fast_dev_run.py Refactor RunningStage usage in advance of implementing Trainer.validate() (#4945) 2021-03-06 12:40:19 +00:00
test_min_max_epochs.py Enable purely iteration-based training (#5726) 2021-02-10 08:51:08 +00:00
test_overfit_batches.py Refactor simplify tests (#5861) 2021-02-08 11:52:02 +01:00
test_val_check_interval.py Refactor RunningStage usage in advance of implementing Trainer.validate() (#4945) 2021-03-06 12:40:19 +00:00