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

Function tanh_gradient

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

Source from the content-addressed store, hash-verified

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
84#endif

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected