jax.numpy.empty#
- jax.numpy.empty(shape, dtype=None)[source]#
Return a new array of given shape and type, without initializing entries.
LAX-backend implementation of
numpy.empty()
.Because XLA cannot create uninitialized arrays, the JAX version will return an array initialized with zeros.
Original docstring below.
- Parameters:
- Returns:
out – Array of uninitialized (arbitrary) data of the given shape, dtype, and order. Object arrays will be initialized to None.
- Return type:
ndarray