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
SharedMemoryArray
SharedMemoryArrayβ
class max.pipelines.modeling.types.SharedMemoryArray(name, shape, dtype)
Bases: object
A wrapper for a NumPy array stored in shared memory.
This class is used as a placeholder in pixel_values during serialization.
It will be encoded as a dict with __shm__ flag and decoded back to a NumPy
array.
dtypeβ
dtype: str
The NumPy dtype string of the array (for example, <f4 for float32).
nameβ
name: str
The unique name of the shared memory segment.
shapeβ
The shape of the NumPy array stored in shared memory.