We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f579ce7 commit 296b3acCopy full SHA for 296b3ac
src/torchjd/autogram/_engine.py
@@ -162,12 +162,10 @@ def _check_module_is_compatible(module: nn.Module) -> None:
162
163
def compute_gramian(self, output: Tensor) -> Tensor:
164
"""
165
- Compute the Gramian of the Jacobian of `output` with respect the direct parameters of all
166
- `modules`.
+ Compute the Gramian of the Jacobian of ``output`` with respect the direct parameters of all
+ ``modules``.
167
168
- :param output: The vector to differentiate. Must have `ndim == 1`.
169
- :returns: the Gramian of the Jacobian of `output` with respect to the direct parameters of
170
- all `modules`
+ :param output: The vector to differentiate. Must be a 1-D tensor.
171
172
173
reshaped_output = output.reshape([-1])
0 commit comments