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 d2e219a commit 592550cCopy full SHA for 592550c
optimism/test/testJaxConfig.py
@@ -13,11 +13,17 @@ def test_double_precision_mode_is_on(self):
13
self.assertTrue(a.dtype == np.float64)
14
15
def test_debug_nans_is_off(self):
16
- np.log(-1.0)
+ try:
17
+ np.log(-1.0)
18
+ except FloatingPointError:
19
+ self.fail("Floating point exception raised. Check to see if 'jax_debug_nans' has been left activated from a debugging session.")
20
21
def test_debug_infs_is_off(self):
- a = np.array([1.0])
- a/0
22
23
+ a = np.array([1.0])
24
+ a/0
25
26
+ self.fail("Floating point exception raised. Check to see if 'jax_debug_infs' has been left activated from a debugging session.")
27
28
def test_jit_is_enabled(self):
29
self.assertFalse(config.jax_disable_jit)
0 commit comments