| 1362 | } |
| 1363 | |
| 1364 | void smelu_gradient ( |
| 1365 | tensor& grad, |
| 1366 | const tensor& dest, |
| 1367 | const tensor& gradient_input, |
| 1368 | const float beta |
| 1369 | ) |
| 1370 | { |
| 1371 | DLIB_CASSERT(beta > 0); |
| 1372 | |
| 1373 | IF_DLIB_USE_CUDA( |
| 1374 | cuda::smelu_gradient(grad, dest, gradient_input, beta); |
| 1375 | ) |
| 1376 | |
| 1377 | IF_DLIB_NOT_USE_CUDA( |
| 1378 | cpu::smelu_gradient(grad, dest, gradient_input, beta); |
| 1379 | ) |
| 1380 | } |
| 1381 | |
| 1382 | // ---------------------------------------------------------------------------------------- |
| 1383 |
nothing calls this directly
no outgoing calls
no test coverage detected