| 1237 | !*/ |
| 1238 | |
| 1239 | void get_gradient_for_data ( |
| 1240 | const bool add_to_output, |
| 1241 | const tensor& gradient_input, |
| 1242 | const tensor& filters, |
| 1243 | tensor& data_gradient |
| 1244 | ) |
| 1245 | { |
| 1246 | IF_DLIB_USE_CUDA( |
| 1247 | cuda_impl.get_gradient_for_data(add_to_output,gradient_input,filters,data_gradient); |
| 1248 | ) |
| 1249 | |
| 1250 | IF_DLIB_NOT_USE_CUDA( |
| 1251 | cpu_impl.get_gradient_for_data(add_to_output,gradient_input,filters,data_gradient); |
| 1252 | ) |
| 1253 | } |
| 1254 | /*! |
| 1255 | requires |
| 1256 | - One of the following must be true: |
nothing calls this directly
no outgoing calls
no test coverage detected