MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / activate_array

Function activate_array

external/ggml/examples/yolo/yolov3-tiny.cpp:186–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186static void activate_array(float * x, const int n)
187{
188 // logistic activation
189 for (int i = 0; i < n; i++) {
190 x[i] = 1./(1. + exp(-x[i]));
191 }
192}
193
194static void apply_yolo(yolo_layer & layer)
195{

Callers 1

apply_yoloFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected