lightning/pl_examples
thomas chaton 9e844d9db6
Lite Docs and Example Improvements (#10303)
Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com>
2021-11-02 16:13:01 +01:00
..
basic_examples Lite Docs and Example Improvements (#10303) 2021-11-02 16:13:01 +01:00
domain_templates Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00
integration_examples Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00
ipu_examples Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
loop_examples Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00
README.md Lite Docs and Example Improvements (#10303) 2021-11-02 16:13:01 +01:00
__init__.py Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
bug_report_model.py Add `enable_model_summary` flag and deprecate `weights_summary` (#9699) 2021-10-13 17:20:54 +05:30
run_examples.sh Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00
test_examples.py Lightning Lite Examples (#9987) 2021-11-02 08:04:29 +00:00

README.md

Examples

Our most robust examples showing all sorts of implementations can be found in our sister library Lightning Bolts.


MNIST Examples

5 MNIST examples showing how to gradually convert from pure PyTorch to PyTorch Lightning.

The transition through LightningLite from pure PyTorch is optional but it might be helpful to learn about it.


Basic Examples

In this folder, we have 2 simple examples:


Domain Examples

This folder contains older examples. You should instead use the examples in Lightning Bolts for advanced use cases.


Basic Examples

In this folder, we have 1 simple example:


Loop examples

Contains implementations leveraging loop customization to enhance the Trainer with new optimization routines.

  • K-fold Cross Validation Loop: Implemenation of cross validation in a loop and special datamodule.
  • Yield Loop: Enables yielding from the training_step like in a Python generator. Useful for automatic optimization with multiple optimizers.