Skip to content

Commit f9c01a7

Browse files
committed
* Remove check that is impossible to fail in jac
1 parent a2e77c7 commit f9c01a7

File tree

1 file changed

+0
-6
lines changed
  • src/torchjd/autojac/_transform

1 file changed

+0
-6
lines changed

src/torchjd/autojac/_transform/jac.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ def _differentiate(self, jac_outputs: Sequence[Tensor]) -> tuple[Tensor, ...]:
4444
return tuple()
4545

4646
n_outputs = len(outputs)
47-
if len(jac_outputs) != n_outputs:
48-
raise ValueError(
49-
"Parameters `outputs` and `jac_outputs` should be sequences of the same length."
50-
f"Found `len(outputs) = {n_outputs}` and `len(jac_outputs) = {len(jac_outputs)}`."
51-
)
52-
5347
if n_outputs == 0:
5448
return tuple(
5549
[

0 commit comments

Comments
 (0)