Skip to main content

Module tensor

Module tensor 

Source
Expand description

Tensor โ€” the central multi-dimensional array type in SAPIENT.

A Tensor owns its shape and dtype metadata, and holds a reference-counted BufferHandle for the raw bytes. Layout is always row-major (C order).

Structsยง

Tensor
A multi-dimensional tensor with reference-counted buffer ownership.
TensorMeta
A serializable descriptor for a tensor โ€” shape and dtype only (no data).