Logsumexp is broken with out, as it is not inplace. ``` a = torch.randn(5,5) c = torch.zeros(5,5) b = c[0] torch.logsumexp(a, 1, out=b) print((c[0]==b).all()) ``` compare with `sum` in place of `logsumexp`. I'll have a PR shortly.