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
importnumpyasnpimportpytensor.tensorasptpt.random.normal([0], size=None).eval() # array([-0.57354733])pt.random.normal([0], size=()).eval() # array([-2.39088062])np.random.normal([0], size=None) # array([0.10438181])np.random.normal([0], size=()).eval() # ValueError: Output size () is not compatible with broadcast dimensions of inputs (1,).
And also JAX (and probably Numba?)
importjaxjax.random.lognormal(jax.random.PRNGKey(0), sigma=jax.numpy.ones((1,)), shape=())
# parameter shapes must be broadcast-compatible with shape argument, # and the result of broadcasting the shapes must equal the shape argument, # but got result (1,) for shape argument ().
The text was updated successfully, but these errors were encountered:
Description
This is different than numpy
And also JAX (and probably Numba?)
The text was updated successfully, but these errors were encountered: