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
@@ -240,12 +240,12 @@
240
240
<articlerole="main">
241
241
<sectionid="pytorch-lightning-integration">
242
242
<h1>PyTorch Lightning Integration<aclass="headerlink" href="#pytorch-lightning-integration" title="Link to this heading">¶</a></h1>
243
-
<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.1.post0)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a>, you need
243
+
<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.2)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">LightningModule</span></code></a>, you need
244
244
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
245
245
customize the <codeclass="docutils literal notranslate"><spanclass="pre">training_step</span></code> method to make it call the appropriate TorchJD method
246
246
(<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>
247
247
<p>The following code example demonstrates a basic multi-task learning setup using a
248
-
<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.1.post0)"><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>
248
+
<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.2)"><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