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
Currently, we do not follow jax typing practices. Official suggestion are given here, which more or less suggest the following rules
importjax.numpyasjnpfromjaximportArrayfromjax.typingimportArrayLike# Type inputs as ArrayLike (floats, np.array, jnp.array...)# Type output as Arraydeff(x: ArrayLike) ->Array:
returnjnp.pow(x,2)
Currently we often use jnp.ndarray which is an alias for Array.
The text was updated successfully, but these errors were encountered:
Currently, we do not follow jax typing practices. Official suggestion are given here, which more or less suggest the following rules
Currently we often use
jnp.ndarray
which is an alias forArray
.The text was updated successfully, but these errors were encountered: