Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize JAX configuration as per the v0.4.25 release #92

Merged
merged 8 commits into from
Feb 28, 2024
4 changes: 2 additions & 2 deletions src/jaxsim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
def _jnp_options() -> None:
import os

from jax.config import config
import jax

# Enable by default
if not ("JAX_ENABLE_X64" in os.environ and os.environ["JAX_ENABLE_X64"] == "0"):
logging.info("Enabling JAX to use 64bit precision")
config.update("jax_enable_x64", True)
jax.config.update("jax_enable_x64", True)

import jax.numpy as jnp
import numpy as np
Expand Down
Loading