Expand description
Decoder for the msgpack-numpy tensor encoding.
/v1/encode, /v1/score, /v1/extract and job result chunks are msgpack, and every
tensor inside them is a map with binary keys:
{b"nd": true, b"type": "<f4", b"kind": b"", b"shape": [rows, cols], b"data": <raw bytes>}data holds the raw buffer in C order, in the byte order the type string declares.
Structs§
- RawArray
- A decoded numpy buffer, still in its wire element type.
Enums§
- Element
- Element type of a numpy buffer, as declared by its dtype string.