| 197 | return batch * l.outputs + n * l.w * l.h * (4 + l.classes + 1) + entry * l.w * l.h + loc; |
| 198 | } |
| 199 | void 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 | |
| 207 | void forward_darknet_layer_cpu(const float* input, layer l) |
| 208 | { |
no outgoing calls
no test coverage detected