powered by
Log1p
torch_log1p(self)
(Tensor) the input tensor.
Returns a new tensor with the natural logarithm of (1 + input).
input
$$ y_i = \log_{e} (x_i + 1) $$
if (torch_is_installed()) { a = torch_randn(c(5)) a torch_log1p(a) }
Run the code above in your browser using DataLab