warp.tile_view#

warp.tile_view(
t: Tile[Any, tuple[int, ...]],
offset: tuple[int, ...],
shape: tuple[int, ...],
) Tile[Any, tuple[int, ...]]#
  • Kernel

Extract a slice of a given tile [offset, offset+shape], if shape is not specified it will be inferred from the unspecified offset dimensions.

Parameters:
  • t – Input tile to extract a subrange from

  • offset – Offset in the source tile

  • shape – Shape of the returned slice

Returns:

A tile with dimensions given by the specified shape or the remaining source tile dimensions.