Expand description
Lightweight backend-independent host tensor data model.
Execution-capable tensors and backends in this crate remain separate from the host-only core model during the crate-boundary split.
Structs§
- DynRank
- Dynamic tensor rank marker.
- Host
Tensor - Owned contiguous host tensor in column-major order.
- Host
Tensor View - Borrowed host tensor view with shape, strides, and offset metadata.
- Rank
- Static tensor rank marker.
- Slice
Spec - Explicit slice descriptor.
- Tensor
Layout - Storage-neutral tensor layout metadata.
Enums§
- DType
- Runtime scalar dtype tag.
- Error
Kind - Coarse classification shared by crate-local error types.
- Shape
Mismatch - Structured facts describing why two tensor shapes are incompatible.
- Tensor
- Dynamic owned host tensor over the supported dtype set.
- Tensor
Ref - Core-neutral tensor input reference.
- Tensor
View - Dynamic borrowed host tensor view.
- Validation
Error - Structured validation failures owned by the tensor data model.
- Validation
Kind - Coarse classification for shared tensor validation failures.
Traits§
- Into
Shape Vec - Convert a common shape container into the dynamic owned shape type.
- Tensor
Rank - Rank contract for tensor metadata shapes and strides.
- Tensor
Scalar - Sealed trait for scalar types supported by the core tensor data model.
Functions§
- col_
major_ strides - Return compact column-major strides for a shape.