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 function
build_decoder_scratch
build_decoder_scratch()
max.pipelines.lib.decoder_scratch.build_decoder_scratch(decoder_cls, config, *, max_batch_size, devices)
Allocates the workspace a registered decoder declares, if any.
-
Parameters:
-
Raises:
-
- TypeError – If
scratch_typesreturns something other than buffer types. - ValueError – If a buffer’s shape isn’t static.
- TypeError – If
-
Return type:
-
DecoderScratch | None