Skip to main content

Module nd_tensor

Module nd_tensor 

Source
Expand description

Borrowed N-D tensor transport: host-owned dense tensors (e.g. uint8 [N,H,W,C] RGB, float32 [N,H,W,Wavelength] hyperspectral) copied into provider-owned, canonical row-major storage, keyed and gathered by observation_id.

Axis 0 is ALWAYS the sample/observation axis; the remaining axes are opaque to this layer (no conv / decode / preprocessing / interpolation). Strides are a transport detail of the input: borrowed strided input is copied into canonical contiguous bytes at construction and strides are then discarded, so everything stored here is contiguous row-major and fingerprintable.

This is the ND parallel of crate::buffer: a NdTensorStore of immutable tensors, an NdTensorArena that binds them to materialized data handles by output representation, and a relation-ordered NdTensorBlock export.

Structs§

NdTensor
A stored, immutable, contiguous row-major N-D tensor.
NdTensorArena
A store plus per-data-handle bindings, mirroring NumericFeatureBufferArena.
NdTensorBinding
Binding of one stored tensor to a materialized data handle.
NdTensorBlock
A relation-ordered, axis-0-filtered export of a stored tensor. shape[0] is the number of selected rows; data is contiguous row-major bytes.
NdTensorInput
A canonical (contiguous row-major) N-D tensor handed to the store. The C ABI layer copies any strided borrowed input into this shape before calling in.
NdTensorManifest
Provider-wide manifest of one stored tensor (no payload bytes).
NdTensorStore
An immutable collection of N-D tensors keyed by tensor_id.

Enums§

NdTensorDType
Element dtype of an N-D tensor. The C ABI exposes a matching #[repr(C)] DagMlDataTensorDType enum and maps to/from this type explicitly; this core enum carries no ABI guarantee of its own.

Constants§

ND_TENSOR_MANIFEST_SCHEMA_VERSION
Schema version of NdTensorManifest / NdTensorBinding.
ND_TENSOR_MAX_RANK
Maximum supported tensor rank. Bounds the shape-product arithmetic and keeps the contract finite.