Log1p
torch_log1p(self)
self
: (Tensor) the input tensor.This function is more accurate than torch_log
for small values of input
Returns a new tensor with the natural logarithm of (1 + input
).
if (torch_is_installed()) { a = torch_randn(c(5)) a torch_log1p(a) }
Useful links
Downloads (last 30 days):