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

Function gradient_array

yolo_detector/darknet_opt/src/activations.c:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void gradient_array(const float *x, const int n, const ACTIVATION a, float *delta)
137{
138 int i;
139 for(i = 0; i < n; ++i){
140 delta[i] *= gradient(x[i], a);
141 }
142}
143

Callers 7

backward_lstm_layerFunction · 0.85
backward_shortcut_layerFunction · 0.85
backward_local_layerFunction · 0.85
backward_connected_layerFunction · 0.85

Calls 1

gradientFunction · 0.85

Tested by

no test coverage detected