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

Function loggy_gradient

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

Source from the content-addressed store, hash-verified

64static inline float linear_gradient(float x){return 1;}
65static inline float logistic_gradient(float x){return (1-x)*x;}
66static inline float loggy_gradient(float x)
67{
68 float y = (x+1.)/2.;
69 return 2*(1-y)*y;
70}
71static inline float stair_gradient(float x)
72{
73 if (floor(x) == x) return 0;

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected