is_contiguous_pitched

Function is_contiguous_pitched 

Source
pub fn is_contiguous_pitched(shape: &[usize], strides: &[usize]) -> bool
Expand 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.