You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This raises the following error while calling T_jax
[/usr/local/lib/python3.8/dist-packages/jaxopt/_src/scipy_wrappers.py](https://localhost:8080/#) in jnp_to_onp(x_jnp, dtype)
116 determined by NumPy's casting rules for the concatenate method.
117 """
--> 118 x_onp = [onp.asarray(leaf, dtype).reshape(-1)
119 for leaf in tree_util.tree_leaves(x_jnp)]
120 # NOTE(fllinares): return value must *not* be read-only, I believe.
[/usr/local/lib/python3.8/dist-packages/jaxopt/_src/scipy_wrappers.py](https://localhost:8080/#) in <listcomp>(.0)
116 determined by NumPy's casting rules for the concatenate method.
117 """
--> 118 x_onp = [onp.asarray(leaf, dtype).reshape(-1)
119 for leaf in tree_util.tree_leaves(x_jnp)]
120 # NOTE(fllinares): return value must *not* be read-only, I believe.
TracerArrayConversionError: The numpy.ndarray conversion method __array__() was called on the JAX Tracer object Traced<ShapedArray(float32[])>with<DynamicJaxprTrace(level=2/1)>
The text was updated successfully, but these errors were encountered:
I tried the following:
This raises the following error while calling
T_jax
The text was updated successfully, but these errors were encountered: