fn
ceil
→Tensorceil(input: Tensor)Element-wise ceiling (round toward ).
Returns the least integer-valued float greater than or equal to each entry.
Parameters
inputTensorInput tensor.
Returns
TensorElement-wise result with the same shape as input.
Notes
Mathematical definition:
Gradient is zero almost everywhere and treated as zero in autograd.
Examples
>>> import lucid
>>> x = lucid.tensor([1.0, 2.0, 3.0])
>>> lucid.ceil(x)
Tensor([...])