latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.floor
- tensorplay.functional.floor(input, *, out=None) Tensor[source]
Returns a new tensor with the floor of the elements of
input, the largest integer less than or equal to each element.For integer inputs, follows the array-api convention of returning a copy of the input tensor.
- Parameters:
input (Tensor) – the input tensor.
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.randn(4) >>> a tensor([-0.8166, 1.5308, -0.2530, -0.2091]) >>> tensorplay.floor(a) tensor([-1., 1., -1., -1.])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

