improve the  performance of softmax
Merge pull request #2435 from yorkerlin/develop

improve the  performance of softmax