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

Function layer_normalize

dlib/cuda/tensor_tools.cpp:814–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

812// ----------------------------------------------------------------------------------------
813
814 void layer_normalize (
815 const double eps,
816 resizable_tensor& dest,
817 resizable_tensor& means,
818 resizable_tensor& vars,
819 const tensor& src,
820 const tensor& gamma,
821 const tensor& beta
822 )
823 {
824 IF_DLIB_USE_CUDA(
825 cuda::layer_normalize(eps, dest, means, vars, src, gamma, beta);
826 )
827
828 IF_DLIB_NOT_USE_CUDA(
829 cpu::layer_normalize(eps, dest, means, vars, src, gamma, beta);
830 )
831 }
832
833 void layer_normalize_gradient (
834 const double eps,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected