Laurie Chan
Laurie Chan
Hi @edan-bainglass, I might be able to provide a tricky method for you to try. Add a decorator to pass through the type, in my case, it just like: ```...
No..., just the in-place update doesn't happen, it should be in the jitted function and add the donate parameter. ```python # CPU with JIT def test_cpu(): with jax.default_device(jax.devices("cpu")[0]): x =...
On the CPU side, it seems like the copying does happen. ```python class Model(eqx.Module): state: jnp.ndarray # large array count: jnp.ndarray # small (tiny) array def __call__(self): # when `__call__`...
`loss` is redefined in here > loss, drift, opt_state = make_step( drift, 10, dim, step_key, 32, opt_state ) rename `loss` function to `loss_fn`, it works.
Just say something I know,the state of `BatchNorm` is completed after first data feed, which need the dtype and the structure of input(which can be any pytree). So this looks...
Hi @geomlyd 1. Just try this, the reason is when you call `model_pt2` triggers another modification. ```python import equinox as eqx import jax import jax.numpy as jnp import jax.random as...
This needs to be updated, you can use `filter_vmap` like this ```python @eqx.filter_vmap(in_axes=dict(x=None)) # or @eqx.filter_vmap(in_axes=(eqx.if_array(0), None)) def evaluate_ensemble(model, x): return model(x) ```