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)
Bases: object
A decoder’s workspace buffers and the graph inputs they fill.
-
Parameters:
-
- input_types (tuple[BufferType, ...])
- buffers (tuple[Buffer, ...])
buffers
One buffer per input_types entry, allocated once.
input_types
input_types: tuple[BufferType, ...]
The graph inputs, in the order the decoder declares them.