View source: R/gen-namespace.R
torch_ceil | R Documentation |
Ceil
torch_ceil(self)
self |
(Tensor) the input tensor. |
Returns a new tensor with the ceil of the elements of input
,
the smallest integer greater than or equal to each element.
\mbox{out}_{i} = \left\lceil \mbox{input}_{i} \right\rceil = \left\lfloor \mbox{input}_{i} \right\rfloor + 1
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_ceil(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.