| 1008 | } |
| 1009 | |
| 1010 | void softmax_gradient( |
| 1011 | tensor& grad, |
| 1012 | const tensor& dest, |
| 1013 | const tensor& gradient_input, |
| 1014 | operation_mode mode |
| 1015 | ) |
| 1016 | { |
| 1017 | IF_DLIB_USE_CUDA( |
| 1018 | cuda::softmax_gradient(grad, dest, gradient_input, mode); |
| 1019 | ) |
| 1020 | |
| 1021 | IF_DLIB_NOT_USE_CUDA( |
| 1022 | cpu::softmax_gradient(grad, dest, gradient_input, mode); |
| 1023 | ) |
| 1024 | } |
| 1025 | |
| 1026 | // ---------------------------------------------------------------------------------------- |
| 1027 |
nothing calls this directly
no outgoing calls
no test coverage detected