Skip to content

loop customization docs #9609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 91 commits into from
Oct 18, 2021
Merged
Show file tree
Hide file tree
Changes from 81 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
f6fe9ee
add introduction draft
awaelchli Sep 15, 2021
3836641
trainer entry point section
awaelchli Sep 15, 2021
15d74ff
add api reference
awaelchli Sep 15, 2021
40bcfb6
base class section draft
awaelchli Sep 16, 2021
762f4e9
faq drat and notes
awaelchli Sep 16, 2021
d439db7
default loop description
awaelchli Sep 16, 2021
97ad8d7
loop customization section
awaelchli Sep 16, 2021
e2626ae
remove notes
awaelchli Sep 16, 2021
fd30f8b
rename file
awaelchli Sep 16, 2021
4cf9d04
add loop page to index
awaelchli Sep 16, 2021
fad1106
fix typo
awaelchli Sep 16, 2021
2e887cb
persisting state
awaelchli Sep 16, 2021
ff784a7
fix typo in code-block
awaelchli Sep 16, 2021
4710ce9
add FAQ
awaelchli Sep 16, 2021
16f46fc
fix underline
awaelchli Sep 16, 2021
6ff22c5
fix todo's for links
awaelchli Sep 16, 2021
c140209
update Q/A format
awaelchli Sep 16, 2021
d56f20e
blacken docs
awaelchli Sep 16, 2021
c0edf98
make comments fit on the page
awaelchli Sep 16, 2021
79967b3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 16, 2021
773f1b6
backticks and typos
awaelchli Sep 17, 2021
6919352
add missing backticks
awaelchli Sep 17, 2021
f6c83af
remove "-"
awaelchli Sep 17, 2021
9c9bd78
several rewordings and typos
awaelchli Sep 17, 2021
4add03c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 17, 2021
c9bfe7e
rewrite intro
awaelchli Sep 20, 2021
dda835a
rename files
awaelchli Sep 20, 2021
cc9fd1b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 20, 2021
5b5f409
shorten
awaelchli Sep 21, 2021
4a1d360
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Sep 21, 2021
6158765
review
awaelchli Sep 21, 2021
572c8a6
add example
awaelchli Sep 21, 2021
ba11909
add final training step with yield logic
awaelchli Sep 21, 2021
8d7ad14
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 21, 2021
bd14ad6
update intro
awaelchli Sep 21, 2021
66c7776
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Sep 21, 2021
9d2e2fe
add missing loss
awaelchli Sep 21, 2021
7a766b6
typo
awaelchli Sep 21, 2021
d37a656
formatting
awaelchli Sep 21, 2021
358d906
add base loop description
awaelchli Sep 21, 2021
0d07f4c
add other loops
awaelchli Sep 22, 2021
dd7bde0
formatting
awaelchli Sep 22, 2021
200fddb
convert table
awaelchli Sep 22, 2021
d3166a0
update structure
awaelchli Sep 22, 2021
4db6b0a
remove old
awaelchli Sep 22, 2021
3472e36
move to extensions
awaelchli Sep 22, 2021
7344351
rename
awaelchli Sep 22, 2021
ce14113
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2021
e0a74ab
add active learning loop example from flash
awaelchli Sep 24, 2021
63f328b
update install instructions
awaelchli Sep 24, 2021
614bbe1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 24, 2021
5287764
add gif
awaelchli Sep 27, 2021
bd813cc
shorten code to avoid wrapping on small screen
awaelchli Sep 27, 2021
22253bf
update comment
awaelchli Sep 27, 2021
5190df8
simplify example
awaelchli Sep 28, 2021
f382e72
typo
awaelchli Sep 28, 2021
cbc69f9
add gif with example for replacing fit loop
awaelchli Sep 28, 2021
c3f4293
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 28, 2021
b0e1449
blacken docs
awaelchli Sep 28, 2021
c269d22
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Sep 28, 2021
116cce0
Apply suggestions from code review
awaelchli Sep 28, 2021
73c1094
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 28, 2021
c2a4284
Update docs/source/extensions/loops.rst
awaelchli Sep 28, 2021
406d77a
add connet() gif
awaelchli Oct 6, 2021
8210336
wip
awaelchli Oct 6, 2021
f84ce93
updates
awaelchli Oct 11, 2021
6083aab
title capitalization
awaelchli Oct 11, 2021
5f879b8
update gif
awaelchli Oct 11, 2021
96625e5
split advanced section
awaelchli Oct 11, 2021
46dc5e1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 11, 2021
096a3b1
add api references for val test and predict loops
awaelchli Oct 11, 2021
82bc08e
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Oct 11, 2021
eca808c
address reviews
awaelchli Oct 11, 2021
f90d03b
Update docs/source/extensions/loops.rst
awaelchli Oct 11, 2021
6de0121
Update docs/source/extensions/loops_advanced.rst
awaelchli Oct 11, 2021
b1d548a
Update docs/source/extensions/loops_advanced.rst
awaelchli Oct 11, 2021
02b3bbd
title underline
awaelchli Oct 11, 2021
38b20fb
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Oct 11, 2021
8ad2cb5
fix word repetition
awaelchli Oct 11, 2021
bca424f
add section in new_project.rst
awaelchli Oct 14, 2021
fea848c
restructure and rewrite based on william falcon feedback (wip)
awaelchli Oct 14, 2021
c9adcc3
update section header
awaelchli Oct 14, 2021
87a9838
update on comments
tchaton Oct 16, 2021
e307d02
Merge remote-tracking branch 'origin/docs/loop-customization-2' into …
awaelchli Oct 16, 2021
a456b9a
updates
awaelchli Oct 16, 2021
cea2981
replace files with link to s3
awaelchli Oct 16, 2021
ae6bc23
ignore blacken docs error
awaelchli Oct 16, 2021
9ab2bb4
update references
awaelchli Oct 17, 2021
6ac59a7
update api references
awaelchli Oct 17, 2021
a119ddc
punctuation
awaelchli Oct 17, 2021
7bfacdb
remove yield example
awaelchli Oct 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/source/advanced/sequences.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Sequential Data
================
===============

Truncated Backpropagation Through Time
--------------------------------------
Expand Down
106 changes: 106 additions & 0 deletions docs/source/api_references.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,112 @@ Loggers API
test_tube
wandb

Loop API
--------

Base classes
^^^^^^^^^^^^

.. currentmodule:: pytorch_lightning.loops

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

Loop
DataLoaderLoop


Default Loop Implementations
^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Training
""""""""

.. currentmodule:: pytorch_lightning.loops.fit_loop

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

FitLoop

.. currentmodule:: pytorch_lightning.loops.epoch

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

TrainingEpochLoop

.. currentmodule:: pytorch_lightning.loops.batch

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

TrainingBatchLoop

.. currentmodule:: pytorch_lightning.loops.optimization

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

OptimizerLoop
ManualOptimization


Validation and Testing
""""""""""""""""""""""

.. currentmodule:: pytorch_lightning.loops.dataloader

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

EvaluationLoop

.. currentmodule:: pytorch_lightning.loops.epoch

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

EvaluationEpochLoop


Prediction
""""""""""

.. currentmodule:: pytorch_lightning.loops.dataloader

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

PredictionLoop

.. currentmodule:: pytorch_lightning.loops.epoch

.. autosummary::
:toctree: api
:nosignatures:
:template: classtemplate.rst

PredictionEpochLoop


Plugins API
-----------

Expand Down
Loading