Params a = input slice b = scaling factor slice for exp(a) must have the same shape to b
log-sum-exp value. if a is empty, this function returns -inf as mir.math.sum([]) does too.
See Implementation
Params a = input slice b = scaling factor slice for exp(a) must have the same shape to b