Skip to main content

assert_shape

Function assert_shape 

Source
pub fn assert_shape(actual: &[usize], expected: &[usize]) -> Result<()>
Expand description

Sanity check: the shape of an actual tensor matches an expected shape vector.