Logcumsumexp
torch_logcumsumexp(self, dim)
self
: (Tensor) the input tensor.dim
: (int) the dimension to do the operation overReturns the logarithm of the cumulative summation of the exponentiation of elements of input
in the dimension dim
.
For summation index given by dim
and other indices , the result is
if (torch_is_installed()) { a <- torch_randn(c(10)) torch_logcumsumexp(a, dim=1) }
Useful links