Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tests/unit/autojac/test_jac.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,8 @@
a1 = tensor_([1.0, 2.0], requires_grad=True)
a2 = tensor_([3.0, 4.0], requires_grad=True)

y1 = tensor_([-1.0, 1.0]) @ a1 + a2.sum()
y2 = (a1**2).sum() + a2.norm()

with raises(ValueError):
jac([y1, y2], parallel_chunk_size=chunk_size)

Check failure on line 174 in tests/unit/autojac/test_jac.py

View workflow job for this annotation

GitHub Actions / Code quality (ty and ruff)

ty (unresolved-reference)

tests/unit/autojac/test_jac.py:174:18: unresolved-reference: Name `y2` used when not defined

Check failure on line 174 in tests/unit/autojac/test_jac.py

View workflow job for this annotation

GitHub Actions / Code quality (ty and ruff)

ty (unresolved-reference)

tests/unit/autojac/test_jac.py:174:14: unresolved-reference: Name `y1` used when not defined


def test_input_retaining_grad_fails():
Expand Down
Loading