pub type ShapeVec = TinyVec<[usize; 8]>;Expand description
Small tensor shape vector with inline capacity for common dynamic ranks.
§Examples
use tenferro_tensor_core::ShapeVec;
let shape: ShapeVec = vec![2, 3].into_iter().collect();
assert_eq!(shape.as_slice(), &[2, 3]);Aliased Type§
pub enum ShapeVec {
Inline(ArrayVec<[usize; 8]>),
Heap(Vec<usize>),
}