warp.tile_astype#

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

  • Differentiable

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

Parameters:
  • t – Input tile

  • dtype – New data type for the tile

Returns:

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