lightning/docs/source
Justus Schock d88cf4a652
Add Support for multiple train loaders (#1959)
* add support for wrong dtype in apply_func

* apply loader resetting to possible collection of loaders

* add combined loader iter class

* integrate combined loader iter to training loop

* fix imports

* fix imports

* finish supporters

* add tests for supporters

* add test for model with multiple loaders

* fix trainer integration

* fix instance check

* Train loaders (#4032)

* patch for issues discussed in #1959, encapsulating underlying datastructures returned from train_dataloader

* update data_loading.py to it uses patch discussed in #1959

* rename class

* Separate CombinedLoaderIterator into two classes, and update related tests. (#4606)

* Fix the bugs after rebasing.

* Add custom get_len for apply_to_collection

* Refactor MultiIterator to be as CombinedLoaderIterator

* To get the right num_training_batches. Call the wrapper for multi trainloader in data_loading.py, instead of training_loop.py

* Reload _loader_iters when calling __iter__

* Don't transform DataLoader to CombinedLoaderIterator when it's along

* Updates test_fit_multiple_train_loaders for testing num_training_batches

* Seperate CombinedLoaderIterator into CombinedLoaderIterator and CombinedDataLoader. Add CombinedDataset for unified DataLoader format.

* Initialize CombinedDataLoader before calculating num_training_batches. Also updating self._worker_check for multiple loaders

* Update tests for supporters

* Update tests for multiple trainloaders. Add tests about few_workers for multiple loaders.

* Fix pep8 issues

* Add tests for train_loader_patch.py

* Add descriptions to multiple_trainloader_mode

* Remove unused variables

* Add docstrings and typing

* Add more tests for better converage

* Remove unused commented codes

* Add sampler property

* Remove extract_dataset

* Update typing

* pep8

* Update train_loader_patch.py

* Apply suggestions from code review

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

* Update pytorch_lightning/trainer/supporters.py

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

* reviewer comments

* fix stupid import

* add docs

* add back line separator

* fix line sep

* pep8

* Apply suggestions from code review

* fix

* fix

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>

* flake8

Co-authored-by: Justus Schock <justusschock@justuss-mbp.fritz.box>
Co-authored-by: Christofer Fransson <christofer_fransson@yahoo.com>
Co-authored-by: YI-LIN SUNG <r06942076@ntu.edu.tw>
Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
Co-authored-by: Nicki Skafte <skaftenicki@gmail.com>
Co-authored-by: Jirka Borovec <jirka.borovec@seznam.cz>
2021-01-04 19:57:53 +00:00
..
_images Update lightning logo (#4490) 2020-12-05 19:34:48 +00:00
_static Callback docs with autosummary (#3908) 2020-10-06 17:28:45 -04:00
_templates logger docs and api docs (#3950) 2020-11-13 20:35:54 +05:30
accelerators.rst docs: minor spelling tweaks (#5022) 2020-12-08 16:27:43 -05:00
amp.rst set xxx_AVAILABLE as protected (#5082) 2020-12-14 20:19:05 +05:30
api_references.rst logger docs and api docs (#3950) 2020-11-13 20:35:54 +05:30
asr_nlp_tts.rst docs: minor spelling tweaks (#5022) 2020-12-08 16:27:43 -05:00
bolts.rst docs: minor spelling tweaks (#5022) 2020-12-08 16:27:43 -05:00
callbacks.rst update documentation for callbacks (#4253) 2020-10-20 16:01:08 +01:00
child_modules.rst Drop all result docs. Make the separation between flow and logging clear (#3744) 2020-09-30 08:31:16 -04:00
cloud_training.rst docs (#4096) 2020-10-12 12:15:33 -04:00
community_examples.rst Add lightning-geometric (#4771) 2020-11-20 08:45:04 +01:00
conf.py fix/enable - check F401 (#5201) 2020-12-21 10:15:04 +01:00
converting.rst Fixes broken LM links (#4117) 2020-10-13 06:42:33 -04:00
datamodules.rst clean up docs (#4095) 2020-10-12 11:56:16 -04:00
debugging.rst fast_dev_run can be int (#4629) 2020-12-09 01:37:53 +05:30
early_stopping.rst docs (#4003) 2020-10-08 15:54:52 -04:00
fast_training.rst created minor doc fixes [ci skip] (#3958) 2020-10-13 15:52:32 +02:00
governance.rst Add carmocca to core (#5038) 2020-12-09 16:48:46 +01:00
hyperparameters.rst deprecate hprams setter method (#4813) 2020-12-04 12:28:53 +01:00
index.rst [Example] Add Pytorch Geometric Example (#4568) 2020-11-18 20:03:55 +00:00
introduction_guide.rst set xxx_AVAILABLE as protected (#5082) 2020-12-14 20:19:05 +05:30
lightning_module.rst optimizer clean up (#4658) 2020-12-01 00:09:46 +00:00
loggers.rst docs: minor spelling tweaks (#5022) 2020-12-08 16:27:43 -05:00
logging.rst Enable`self.log` in most functions. (#4969) 2020-12-06 13:01:43 +00:00
lr_finder.rst docs: minor spelling tweaks (#5022) 2020-12-08 16:27:43 -05:00
metrics.rst [Metrics] R2Score (#5241) 2021-01-01 12:23:19 +01:00
multi_gpu.rst Update installation instructions for FairScale (#5099) 2020-12-12 02:42:04 +01:00
multiple_loaders.rst Add Support for multiple train loaders (#1959) 2021-01-04 19:57:53 +00:00
new-project.rst Fix codes in 'Lightning in 2 steps' docs (#4894) 2020-11-30 14:29:49 +01:00
optimizers.rst [hotfix] Extend Optimizer + update doc (#5095) 2020-12-11 14:24:59 -05:00
performance.rst [feat] 3/n pp (#5036) 2020-12-09 16:31:18 +00:00
plugins.rst Enable custom apex and amp plugins (#4355) 2020-10-25 17:11:07 -04:00
production_inference.rst docs: use ref for anchor links, fix a few typo (#3486) 2020-09-13 21:04:21 -04:00
profiler.rst Add labels to sphinx docs (#2964) 2020-08-13 18:56:51 -04:00
pytorch_ecoystem.rst [Example] Add Pytorch Geometric Example (#4568) 2020-11-18 20:03:55 +00:00
rapid_prototyping_templates.rst docs fixes (#4080) 2020-10-11 13:12:19 -04:00
sequences.rst [CI SKIP] Sequential data & TPU support docs fix (#3956) 2020-10-07 16:11:03 -04:00
single_gpu.rst docs: use ref for anchor links, fix a few typo (#3486) 2020-09-13 21:04:21 -04:00
slurm.rst [docs] distributed_backend -> accelerator (#4429) 2020-10-30 00:45:24 +06:30
style_guide.rst fixed typos in style guide (#4181) 2020-10-16 22:21:47 +02:00
test_set.rst Fixes broken LM links (#4117) 2020-10-13 06:42:33 -04:00
tpu.rst [DOC] Clarify `tpu_cores` training. (#4475) 2020-11-02 15:23:24 +00:00
trainer.rst set xxx_AVAILABLE as protected (#5082) 2020-12-14 20:19:05 +05:30
training_tricks.rst [feat] 3/n pp (#5036) 2020-12-09 16:31:18 +00:00
transfer_learning.rst set xxx_AVAILABLE as protected (#5082) 2020-12-14 20:19:05 +05:30
weights_loading.rst Update DDP docs (#5046) 2020-12-10 18:26:02 +01:00