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
<ddclass="field-odd"><p><strong>weights</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a></span>) – The weights associated to the rows of the input matrices.</p>
250
+
<ddclass="field-odd"><p><strong>weights</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a></span>) – The weights associated to the rows of the input matrices.</p>
<li><p><strong>pref_vector</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The preference vector used to combine the rows. If not provided, defaults to
252
+
<li><p><strong>pref_vector</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The preference vector used to combine the rows. If not provided, defaults to
253
253
the simple averaging.</p></li>
254
254
<li><p><strong>norm_eps</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">float</span></code></a></span>) – A small value to avoid division by zero when normalizing.</p></li>
255
255
<li><p><strong>reg_eps</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">float</span></code></a></span>) – A small value to add to the diagonal of the gramian of the matrix. Due to
Copy file name to clipboardExpand all lines: latest/docs/aggregation/graddrop/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,7 @@ <h1>GradDrop<a class="headerlink" href="#graddrop" title="Link to this heading">
251
251
<ddclass="field-odd"><ulclass="simple">
252
252
<li><p><strong>f</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Callable</span></code></a></span>) – The function to apply to the Gradient Positive Sign Purity. It should be monotically
253
253
increasing. Defaults to identity.</p></li>
254
-
<li><p><strong>leak</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The tensor of leak values, determining how much each row is allowed to leak
254
+
<li><p><strong>leak</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The tensor of leak values, determining how much each row is allowed to leak
255
255
through. Defaults to None, which means no leak.</p></li>
<li><p><strong>pref_vector</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The preference vector used to combine the projected rows. If not provided,
252
+
<li><p><strong>pref_vector</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a> | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The preference vector used to combine the projected rows. If not provided,
253
253
defaults to the simple averaging of the projected rows.</p></li>
254
254
<li><p><strong>norm_eps</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">float</span></code></a></span>) – A small value to avoid division by zero when normalizing.</p></li>
255
255
<li><p><strong>reg_eps</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">float</span></code></a></span>) – A small value to add to the diagonal of the gramian of the matrix. Due to
<li><p><strong>tensors</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Sequence</span></code></a>[<aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a>] | <aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a></span>) – The tensor or tensors to differentiate. Should be non-empty. The Jacobian
252
+
<li><p><strong>tensors</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Sequence</span></code></a>[<aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a>] | <aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a></span>) – The tensor or tensors to differentiate. Should be non-empty. The Jacobian
253
253
matrices will have one row for each value of each of these tensors.</p></li>
254
254
<li><p><strong>aggregator</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference internal" href="../../aggregation/bases/#torchjd.aggregation.Aggregator" title="torchjd.aggregation._aggregator_bases.Aggregator"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Aggregator</span></code></a></span>) – Aggregator used to reduce the Jacobian into a vector.</p></li>
255
-
<li><p><strong>inputs</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Iterable</span></code></a>[<aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a>] | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The tensors with respect to which the Jacobian must be computed. These must have
255
+
<li><p><strong>inputs</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Iterable</span></code></a>[<aclass="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.8)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Tensor</span></code></a>] | <aclass="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.13)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">None</span></code></a></span>) – The tensors with respect to which the Jacobian must be computed. These must have
256
256
their <codeclass="docutils literal notranslate"><spanclass="pre">requires_grad</span></code> flag set to <codeclass="docutils literal notranslate"><spanclass="pre">True</span></code>. If not provided, defaults to the leaf tensors
257
257
that were used to compute the <codeclass="docutils literal notranslate"><spanclass="pre">tensors</span></code> parameter.</p></li>
258
258
<li><p><strong>retain_graph</strong> (<spanclass="sphinx_autodoc_typehints-type"><aclass="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.13)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code></a></span>) – If <codeclass="docutils literal notranslate"><spanclass="pre">False</span></code>, the graph used to compute the grad will be freed. Defaults to
0 commit comments