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

Function assign_bias_gradient

dlib/cuda/tensor_tools.cpp:979–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977// ----------------------------------------------------------------------------------------
978
979 void assign_bias_gradient (
980 tensor& grad,
981 const tensor& gradient_input
982 )
983 {
984 IF_DLIB_USE_CUDA(
985 cuda::assign_bias_gradient(grad,gradient_input);
986 )
987
988 IF_DLIB_NOT_USE_CUDA(
989 cpu::assign_bias_gradient(grad,gradient_input);
990 )
991 }
992
993// ----------------------------------------------------------------------------------------
994

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected