Skip to content

Commit a9c5c43

Browse files
fix warning
1 parent 7548c49 commit a9c5c43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

diffrax/misc/ad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def is_perturbed(x: Any) -> bool:
2929

3030

3131
def nondifferentiable_input(x: PyTree, name: str) -> None:
32-
if any(is_perturbed(xi) for xi in jax.tree_leaves(x)):
32+
if any(is_perturbed(xi) for xi in jtu.tree_leaves(x)):
3333
raise ValueError(f"Cannot differentiate {name}.")
3434

3535

0 commit comments

Comments
 (0)