torch_logcumsumexp: Logcumsumexp

Description Usage Arguments logcumsumexp(input, dim, *, out=None) -> Tensor Examples

View source: R/gen-namespace.R

Description

Logcumsumexp

Usage

1

Arguments

self

(Tensor) the input tensor.

dim

(int) the dimension to do the operation over

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 j given by dim and other indices i, the result is

\mbox{logcumsumexp}(x)_{ij} = \log ∑\limits_{j=0}^{i} \exp(x_{ij})

Examples

1
2
3
4
5

torch documentation built on Oct. 7, 2021, 9:22 a.m.