Python wrappers
Public Python APIs implemented by this engine symbol.Autograd node for element-wise ceiling: .
Piecewise-constant; derivative is zero almost everywhere and undefined at integer boundaries; kept in the graph with a zero gradient.
Math
(smallest integer not less than ).
Attributes
kSavesInputboolfalse.kHasGradientboolfalse.schema_ v1OpSchemaOp name
"ceil" with AmpPolicy::KeepInput.Notes
Integer dtypes are a no-op. Negative values round toward zero (e.g.
ceil(-1.2) = -1).
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.