| 1296 | } |
| 1297 | |
| 1298 | void elu_gradient ( |
| 1299 | tensor& grad, |
| 1300 | const tensor& dest, |
| 1301 | const tensor& gradient_input, |
| 1302 | const float alpha |
| 1303 | ) |
| 1304 | { |
| 1305 | IF_DLIB_USE_CUDA( |
| 1306 | cuda::elu_gradient(grad, dest, gradient_input, alpha); |
| 1307 | ) |
| 1308 | |
| 1309 | IF_DLIB_NOT_USE_CUDA( |
| 1310 | cpu::elu_gradient(grad, dest, gradient_input, alpha); |
| 1311 | ) |
| 1312 | } |
| 1313 | |
| 1314 | // ---------------------------------------------------------------------------------------- |
| 1315 |
nothing calls this directly
no outgoing calls
no test coverage detected