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
<spanclass="property"><spanclass="k"><spanclass="pre">class</span></span><spanclass="w"></span></span><spanclass="sig-prename descclassname"><spanclass="pre">torchjd.autogram.</span></span><spanclass="sig-name descname"><spanclass="pre">Engine</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">modules</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">batch_dim</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/autogram/_engine.py#L48-L338"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#torchjd.autogram.Engine" title="Link to this definition">¶</a></dt>
298
+
<spanclass="property"><spanclass="k"><spanclass="pre">class</span></span><spanclass="w"></span></span><spanclass="sig-prename descclassname"><spanclass="pre">torchjd.autogram.</span></span><spanclass="sig-name descname"><spanclass="pre">Engine</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span><spanclass="n"><spanclass="pre">modules</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">batch_dim</span></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/autogram/_engine.py#L48-L344"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#torchjd.autogram.Engine" title="Link to this definition">¶</a></dt>
299
299
<dd><p>Engine to compute the Gramian of the Jacobian of some tensor with respect to the direct
300
300
parameters of all provided modules. It is based on Algorithm 3 of <aclass="reference external" href="https://arxiv.org/pdf/2406.16232">Jacobian Descent For
301
301
Multi-Objective Optimization</a> but goes even further:</p>
@@ -400,15 +400,15 @@ <h1>Engine<a class="headerlink" href="#engine" title="Link to this heading">¶</
400
400
<pclass="admonition-title">Warning</p>
401
401
<p>Parent modules should call their child modules directly rather than using their child
402
402
modules’ parameters themselves. For instance, the following model is not supported:</p>
<spanclass="sig-name descname"><spanclass="pre">compute_gramian</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">output</span></span></em>, <emclass="sig-param"><spanclass="positional-only-separator o"><abbrtitle="Positional-only parameter separator (PEP 570)"><spanclass="pre">/</span></abbr></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/autogram/_engine.py#L238-L309"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#torchjd.autogram.Engine.compute_gramian" title="Link to this definition">¶</a></dt>
424
+
<spanclass="sig-name descname"><spanclass="pre">compute_gramian</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">output</span></span></em>, <emclass="sig-param"><spanclass="positional-only-separator o"><abbrtitle="Positional-only parameter separator (PEP 570)"><spanclass="pre">/</span></abbr></span></em><spanclass="sig-paren">)</span><aclass="reference external" href="https://github.com/SimplexLab/TorchJD/blob/main/src/torchjd/autogram/_engine.py#L244-L315"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#torchjd.autogram.Engine.compute_gramian" title="Link to this definition">¶</a></dt>
425
425
<dd><p>Computes the Gramian of the Jacobian of <codeclass="docutils literal notranslate"><spanclass="pre">output</span></code> with respect to the direct parameters of
426
426
all <codeclass="docutils literal notranslate"><spanclass="pre">modules</span></code>.</p>
0 commit comments