Skip to main content

Python function

load_max_buffer

load_max_buffer()โ€‹

max.driver.load_max_buffer(path)

source

Experimental method for loading serialized MAX buffers.

Max buffers can be exported by creating a graph and calling Value.print() with the BINARY_MAX_CHECKPOINT option.

Parameters:

path (PathLike[str]) โ€“ Path to buffer (should end with .max)

Returns:

A Buffer created from the path. The shape and dtype are read from the file.

Raises:

ValueError if the file format is not the MAX checkpoint format. โ€“

Return type:

Buffer