Skip to content

Commit 3ebf1c3

Browse files
committed
1 parent 2c4a0c6 commit 3ebf1c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

latest/docs/autojac/backward/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ <h1>backward<a class="headerlink" href="#backward" title="Link to this heading">
303303
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
304304
<dd class="field-odd"><ul class="simple">
305305
<li><p><strong>tensors</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a></span>) – The tensor or tensors to differentiate. Should be non-empty.</p></li>
306-
<li><p><strong>jac_tensors</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a> | <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span>) – The initial Jacobians to backpropagate, analog to the <cite>grad_tensors</cite>
307-
parameter of <cite>torch.autograd.backward</cite>. If provided, it must have the same structure as
308-
<code class="docutils literal notranslate"><span class="pre">tensors</span></code> and each tensor in <code class="docutils literal notranslate"><span class="pre">jac_tensors</span></code> must match the shape of the corresponding
306+
<li><p><strong>jac_tensors</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a> | <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span>) – The initial Jacobians to backpropagate, analog to the <code class="docutils literal notranslate"><span class="pre">grad_tensors</span></code>
307+
parameter of <a class="reference external" href="https://docs.pytorch.org/docs/stable/generated/torch.autograd.backward.html#torch.autograd.backward" title="(in PyTorch v2.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">torch.autograd.backward()</span></code></a>. If provided, it must have the same structure
308+
as <code class="docutils literal notranslate"><span class="pre">tensors</span></code> and each tensor in <code class="docutils literal notranslate"><span class="pre">jac_tensors</span></code> must match the shape of the corresponding
309309
tensor in <code class="docutils literal notranslate"><span class="pre">tensors</span></code>, with an extra leading dimension representing the number of rows of
310310
the resulting Jacobian (e.g. the number of losses). All tensors in <code class="docutils literal notranslate"><span class="pre">jac_tensors</span></code> must
311311
have the same first dimension. If <code class="docutils literal notranslate"><span class="pre">None</span></code>, defaults to the identity matrix. In this case,

latest/docs/autojac/jac/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ <h1>jac<a class="headerlink" href="#jac" title="Link to this heading">¶</a></h1
308308
their <code class="docutils literal notranslate"><span class="pre">requires_grad</span></code> flag set to <code class="docutils literal notranslate"><span class="pre">True</span></code>. If not provided, defaults to the leaf tensors
309309
that were used to compute the <code class="docutils literal notranslate"><span class="pre">outputs</span></code> parameter.</p></li>
310310
<li><p><strong>jac_outputs</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a> | <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span>) – The initial Jacobians to backpropagate, analog to the <code class="docutils literal notranslate"><span class="pre">grad_outputs</span></code>
311-
parameter of <code class="docutils literal notranslate"><span class="pre">torch.autograd.grad</span></code>. If provided, it must have the same structure as
311+
parameter of <a class="reference external" href="https://docs.pytorch.org/docs/stable/generated/torch.autograd.grad.html#torch.autograd.grad" title="(in PyTorch v2.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">torch.autograd.grad()</span></code></a>. If provided, it must have the same structure as
312312
<code class="docutils literal notranslate"><span class="pre">outputs</span></code> and each tensor in <code class="docutils literal notranslate"><span class="pre">jac_outputs</span></code> must match the shape of the corresponding
313313
tensor in <code class="docutils literal notranslate"><span class="pre">outputs</span></code>, with an extra leading dimension representing the number of rows of
314314
the resulting Jacobian (e.g. the number of losses). If <code class="docutils literal notranslate"><span class="pre">None</span></code>, defaults to the identity

latest/docs/autojac/mtl_backward/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ <h1>mtl_backward<a class="headerlink" href="#mtl-backward" title="Link to this h
314314
<li><p><strong>features</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a></span>) – The last shared representation used for all tasks, as given by the feature
315315
extractor. Should be non-empty.</p></li>
316316
<li><p><strong>grad_tensors</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>] | <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span>) – The initial gradients to backpropagate, analog to the <code class="docutils literal notranslate"><span class="pre">grad_tensors</span></code>
317-
parameter of <code class="docutils literal notranslate"><span class="pre">torch.autograd.backward</span></code>. If any of the <code class="docutils literal notranslate"><span class="pre">tensors</span></code> is non-scalar,
317+
parameter of <a class="reference external" href="https://docs.pytorch.org/docs/stable/generated/torch.autograd.backward.html#torch.autograd.backward" title="(in PyTorch v2.10)"><code class="xref py py-func docutils literal notranslate"><span class="pre">torch.autograd.backward()</span></code></a>. If any of the <code class="docutils literal notranslate"><span class="pre">tensors</span></code> is non-scalar,
318318
<code class="docutils literal notranslate"><span class="pre">grad_tensors</span></code> must be provided, with the same length and shapes as <code class="docutils literal notranslate"><span class="pre">tensors</span></code>.
319319
Otherwise, this parameter is not needed and will default to scalars of 1.</p></li>
320320
<li><p><strong>tasks_params</strong> (<span class="sphinx_autodoc_typehints-type"><a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Sequence" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Sequence</span></code></a>[<a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.Iterable" title="(in Python v3.14)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Iterable</span></code></a>[<a class="reference external" href="https://docs.pytorch.org/docs/stable/tensors.html#torch.Tensor" title="(in PyTorch v2.10)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Tensor</span></code></a>]] | <a class="reference external" href="https://docs.python.org/3/library/constants.html#None" title="(in Python v3.14)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">None</span></code></a></span>) – The parameters of each task-specific head. Their <code class="docutils literal notranslate"><span class="pre">requires_grad</span></code> flags

0 commit comments

Comments
 (0)