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

msgpack_numpy_oob_decoder

msgpack_numpy_oob_decoder()โ€‹

max.pipelines.modeling.types.msgpack_numpy_oob_decoder(type_, copy=False)

source

Create an out-of-band (zero-copy) msgpack decoder for the given type.

Parameters:

  • type โ€“ The type to decode into.
  • copy (bool) โ€“ Copy numpy arrays out of their frames if true. Defaults to False (zero-copy views; see msgpack_numpy_decoder() for the rationale behind defaulting to no-copy at this boundary).
  • type_ (Any)

Returns:

A pickleable decoder whose __call__ takes a list of received frames (see _MsgpackNumpyOOBDecoder).

Return type:

_MsgpackNumpyOOBDecoder