pub fn is_contiguous_pitched(shape: &[usize], strides: &[usize]) -> boolExpand description
Checks if a tensor is only strided on the last dimension, and could be safely reinterpreted as a 2D tensor with unit stride on the last dimension. This will always hold for non-permuted tensors allocated on a runtime.