Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for element-wise floor: .
Piecewise-constant; derivative is zero almost everywhere and undefined at integer boundaries. The node stays in the graph with that zero gradient, as the reference keeps it.
Math
(largest integer not greater than ).
Attributes
kSavesInputboolfalse — nothing to save.kHasGradientbooltrue — kept in the graph with a zero gradient.schema_ v1OpSchemaOp name
"floor" with AmpPolicy::KeepInput.Notes
Integer dtypes are a no-op. Negative values round toward
(NOT toward zero — that is trunc).
Static methods
1Methods
2Zero gradient, shaped like the output.
Parameters
gconst Storage&Incoming gradient (ignored).
Returns
StorageZeros shaped like the output.
Graph-mode backward — zero, like grad_formula, so the node stays differentiable under create_graph.