You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: latest/examples/lightning_integration/index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -291,12 +291,12 @@
291
291
<articlerole="main" id="furo-main-content">
292
292
<sectionid="pytorch-lightning-integration">
293
293
<h1>PyTorch Lightning Integration<aclass="headerlink" href="#pytorch-lightning-integration" title="Link to this heading">¶</a></h1>
294
-
<p>To use Jacobian descent with TorchJD in a <aclass="reference external" href="https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.core.LightningModule.html#lightning.pytorch.core.LightningModule" title="(in PyTorch Lightning v2.5.5)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a>, you need
294
+
<p>To use Jacobian descent with TorchJD in a <aclass="reference external" href="https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.core.LightningModule.html#lightning.pytorch.core.LightningModule" title="(in PyTorch Lightning v2.5.6)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a>, you need
295
295
to turn off automatic optimization by setting <codeclass="docutils literal notranslate"><spanclass="pre">automatic_optimization</span></code> to <codeclass="docutils literal notranslate"><spanclass="pre">False</span></code> and to
296
296
customize the <codeclass="docutils literal notranslate"><spanclass="pre">training_step</span></code> method to make it call the appropriate TorchJD method
297
297
(<aclass="reference internal" href="../../docs/autojac/backward/"><spanclass="doc">backward</span></a> or <aclass="reference internal" href="../../docs/autojac/mtl_backward/"><spanclass="doc">mtl_backward</span></a>).</p>
298
298
<p>The following code example demonstrates a basic multi-task learning setup using a
299
-
<aclass="reference external" href="https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.core.LightningModule.html#lightning.pytorch.core.LightningModule" title="(in PyTorch Lightning v2.5.5)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a> that will call <aclass="reference internal" href="../../docs/autojac/mtl_backward/"><spanclass="doc">mtl_backward</span></a> at each training iteration.</p>
299
+
<aclass="reference external" href="https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.core.LightningModule.html#lightning.pytorch.core.LightningModule" title="(in PyTorch Lightning v2.5.6)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a> that will call <aclass="reference internal" href="../../docs/autojac/mtl_backward/"><spanclass="doc">mtl_backward</span></a> at each training iteration.</p>
0 commit comments