def lesser_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.le(x, y)