warp.tile_astype#

warp.tile_astype(
t: Tile[Scalar, tuple[int, ...]],
dtype: Scalar,
) Tile[Any, tuple[int, ...]]#
  • Kernel

  • Differentiable

Return a new tile with the same data as the input tile, but with a different data type.

param t:

Input tile

param dtype:

New data type for the tile

returns:

A tile with the same data as the input tile, but with a different data type