index_offset_contiguous_fastdivmod

Function index_offset_contiguous_fastdivmod 

Source
pub fn index_offset_contiguous_fastdivmod(
    offset: usize,
    shape: &Sequence<FastDivmod<usize>>,
    stride: &Sequence<usize>,
    line_size: LineSize,
) -> usize
Expand description

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