(a, axis, name=None)
return amax + tensor.log(tensor.exp(a-amax).sum(axis=axis, keepdims=True))
Like scipy.misc.logsumexp with keepdims=True
    (does NOT eliminate the singleton axis)
Like scipy.misc.logsumexp with keepdims=True
    (does NOT eliminate the singleton axis)
Like scipy . misc . logsumexp with keepdims = True ( does NOT eliminate the singleton axis )
def logsumexp(a, axis, name=None):
    '''
    Like scipy.misc.logsumexp with keepdims=True
    (does NOT eliminate the singleton axis)
    '''
    amax = a.max(axis=axis, keepdims=True)
    return amax + tensor.log(tensor.exp(a-amax).sum(axis=axis, keepdims=True))
def logsumexp ( a , axis , name = None ) : amax = a . max ( axis = axis , keepdims = True ) return amax + tensor . log ( tensor . exp ( a - amax ) . sum ( axis = axis , keepdims = True ) )