Hi Yazid!



 YazidJanati:

a = torch.tensor(-100.).view(1,1)

torch.logsumexp(a,(0,1)) #returns -99.981



I can’t reproduce this on pytorch version 1.7.1.  (It does look like a
minor bug.)  Could you tell us what version you are using?
>>> import torch
>>> torch.__version__
'1.7.1'
>>> torch.logsumexp (torch.tensor (-130.).view (1, 1), (0, 1))
tensor(-130.)
>>> torch.logsumexp (torch.tensor (-100.).view (1, 1), (0, 1))
tensor(-100.)
>>> torch.logsumexp (torch.tensor (-80.).view (1, 1), (0, 1))
tensor(-80.)

Best.
K. Frank