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

Function leaky_gradient

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

Source from the content-addressed store, hash-verified

78static inline float relie_gradient(float x){return (x>0) ? 1 : .01;}
79static inline float ramp_gradient(float x){return (x>0)+.1;}
80static inline float leaky_gradient(float x){return (x>0) ? 1 : .1;}
81static inline float tanh_gradient(float x){return 1-x*x;}
82static inline float plse_gradient(float x){return (x < 0 || x > 1) ? .01 : .125;}
83

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected