load_window_in_tile

Function load_window_in_tile 

Source
pub fn load_window_in_tile<EG: Numeric>(
    view: &View<Line<EG>, Coords2d>,
    tile: Coords2d,
    nth_window: u32,
    config: GlobalMemoryConfig,
) -> Slice<Line<EG>>
Expand description

Reads data from the tensor view as a window, i.e. a slice of global memory Also returns the length of the slice

The length of the slice is the width of the tile

ยงNote

If the slice would be partly out-of-bounds, it will simply be shorter. The caller must do the padding if necessary.