modified softmax layer to support beta parameter. y_i = exp(beta*x_i)/sum_i{exp(beta*x_i)}.