mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
* upgrade req. * move MkDocs * create Sphinx * init Sphinx * move md from MkDocs to Sphinx * CI: build docs * build Sphinx formatting move docs from MD to docstring in particular package/modules formatting add Sphinx ext. rename root_module to core drop implicit name "_logger" drop duplicate name "overwrite" fix imports use pytorch theme add sample link mapping try fix RTD build use forked template fix some docs warnings fix paths add deprecation warnings fix flake8 fix paths revert refactor revert MLFlowLogger * revert example import * update link * Update lightning_module_template.py
20 lines
457 B
Python
20 lines
457 B
Python
"""
|
|
# Trainer
|
|
|
|
The lightning trainer abstracts best practices for running a training, val, test routine.
|
|
It calls parts of your model when it wants to hand over full control and otherwise makes
|
|
training assumptions which are now standard practice in AI research.
|
|
|
|
This is the basic use of the trainer:
|
|
|
|
.. code-block:: python
|
|
|
|
from pytorch_lightning import Trainer
|
|
|
|
model = LightningTemplate()
|
|
|
|
trainer = Trainer()
|
|
trainer.fit(model)
|
|
|
|
"""
|