View source: R/gen-namespace.R
torch_log1p | R Documentation |
Log1p
torch_log1p(self)
self |
(Tensor) the input tensor. |
Returns a new tensor with the natural logarithm of (1 + input
).
y_i = \log_{e} (x_i + 1)
This function is more accurate than torch_log
for small
values of input
if (torch_is_installed()) {
a = torch_randn(c(5))
a
torch_log1p(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.