IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

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