File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 33
44# You can set these variables from the command line, and also
55# from the environment for the first two.
6- SPHINXOPTS ?=
6+ SPHINXOPTS ?= -W --keep-going -n
77SPHINXBUILD ?= sphinx-build
88SOURCEDIR = source
99BUILDDIR = build
Original file line number Diff line number Diff line change 5353intersphinx_mapping = {
5454 "python" : ("https://docs.python.org/3" , None ),
5555 "torch" : ("https://pytorch.org/docs/stable/" , None ),
56+ "lightning" : ("https://lightning.ai/docs/pytorch/stable/" , None ),
5657}
5758
5859html_favicon = "icons/favicon.ico"
Original file line number Diff line number Diff line change 11PyTorch Lightning Integration
22=============================
33
4- To use Jacobian descent with TorchJD in a :class: `~lightning.LightningModule `, you need to turn off
5- automatic optimization by setting ``automatic_optimization `` to ``False `` and to customize the
6- ``training_step `` method to make it call the appropriate TorchJD method ( :doc: ` backward
7- <../docs/autojac/backward>` or :doc: `mtl_backward <../docs/autojac/mtl_backward >`).
4+ To use Jacobian descent with TorchJD in a :class: `~lightning.pytorch.core. LightningModule `, you need
5+ to turn off automatic optimization by setting ``automatic_optimization `` to ``False `` and to
6+ customize the ``training_step `` method to make it call the appropriate TorchJD method
7+ ( :doc: ` backward <../docs/autojac/backward >` or :doc: `mtl_backward <../docs/autojac/mtl_backward >`).
88
99The following code example demonstrates a basic multi-task learning setup using a
10- :class: `~lightning.LightningModule ` that will call :doc: `mtl_backward
10+ :class: `~lightning.pytorch.core. LightningModule ` that will call :doc: `mtl_backward
1111<../docs/autojac/mtl_backward>` at each training iteration.
1212
1313.. code-block :: python
You can’t perform that action at this time.
0 commit comments