cuda.tile.isnan#
- cuda.tile.isnan(x, /)#
Perform isnan on a tile.
Examples
tx = ct.full((4,), 1.0, dtype=ct.float32) print(ct.isnan(tx))
import cuda.tile as ct import torch @ct.kernel def kernel(): tx = ct.full((4,), 1.0, dtype=ct.float32) print(ct.isnan(tx)) torch.cuda.init() ct.launch(torch.cuda.current_stream(), (1,), kernel, ()) torch.cuda.synchronize()
Output
[0, 0, 0, 0]