Logcumsumexp
Source:R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/gen-namespace.R
torch_logcumsumexp.Rd
Logcumsumexp
logcumsumexp(input, dim, *, out=None) -> Tensor
Returns the logarithm of the cumulative summation of the exponentiation of
elements of input
in the dimension dim
.
For summation index dim
and other indices
Examples
if (torch_is_installed()) {
a <- torch_randn(c(10))
torch_logcumsumexp(a, dim=1)
}
#> torch_tensor
#> 1.0628
#> 1.1537
#> 1.2121
#> 1.3610
#> 1.7395
#> 1.8247
#> 1.9497
#> 2.2456
#> 2.3105
#> 2.3438
#> [ CPUFloatType{10} ]