powered by
Exp2
torch_exp2(self)
(Tensor) the input tensor.
Computes the base two exponential function of input.
input
$$ y_{i} = 2^{x_{i}} $$
if (torch_is_installed()) { torch_exp2(torch_tensor(c(0, log2(2.), 3, 4))) }
Run the code above in your browser using DataLab