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 a3c1167 commit 91d710dCopy full SHA for 91d710d
test/test_integrate.py
@@ -840,5 +840,5 @@ def grad_fn(params: jnp.ndarray) -> jnp.ndarray:
840
except Exception as e:
841
pytest.fail(f"An unexpected exception was raised: {e}")
842
843
- assert not jnp.isnan(grad), "Gradient should not be NaN."
844
- assert not jnp.isinf(grad), "Gradient should not be infinite."
+ assert not jnp.isnan(grad).any(), "Gradient should not be NaN."
+ assert not jnp.isinf(grad).any(), "Gradient should not be infinite."
0 commit comments