Skip to main content

ShapeVec

Type Alias ShapeVec 

pub type ShapeVec = SmallVec<[usize; 8]>;
Expand description

Small tensor shape vector with inline capacity for common dynamic ranks.

§Examples

use tenferro_tensor_core::ShapeVec;

let shape = ShapeVec::from_vec(vec![2, 3]);
assert_eq!(shape.as_slice(), &[2, 3]);

Aliased Type§

pub struct ShapeVec { /* private fields */ }