cuda.tile.bitcast#

cuda.tile.bitcast(x, /, dtype)#

Reinterpets tile as being of specified data type.

Parameters:
  • x (Tile) – input tile.

  • dtype (DType) – target data type.

Return type:

Tile

Examples

>>> tx = ct.arange(8, dtype=ct.float32)
>>> ty = ct.bitcast(tx, ct.int32)
>>> ty.dtype
int32