| 36 | static inline float relie_activate(float x){return (x>0) ? x : .01*x;} |
| 37 | static inline float ramp_activate(float x){return x*(x>0)+.1*x;} |
| 38 | static inline float leaky_activate(float x){return (x>0) ? x : .1*x;} |
| 39 | static inline float tanh_activate(float x){return (exp(2*x)-1)/(exp(2*x)+1);} |
| 40 | static inline float plse_activate(float x) |
| 41 | { |