torch_exp2 {torch} | R Documentation |
Exp2
torch_exp2(self)
self |
(Tensor) the input tensor. |
Computes the base two exponential function of input
.
y_{i} = 2^{x_{i}}
if (torch_is_installed()) {
torch_exp2(torch_tensor(c(0, log2(2.), 3, 4)))
}