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

Function rms_normalize

dlib/cuda/tensor_tools.cpp:858–873  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856// ----------------------------------------------------------------------------------------
857
858 void rms_normalize(
859 const double eps,
860 resizable_tensor& dest,
861 resizable_tensor& scale,
862 const tensor& src,
863 const tensor& gamma
864 )
865 {
866 IF_DLIB_USE_CUDA(
867 cuda::rms_normalize(eps, dest, scale, src, gamma);
868 )
869
870 IF_DLIB_NOT_USE_CUDA(
871 cpu::rms_normalize(eps, dest, scale, src, gamma);
872 )
873 }
874
875 void rms_normalize_gradient(
876 const tensor& gradient_input,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected