IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Python class

DecoderScratch

DecoderScratch​

class max.pipelines.lib.decoder_scratch.DecoderScratch(input_types, buffers)

source

Bases: object

A decoder’s workspace buffers and the graph inputs they fill.

Parameters:

buffers​

buffers: tuple[Buffer, ...]

source

One buffer per input_types entry, allocated once.

input_types​

input_types: tuple[BufferType, ...]

source

The graph inputs, in the order the decoder declares them.