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

Function relie_gradient

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

Source from the content-addressed store, hash-verified

76static inline float relu_gradient(float x){return (x>0);}
77static inline float elu_gradient(float x){return (x >= 0) + (x < 0)*(x + 1);}
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;}

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected