Skip to main content

compute_strides

Function compute_strides 

Source
pub fn compute_strides(shape: &[usize]) -> Vec<usize>
Expand description

Computes row-major strides for a tensor with the given shape.