| 1507 | !*/ |
| 1508 | |
| 1509 | void get_gradient( |
| 1510 | const tensor& gradient_input, |
| 1511 | const tensor& dest, |
| 1512 | const tensor& src, |
| 1513 | tensor& grad |
| 1514 | ) |
| 1515 | { |
| 1516 | IF_DLIB_USE_CUDA( |
| 1517 | cuda_impl.get_gradient(gradient_input, dest, src, grad); |
| 1518 | ) |
| 1519 | |
| 1520 | IF_DLIB_NOT_USE_CUDA( |
| 1521 | cpu_impl.get_gradient(gradient_input, dest, src, grad); |
| 1522 | ) |
| 1523 | } |
| 1524 | /*! |
| 1525 | requires |
| 1526 | - have_same_dimensions(gradient_input,dest) == true |
nothing calls this directly
no outgoing calls
no test coverage detected