pub fn compute_strides(shape: &[usize]) -> Vec<usize>
Computes row-major strides for a tensor with the given shape.