latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.le
- tensorplay.functional.le(input, other, *, out=None) Tensor[source]
Computes element-wise.
The second argument can be a number or a tensor whose shape is broadcastable with the first argument.
- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
- Returns:
A boolean tensor that is True where
inputis less than or equal tootherand False elsewhere
Example:
>>> tensorplay.le(tensorplay.tensor([[1, 2], [3, 4]]), tensorplay.tensor([[1, 1], [4, 4]])) tensor([[True, False], [True, True]])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

