Buffer

class Buffer(buffer: Buffer)

Represents a buffer that is used to save data on host CPU and Houmo device.

Constructor for the Buffer class.

Methods

__init__

Constructor for the Buffer class.

copy_from_host

Copies data from host memory to the buffer on Houmo device.

copy_to_host

Copies data from the buffer on Houmo device to host memory.

memset

Initializes the specified region of the device buffer to a constant byte value.

size

Retrieves the size of the current Buffer object in bytes.