There is a question about Softmin function in different version of Pytorch.
In version 0.4.0, if I do the following.
import torch.nn.functional as F

a = torch.randn(3, 4)
b = F.softmin(a, dim=-1).sum(dim=-1)

b is equal to tensor([ 1.,  1.,  1.])

In version 0.4.1,
a = torch.randn(3, 4)
b = F.softmin(a, dim=-1).sum(dim=-1)

b is equal to tensor([-1.0000, -1.0000, -1.0000])

Is this a bug ?
I did’t have version 1.0 installed, if anyone knows way, please let me know.