We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Maybe we can write some of the code in a way that it is out-of-the-box jittable.
https://jax.readthedocs.io/en/latest/jax.html#jax.jit
The text was updated successfully, but these errors were encountered:
Inputs and outputs of jittable functions are jnp.arrays, scalars, or tuples/lists thereof.
To JIT the solver, there are a few speedbumps:
assert ...
if step_change < min_change
The following works after commenting out the EK1 asserts:
@jax.jit def solve(y0): ivp = tornado.ivp.vanderpol(y0=y0) solution, _ = tornado.ivpsolve.solve( ivp, method="ek1_diag", solver_order=5, adaptive=False, dt=0.1, benchmark_mode=True, ) return solution.y.mean y0 = jnp.array([2.0, 0.0]) solve(y0) solve(y0)
Note: it is pointless to test this on such high level, because compilation takes ages.
Sorry, something went wrong.
No branches or pull requests
Maybe we can write some of the code in a way that it is out-of-the-box jittable.
https://jax.readthedocs.io/en/latest/jax.html#jax.jit
The text was updated successfully, but these errors were encountered: