Skip to content

Commit

Permalink
training_end to training_step_end
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Mar 5, 2020
1 parent a106c47 commit bc4db9f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Binary file added docs/source/_images/lightning_module/pt_to_pl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 12 additions & 7 deletions pytorch_lightning/trainer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@
Once you've organized your PyTorch code into a LightningModule,
the Trainer automates everything else.
.. figure:: /_images/lightning_module/pt_to_trainer.png
.. figure:: /_images/lightning_module/pt_trainer.png
:alt: Convert from PyTorch to Lightning
This abstraction achieves the folowing:
The trainer automates all parts of training except:
1. You maintain control over all aspects via PyTorch
code without an added abstraction.
- what happens in training , test, val loop
- where the data come from
- which optimizers to use
- how to do the computations
2. The trainer uses best practices embedded by contributors and users
from top AI labs such as Facebook AI Research, NYU, MIT, Stanford, etc...
The Trainer delegates those calls to your LightningModule which defines how to do those parts.
3. The trainer allows overriding any key part that you don't want automated.
-----------
Basic use
---------
This is the basic use of the trainer:
Expand Down

0 comments on commit bc4db9f

Please sign in to comment.