big = np.array([1000.0, 1001.0, 1002.0])
print(np.exp(big))
print(softmax(big))
[inf inf inf]
[nan nan nan]
NumPy also prints a warning for the overflow and one for the division. e1000 is about 10434, and the largest float64 is about 1.8×10308.
So each exponent overflows to inf, and inf / inf is nan.