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

Function hardtan_gradient

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

Source from the content-addressed store, hash-verified

57}
58
59static inline float hardtan_gradient(float x)
60{
61 if (x > -1 && x < 1) return 1;
62 return 0;
63}
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)

Callers 1

gradientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected