torch_cos {torch} | R Documentation |
Cos
torch_cos(self)
self |
(Tensor) the input tensor. |
Returns a new tensor with the cosine of the elements of input
.
\mbox{out}_{i} = \cos(\mbox{input}_{i})
if (torch_is_installed()) {
a = torch_randn(c(4))
a
torch_cos(a)
}