lightning/tests/trainer
Dusan Drevicky c50c225f05
feature: Allow str arguments in Trainer.profiler (#3656)
* allow trainer's profiler param to have a str value

* add tests

* update docs

* update exception message

* Update CHANGELOG

* fix pep8 issues

* cleanup test code

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>

* Add deprecation warning if using bool for profiler

* Add deprecation tests and move deprecated tests

* Remove bool option to profiler from docs

* Deprecate bool args to profiler in CHANGELOG

* fixup! Add deprecation warning if using bool for profiler

* fixup! Add deprecation tests and move deprecated tests

* Apply suggestions from code review

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>

* Implement suggestions, remove whitespace

* fixup! Implement suggestions, remove whitespace

* Allow bool, str (case insensitive), BaseProfiler

* Add info about bool deprecation to trainer

* fixup! Add info about bool deprecation to trainer

* Move deprecate todo to test_deprecated

* Test wrong profiler type, improve error message

* fixup! Test wrong profiler type, improve error message

* Update pytorch_lightning/trainer/connectors/profiler_connector.py

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>

* Apply suggestions from code review

* Readd bool to profiler types, test cli profiler arg

* Remove extra whitespace in doc

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

* Apply suggestions from code review

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

* Update deprecation versions

Co-authored-by: Carlos Mocholí <carlossmocholi@gmail.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2020-10-27 16:27:16 +05:30
..
data_flow Optimizer closure (#4190) 2020-10-21 19:34:29 +01:00
dynamic_args notices (#4118) 2020-10-13 07:18:07 -04:00
flags notices (#4118) 2020-10-13 07:18:07 -04:00
legacy_deprecate_flow_log_tests Optimizer closure (#4190) 2020-10-21 19:34:29 +01:00
logging Add dirpath and filename parameter in ModelCheckpoint (#4213) 2020-10-23 09:59:12 +05:30
model_hooks notices (#4118) 2020-10-13 07:18:07 -04:00
optimization Fix bug comparing max_steps to global step which inits at 0 (#4278) 2020-10-22 13:58:59 +01:00
warnings notices (#4118) 2020-10-13 07:18:07 -04:00
__init__.py split trainer tests (#956) 2020-02-26 20:31:40 -05:00
test_config_validator.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_correct_freq_accumulation.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_dataloaders.py Skip replacing dataloader sampler if it's already a distributed sampler (#4273) 2020-10-23 17:34:07 +01:00
test_lr_finder.py Fix bug comparing max_steps to global step which inits at 0 (#4278) 2020-10-22 13:58:59 +01:00
test_optimizers.py Clean up optimizer code (#3587) 2020-10-21 21:12:48 +02:00
test_states.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_trainer.py feature: Allow str arguments in Trainer.profiler (#3656) 2020-10-27 16:27:16 +05:30
test_trainer_cli.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_trainer_test_loop.py notices (#4118) 2020-10-13 07:18:07 -04:00
test_trainer_tricks.py notices (#4118) 2020-10-13 07:18:07 -04:00