Skip to content

Commit dd695f5

Browse files
Fix objectives tests (#348)
Set 64 bit precision in objectives tests due to change in #347 causing tests to fail when run in isolation.
1 parent 39d2327 commit dd695f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_objectives.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import jax
2+
from jax.config import config
23
import jax.numpy as jnp
34
import jax.random as jr
45
import pytest
@@ -19,6 +20,9 @@
1920
NonConjugateMLL,
2021
)
2122

23+
# Enable Float64 for more stable matrix inversions.
24+
config.update("jax_enable_x64", True)
25+
2226

2327
def test_abstract_objective():
2428
with pytest.raises(TypeError):

0 commit comments

Comments
 (0)