Skip to main content

INLINE_RANK

Constant INLINE_RANK 

Source
pub const INLINE_RANK: usize = 8; // 8usize
Expand description

Maximum rank whose shape/stride metadata stays inline without a heap allocation.

Mirrors strided_view::INLINE_RANK; tenferro-cpu-basic carries a compile-time assertion that the two values agree. At rank <= INLINE_RANK ShapeVec and StrideVec keep their elements inline; a higher rank spills to the heap gracefully.

ยงExamples

use tenferro_tensor_core::INLINE_RANK;

assert_eq!(INLINE_RANK, 8);