| 873 | } |
| 874 | |
| 875 | void rms_normalize_gradient( |
| 876 | const tensor& gradient_input, |
| 877 | const tensor& scale, |
| 878 | const tensor& src, |
| 879 | const tensor& gamma, |
| 880 | tensor& src_grad, |
| 881 | tensor& gamma_grad, |
| 882 | resizable_tensor& dscale |
| 883 | ) |
| 884 | { |
| 885 | IF_DLIB_USE_CUDA( |
| 886 | cuda::rms_normalize_gradient(gradient_input, scale, src, gamma, src_grad, gamma_grad, dscale); |
| 887 | ) |
| 888 | |
| 889 | IF_DLIB_NOT_USE_CUDA( |
| 890 | cpu::rms_normalize_gradient(gradient_input, scale, src, gamma, src_grad, gamma_grad, dscale); |
| 891 | ) |
| 892 | } |
| 893 | |
| 894 | // ---------------------------------------------------------------------------------------- |
| 895 |
nothing calls this directly
no outgoing calls
no test coverage detected