| 1165 | } |
| 1166 | |
| 1167 | void prelu_gradient ( |
| 1168 | tensor& grad, |
| 1169 | const tensor& src, |
| 1170 | const tensor& gradient_input, |
| 1171 | const tensor& param, |
| 1172 | tensor& params_grad |
| 1173 | ) |
| 1174 | { |
| 1175 | IF_DLIB_USE_CUDA( |
| 1176 | cuda::prelu_gradient(grad, src, gradient_input, param, params_grad); |
| 1177 | ) |
| 1178 | |
| 1179 | IF_DLIB_NOT_USE_CUDA( |
| 1180 | cpu::prelu_gradient(grad, src, gradient_input, param, params_grad); |
| 1181 | ) |
| 1182 | } |
| 1183 | |
| 1184 | // ---------------------------------------------------------------------------------------- |
| 1185 |
nothing calls this directly
no outgoing calls
no test coverage detected