Skip to main content

Module core

Module core 

Source
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.
HostTensor
Owned contiguous host tensor in column-major order.
HostTensorView
Borrowed host tensor view with shape, strides, and offset metadata.
Rank
Static tensor rank marker.
SliceSpec
Explicit slice descriptor.
TensorLayout
Storage-neutral tensor layout metadata.

Enums§

DType
Runtime scalar dtype tag.
Error
Data-model validation errors.
Tensor
Dynamic owned host tensor over the supported dtype set.
TensorRef
Core-neutral tensor input reference.
TensorView
Dynamic borrowed host tensor view.

Traits§

TensorRank
Rank contract for tensor metadata shapes and strides.
TensorScalar
Sealed trait for scalar types supported by the core tensor data model.

Functions§

col_major_strides
Return compact column-major strides for a shape.

Type Aliases§

Result
Result type for tensor data-model operations.
ShapeVec
Small tensor shape vector with inline capacity for common dynamic ranks.
StrideVec
Small tensor stride vector with signed element strides.