| 1199 | } |
| 1200 | |
| 1201 | void leaky_relu_gradient ( |
| 1202 | tensor& grad, |
| 1203 | const tensor& dest, |
| 1204 | const tensor& gradient_input, |
| 1205 | const float alpha |
| 1206 | ) |
| 1207 | { |
| 1208 | IF_DLIB_USE_CUDA( |
| 1209 | cuda::leaky_relu_gradient(grad, dest, gradient_input, alpha); |
| 1210 | ) |
| 1211 | |
| 1212 | IF_DLIB_NOT_USE_CUDA( |
| 1213 | cpu::leaky_relu_gradient(grad, dest, gradient_input, alpha); |
| 1214 | ) |
| 1215 | } |
| 1216 | |
| 1217 | // ---------------------------------------------------------------------------------------- |
| 1218 |
nothing calls this directly
no outgoing calls
no test coverage detected