MCPcopy Create free account
hub / github.com/OAID/Tengine / logistic_cpu

Function logistic_cpu

tests/bin/test_dk_yolo.cpp:199–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 return batch * l.outputs + n * l.w * l.h * (4 + l.classes + 1) + entry * l.w * l.h + loc;
198}
199void logistic_cpu(float* input, int size)
200{
201 for(int i = 0; i < size; ++i)
202 {
203 input[i] = 1.f / (1.f + expf(-input[i]));
204 }
205}
206
207void forward_darknet_layer_cpu(const float* input, layer l)
208{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected