I tried to implement soft-max with the following code (out_vec is a numpy vector of floats):
out_vec
numpy
numerator = np.exp(out_vec) denominator =
In my case the warning did not show up when calling this before the comparison (I had NaN values getting compared)
np.warnings.filterwarnings('ignore')