lightning/tests/base
Thomas Schaaf 7c0a3f4745
Bugfix/_has_len (#2307)
* deal with NotImplementedError raised by torchtext

* deal with NotImplementedError raised by torchtext

* Added tests for dataloader which raise NotImplementedError in __len__()

* Fixed some typos

* enabled tests for dataloader raising NotImplementedError in __len__ and corrected match string for raised exception

* deleted empty line for style compliance

* refactored CustomNotImplementedErrorDataloader to derive from CustomInfDataloader

* enabled reduced number of not_implemented_error dataloader test to reduce runtime for continuous integration

* reduced test number of not_implemented_error dataloader test further to reduce test time

* reduced test number of not_implemented_error dataloader test to one to reduce test time

* disabled all not_implemented_error dataloader test to see if test pass in time

* added __next__ with a reduced number (5) of elements after which CustomNotImplementedErrorDataloader stops to speedup test.

* enabling all not_implemented_error dataloader test

* added brief description of change and relation of torchtext

* CustomNotImplementedErrorDataloader reduced number of batches served to 2.

* Update CHANGELOG.md

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

* Apply suggestions from code review

* Update CHANGELOG.md

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>

* Disable parallelism in dataloader

Suspect that it might cause pytest to hang more frequent

* added max_steps=None to Trainer in not_implemented_error dataloader tests

* rearranged not_implemented_error test in file to group them together

* disabled parallel data loading
Reason: testing if that stops the test framework from hanging.

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Thomas Schaaf <tschaaf@cs.cmu.edu>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
2020-06-26 09:31:08 -04:00
..
__init__.py Tests: refactor cleanup (#1744) 2020-05-10 13:15:28 -04:00
dataloaders.py Bugfix/_has_len (#2307) 2020-06-26 09:31:08 -04:00
datasets.py Refactor model summary + generalize example input array (#1773) 2020-06-15 17:05:58 -04:00
deterministic_model.py refactored training_batch + tests to verify correctness (#2328) 2020-06-23 11:17:10 -04:00
mixins.py Fix lr key name in case of param groups (#1719) 2020-05-10 17:05:34 -04:00
model_optimizers.py replace Hparams by init args (#1896) 2020-05-24 18:59:08 -04:00
model_template.py Docs clean-up (#2234) 2020-06-18 08:29:18 -04:00
model_test_dataloaders.py Add missing test for "multiple dataloader + percent_check fix" (#2226) 2020-06-23 11:21:24 -04:00
model_test_epoch_ends.py Add missing test for "multiple dataloader + percent_check fix" (#2226) 2020-06-23 11:21:24 -04:00
model_test_steps.py Tests: refactor cleanup (#1744) 2020-05-10 13:15:28 -04:00
model_train_dataloaders.py Bugfix/_has_len (#2293) 2020-06-19 23:38:15 -04:00
model_train_steps.py hotfix to unblock hparams and OmniConf - removes auto_register_init_args by default (#2025) 2020-05-31 08:29:51 -04:00
model_utilities.py Bugfix/_has_len (#2307) 2020-06-26 09:31:08 -04:00
model_valid_dataloaders.py Add missing test for "multiple dataloader + percent_check fix" (#2226) 2020-06-23 11:21:24 -04:00
model_valid_epoch_ends.py Add missing test for "multiple dataloader + percent_check fix" (#2226) 2020-06-23 11:21:24 -04:00
model_valid_steps.py hotfix to unblock hparams and OmniConf - removes auto_register_init_args by default (#2025) 2020-05-31 08:29:51 -04:00
models.py Refactor model summary + generalize example input array (#1773) 2020-06-15 17:05:58 -04:00
utils.py cleaning (#2030) 2020-06-04 11:25:07 -04:00