def greater_equal(x: T.FloatTensor, y: T.FloatTensor) -> T.ByteTensor:
"""
Elementwise test if x >= y.
Args:
x: A tensor.
y: A tensor.
Returns:
tensor (of bools): Elementwise test of x >= y.
"""
return torch.ge(x, y)
文章目录