Skip to content

Commit 00f257f

Browse files
authored
docs(autojac): Fix vmap warning in autojac docstrings (#797)
1 parent ac86866 commit 00f257f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/torchjd/autojac/_jac.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ def jac(
139139
To differentiate in parallel, ``jac`` relies on ``torch.vmap``, which has some
140140
limitations: `it does not work on the output of compiled functions
141141
<https://github.com/pytorch/pytorch/issues/138422>`_, `when some tensors have
142-
<https://github.com/TorchJD/torchjd/issues/184>`_ ``retains_grad=True`` or `when using an
143-
RNN on CUDA <https://github.com/TorchJD/torchjd/issues/220>`_, for instance. If you
142+
<https://github.com/SimplexLab/TorchJD/issues/184>`_ ``retains_grad=True`` or `when using an
143+
RNN on CUDA <https://github.com/SimplexLab/TorchJD/issues/220>`_, for instance. If you
144144
experience issues with ``jac`` try to use ``parallel_chunk_size=1`` to avoid relying on
145145
``torch.vmap``.
146146
"""

‎src/torchjd/autojac/_mtl_backward.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def mtl_backward(
8787
<https://github.com/pytorch/pytorch/issues/138422>`_, `when some tensors have
8888
<https://github.com/SimplexLab/TorchJD/issues/184>`_ ``retains_grad=True`` or `when using an
8989
RNN on CUDA <https://github.com/SimplexLab/TorchJD/issues/220>`_, for instance. If you
90-
experience issues with ``backward`` try to use ``parallel_chunk_size=1`` to avoid relying on
91-
``torch.vmap``.
90+
experience issues with ``mtl_backward`` try to use ``parallel_chunk_size=1`` to avoid
91+
relying on ``torch.vmap``.
9292
"""
9393

9494
check_optional_positive_chunk_size(parallel_chunk_size)

0 commit comments

Comments
 (0)