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

Function stair_activate

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

Source from the content-addressed store, hash-verified

17#endif
18
19static inline float stair_activate(float x)
20{
21 int n = floor(x);
22 if (n%2 == 0) return floor(x/2.);
23 else return (x - n) + floor(x/2.);
24}
25static inline float hardtan_activate(float x)
26{
27 if (x < -1) return -1;

Callers 1

activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected