jax.numpy.frombuffer#
- jax.numpy.frombuffer(buffer, dtype=<class 'float'>, count=-1, offset=0)[source]#
Interpret a buffer as a 1-dimensional array.
LAX-backend implementation of
numpy.frombuffer()
.Original docstring below.
- Parameters:
buffer (buffer_like) – An object that exposes the buffer interface.
dtype (data-type, optional) – Data-type of the returned array; default: float.
count (int, optional) – Number of items to read.
-1
means all data in the buffer.offset (int, optional) – Start reading the buffer from this offset (in bytes); default: 0.
- Returns:
out
- Return type:
ndarray