Closed gessfred closed 5 years ago
I didn't write that part, but in my previous experience (about calculating exponential in deep-learning hardware for sigmoid), that approximate function was much faster than std::exp() function.
Reference: https://codingforspeed.com/using-faster-exponential-approximation/
Fair enough, thank you for the information.
I am wondering what is the motivation behind the
fastExp
function used innet_update_wa
. I cannot see that it is faster or more numerically stable than theexp
function fromstd
in any meaningful way. And I am interested as to where the expression was found: