copy_from_host
- Buffer.copy_from_host(data: ndarray, offset: int = 0)
Copies data from host memory to the buffer on Houmo device. The total size of the data to copy (the data size pluses the offset) must not exceed the buffer size.
- Parameters:
data (np.ndarray) -- The source array in host memory to be copied.
offset (int) -- The starting offset within the buffer.