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

Function relu_gradient

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

Source from the content-addressed store, hash-verified

74 return 1;
75}
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;}

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected