| 1263 | } |
| 1264 | |
| 1265 | void clipped_relu_gradient ( |
| 1266 | tensor& grad, |
| 1267 | const tensor& dest, |
| 1268 | const tensor& gradient_input, |
| 1269 | const float ceiling |
| 1270 | ) |
| 1271 | { |
| 1272 | IF_DLIB_USE_CUDA( |
| 1273 | cuda::clipped_relu_gradient(grad, dest, gradient_input, ceiling); |
| 1274 | ) |
| 1275 | |
| 1276 | IF_DLIB_NOT_USE_CUDA( |
| 1277 | cpu::clipped_relu_gradient(grad, dest, gradient_input, ceiling); |
| 1278 | ) |
| 1279 | } |
| 1280 | |
| 1281 | // ---------------------------------------------------------------------------------------- |
| 1282 |
nothing calls this directly
no outgoing calls
no test coverage detected