MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / tanh_activate

Function tanh_activate

yolo_detector/darknet_opt/src/activations.h:39–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected