pplonski / keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.
MIT License
679 stars 153 forks source link

bug fix: avoid overflow in softmax Activator #39

Open xt2357 opened 5 years ago

xt2357 commented 5 years ago

Subtracting max_y from all y makes the output of softmax harder to overflow.