Open javier-garcia-tilburg opened 4 hours ago
Related to pull request #199
Workaround is to use set_up_backend("jax")
and avoid set_precision
. Numerical precision can still be configured manually within jax, e.g. jax.config.update("jax_enable_x64", True)
.
Issue
Problem Description
The code above throws the exception below on latest jax version. The reason is that the jax.config submodule has been removed (previously it was also deprecated)
Expected Behavior
It should not throw an exception
What Needs to be Done
Replacing
from jax.config import config
withfrom jax import config
How Can It Be Tested or Reproduced
Install latest
jax
andtorchquad
and run example above. In my case I usedjax-0.4.35
andtorchquad 0.4.0
.