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

Function relie_activate

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

Source from the content-addressed store, hash-verified

34static inline float relu_activate(float x){return x*(x>0);}
35static inline float elu_activate(float x){return (x >= 0)*x + (x < 0)*(exp(x)-1);}
36static inline float relie_activate(float x){return (x>0) ? x : .01*x;}
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);}

Callers 1

activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected