Script.cast¶
- Script.cast(x, dtype)¶
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:
Notes
Thread group: Can be executed by any sized thread group.