Ah, thanks for the pointer. I didn’t see the torch.softmax in the first line.
Which PyTorch version are you using, as I cannot reproduce this issue with the latest nightly binary:
x = torch.randn(10, 10)
out1 = torch.softmax(x, dim=1)
out2 = F.softmax(x, dim=1)
print((out1 == out2).all())
> True
print(out1[out1<0], out2[out2<0])
> tensor([]) tensor([])