| 723 | } |
| 724 | |
| 725 | void batch_normalize_gradient ( |
| 726 | const double eps, |
| 727 | const tensor& gradient_input, |
| 728 | const tensor& means, |
| 729 | const tensor& invstds, |
| 730 | const tensor& src, |
| 731 | const tensor& gamma, |
| 732 | tensor& src_grad, |
| 733 | tensor& gamma_grad, |
| 734 | tensor& beta_grad |
| 735 | ) |
| 736 | { |
| 737 | |
| 738 | IF_DLIB_USE_CUDA( |
| 739 | cuda::batch_normalize_gradient(eps,gradient_input, means, invstds, src, gamma, src_grad, gamma_grad, beta_grad); |
| 740 | ) |
| 741 | |
| 742 | IF_DLIB_NOT_USE_CUDA( |
| 743 | cpu::batch_normalize_gradient(eps,gradient_input, means, invstds, src, gamma, src_grad, gamma_grad, beta_grad); |
| 744 | ) |
| 745 | } |
| 746 | |
| 747 | // ---------------------------------------------------------------------------------------- |
| 748 |
nothing calls this directly
no outgoing calls
no test coverage detected