| 1328 | } |
| 1329 | |
| 1330 | void gelu_gradient ( |
| 1331 | tensor& grad, |
| 1332 | const tensor& src, |
| 1333 | const tensor& gradient_input |
| 1334 | ) |
| 1335 | { |
| 1336 | IF_DLIB_USE_CUDA( |
| 1337 | cuda::gelu_gradient(grad, src, gradient_input); |
| 1338 | ) |
| 1339 | |
| 1340 | IF_DLIB_NOT_USE_CUDA( |
| 1341 | cpu::gelu_gradient(grad, src, gradient_input); |
| 1342 | ) |
| 1343 | } |
| 1344 | |
| 1345 | // ---------------------------------------------------------------------------------------- |
| 1346 |
nothing calls this directly
no outgoing calls
no test coverage detected