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

Function activate_array

yolo_detector/darknet_opt/src/activations.c:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void activate_array(float *x, const int n, const ACTIVATION a)
96{
97 int i;
98 for(i = 0; i < n; ++i){
99 x[i] = activate(x[i], a);
100 }
101}
102
103float gradient(float x, ACTIVATION a)
104{

Callers 10

forward_activation_layerFunction · 0.85
forward_region_layerFunction · 0.85
forward_lstm_layerFunction · 0.85
backward_lstm_layerFunction · 0.85
forward_shortcut_layerFunction · 0.85
forward_gru_layerFunction · 0.85
forward_local_layerFunction · 0.85
forward_connected_layerFunction · 0.85

Calls 1

activateFunction · 0.85

Tested by

no test coverage detected