MCPcopy Create free account
hub / github.com/davisking/dlib / rms_normalize_gradient

Function rms_normalize_gradient

dlib/cuda/tensor_tools.cpp:875–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected