Python wrappers
Public Python APIs implemented by this engine symbol.Element-wise floor — returns the largest integer-valued tensor not greater than a, with the same dtype as a.
Not differentiable: output is detached from the autograd graph.
Math
Shape
Output shape equals input shape (elementwise).
See Also
ceil_op, round_op.
Parameters
aTensorImplPtrInput tensor. Integer dtypes are returned unchanged.
Returns
TensorImplPtrNew tensor with floored values; same shape, dtype, and device as a.
Examples
floor_op(-1.2) == -2.0 (not -1.0 — that would be trunc).