| 1040 | } |
| 1041 | |
| 1042 | void softmax_all_gradient ( |
| 1043 | tensor& grad, |
| 1044 | const tensor& dest, |
| 1045 | const tensor& gradient_input |
| 1046 | ) |
| 1047 | { |
| 1048 | IF_DLIB_USE_CUDA( |
| 1049 | cuda::softmax_all_gradient(grad, dest, gradient_input); |
| 1050 | ) |
| 1051 | |
| 1052 | IF_DLIB_NOT_USE_CUDA( |
| 1053 | cpu::softmax_all_gradient(grad, dest, gradient_input); |
| 1054 | ) |
| 1055 | } |
| 1056 | |
| 1057 | // ---------------------------------------------------------------------------------------- |
| 1058 |
nothing calls this directly
no outgoing calls
no test coverage detected