Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
19
static 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
}
25
static inline float hardtan_activate(float x)
26
{
27
if (x < -1) return -1;
Callers
1
activate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected