frombuffer(buffer, dtype=float, count=-1, offset=0, device=None)¶
Returns a 1-D array interpretation of a buffer.
buffermemory must be usable on the given device, otherwise, an error is raised.
nativebackend requires a buffer of main memory, and the
cudabackend requires a buffer of CUDA memory. No copy is performed.
buffer – An object that exposes the buffer interface.
dtype – Data type of the returned array.
count (int) – Number of items to read. -1 means all data in the buffer.
offset (int) – Start reading the buffer from this offset (in bytes).
1-D array interpretation of
- Return type