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

Function plse_activate

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

Source from the content-addressed store, hash-verified

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);
43 if(x > 4) return .01 * (x - 4) + 1;
44 return .125*x + .5;
45}
46
47static inline float lhtan_activate(float x)
48{

Callers 1

activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected