2020-11-13 15:05:54 +00:00
|
|
|
API References
|
|
|
|
==============
|
|
|
|
|
2021-09-06 12:49:09 +00:00
|
|
|
.. include:: links.rst
|
|
|
|
|
2021-04-10 06:55:07 +00:00
|
|
|
Accelerator API
|
|
|
|
---------------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.accelerators
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
Accelerator
|
|
|
|
CPUAccelerator
|
|
|
|
GPUAccelerator
|
|
|
|
TPUAccelerator
|
|
|
|
|
2020-11-13 15:05:54 +00:00
|
|
|
Core API
|
|
|
|
--------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.core
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
datamodule
|
|
|
|
decorators
|
|
|
|
hooks
|
|
|
|
lightning
|
|
|
|
|
|
|
|
Callbacks API
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.callbacks
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
base
|
|
|
|
early_stopping
|
|
|
|
gpu_stats_monitor
|
|
|
|
gradient_accumulation_scheduler
|
|
|
|
lr_monitor
|
|
|
|
model_checkpoint
|
|
|
|
progress
|
|
|
|
|
|
|
|
Loggers API
|
|
|
|
-----------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.loggers
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
base
|
|
|
|
comet
|
|
|
|
csv_logs
|
|
|
|
mlflow
|
|
|
|
neptune
|
|
|
|
tensorboard
|
|
|
|
test_tube
|
|
|
|
wandb
|
|
|
|
|
2021-10-18 09:43:11 +00:00
|
|
|
Loop API
|
|
|
|
--------
|
|
|
|
|
|
|
|
Base Classes
|
|
|
|
^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.loops
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
~base.Loop
|
|
|
|
~dataloader.dataloader_loop.DataLoaderLoop
|
|
|
|
|
|
|
|
|
|
|
|
Default Loop Implementations
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
Training
|
|
|
|
""""""""
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.loops
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
FitLoop
|
|
|
|
~epoch.TrainingEpochLoop
|
|
|
|
~batch.TrainingBatchLoop
|
|
|
|
~optimization.OptimizerLoop
|
|
|
|
~optimization.ManualOptimization
|
|
|
|
|
|
|
|
|
|
|
|
Validation and Testing
|
|
|
|
""""""""""""""""""""""
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.loops
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
~dataloader.EvaluationLoop
|
|
|
|
~epoch.EvaluationEpochLoop
|
|
|
|
|
|
|
|
|
|
|
|
Prediction
|
|
|
|
""""""""""
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.loops
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
~dataloader.PredictionLoop
|
|
|
|
~epoch.PredictionEpochLoop
|
|
|
|
|
|
|
|
|
2021-04-14 20:53:21 +00:00
|
|
|
Plugins API
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Training Type Plugins
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.plugins.training_type
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
TrainingTypePlugin
|
|
|
|
SingleDevicePlugin
|
|
|
|
ParallelPlugin
|
|
|
|
DataParallelPlugin
|
|
|
|
DDPPlugin
|
|
|
|
DDP2Plugin
|
|
|
|
DDPShardedPlugin
|
|
|
|
DDPSpawnShardedPlugin
|
|
|
|
DDPSpawnPlugin
|
|
|
|
DeepSpeedPlugin
|
|
|
|
HorovodPlugin
|
|
|
|
SingleTPUPlugin
|
|
|
|
TPUSpawnPlugin
|
|
|
|
|
|
|
|
Precision Plugins
|
|
|
|
^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.plugins.precision
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
PrecisionPlugin
|
2021-10-19 17:48:57 +00:00
|
|
|
MixedPrecisionPlugin
|
2021-04-14 20:53:21 +00:00
|
|
|
NativeMixedPrecisionPlugin
|
|
|
|
ShardedNativeMixedPrecisionPlugin
|
|
|
|
ApexMixedPrecisionPlugin
|
|
|
|
DeepSpeedPrecisionPlugin
|
2021-10-19 17:48:57 +00:00
|
|
|
TPUPrecisionPlugin
|
2021-10-19 21:09:37 +00:00
|
|
|
TPUBf16PrecisionPlugin
|
2021-04-14 20:53:21 +00:00
|
|
|
DoublePrecisionPlugin
|
2021-10-19 17:48:57 +00:00
|
|
|
FullyShardedNativeMixedPrecisionPlugin
|
|
|
|
IPUPrecisionPlugin
|
2021-04-14 20:53:21 +00:00
|
|
|
|
|
|
|
Cluster Environments
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.plugins.environments
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
ClusterEnvironment
|
|
|
|
LightningEnvironment
|
2021-07-15 14:40:22 +00:00
|
|
|
LSFEnvironment
|
2021-04-14 20:53:21 +00:00
|
|
|
TorchElasticEnvironment
|
2021-05-17 08:05:24 +00:00
|
|
|
KubeflowEnvironment
|
2021-04-14 20:53:21 +00:00
|
|
|
SLURMEnvironment
|
|
|
|
|
2021-08-13 16:35:31 +00:00
|
|
|
Checkpoint IO Plugins
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.plugins.io
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
CheckpointIO
|
|
|
|
TorchCheckpointIO
|
2021-04-14 20:53:21 +00:00
|
|
|
|
2020-11-13 15:05:54 +00:00
|
|
|
Profiler API
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.profiler
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
2021-06-04 15:38:29 +00:00
|
|
|
:template: classtemplate.rst
|
|
|
|
|
|
|
|
AbstractProfiler
|
|
|
|
AdvancedProfiler
|
|
|
|
BaseProfiler
|
|
|
|
PassThroughProfiler
|
|
|
|
PyTorchProfiler
|
|
|
|
SimpleProfiler
|
2020-11-13 15:05:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
Trainer API
|
|
|
|
-----------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.trainer
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
|
|
|
|
trainer
|
|
|
|
|
|
|
|
Tuner API
|
|
|
|
---------
|
|
|
|
|
2021-04-30 13:54:58 +00:00
|
|
|
.. currentmodule:: pytorch_lightning.tuner.tuning
|
2020-11-13 15:05:54 +00:00
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
2021-04-30 13:54:58 +00:00
|
|
|
:template: classtemplate.rst
|
2020-11-13 15:05:54 +00:00
|
|
|
|
2021-04-30 13:54:58 +00:00
|
|
|
Tuner
|
2020-11-13 15:05:54 +00:00
|
|
|
|
|
|
|
Utilities API
|
|
|
|
-------------
|
|
|
|
|
|
|
|
.. currentmodule:: pytorch_lightning.utilities
|
|
|
|
|
|
|
|
.. autosummary::
|
|
|
|
:toctree: api
|
|
|
|
:nosignatures:
|
|
|
|
|
2021-04-06 13:19:11 +00:00
|
|
|
cli
|
2021-04-22 00:13:00 +00:00
|
|
|
argparse
|
2020-11-13 15:05:54 +00:00
|
|
|
seed
|