| 1231 | } |
| 1232 | |
| 1233 | void tanh_gradient ( |
| 1234 | tensor& grad, |
| 1235 | const tensor& dest, |
| 1236 | const tensor& gradient_input |
| 1237 | ) |
| 1238 | { |
| 1239 | IF_DLIB_USE_CUDA( |
| 1240 | cuda::tanh_gradient(grad, dest, gradient_input); |
| 1241 | ) |
| 1242 | |
| 1243 | IF_DLIB_NOT_USE_CUDA( |
| 1244 | cpu::tanh_gradient(grad, dest, gradient_input); |
| 1245 | ) |
| 1246 | } |
| 1247 | |
| 1248 | // ---------------------------------------------------------------------------------------- |
| 1249 |
nothing calls this directly
no outgoing calls
no test coverage detected