cuda.tile.greater_equal#
- cuda.tile.greater_equal(x, y, /)#
Compare two tiles elementwise with >=.
Can also use builtin operation x >= y.
The shape of x and y will be broadcasted and dtype promoted to common dtype.
- Return type:
Examples
tx = ct.arange(4, dtype=ct.int32) print(tx >= 2)
import cuda.tile as ct import torch @ct.kernel def kernel(): tx = ct.arange(4, dtype=ct.int32) print(tx >= 2) torch.cuda.init() ct.launch(torch.cuda.current_stream(), (1,), kernel, ()) torch.cuda.synchronize()
Output
[0, 0, 1, 1]