tilus.Script.cast

Contents

tilus.Script.cast

Script.cast(x, dtype)[source]

Cast a register tensor to a different data type.

Parameters:
  • x (RegisterTensor) – The register tensor to be cast.

  • dtype (DataType) – The target data type to cast the register tensor to.

Returns:

ret – The register tensor with the specified data type.

Return type:

RegisterTensor