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