index_offset_contiguous

Function index_offset_contiguous 

Source
pub fn index_offset_contiguous<N: CubePrimitive>(
    tensor: &Tensor<Line<N>>,
    offset_layout: usize,
    rank: Option<usize>,
) -> usize
Expand description

Returns the offset of the tensor corresponding to a contiguous layout.