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

Function relu_gradient

dlib/cuda/tensor_tools.cpp:1135–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133 }
1134
1135 void relu_gradient (
1136 tensor& grad,
1137 const tensor& dest,
1138 const tensor& gradient_input
1139 )
1140 {
1141 IF_DLIB_USE_CUDA(
1142 cuda::relu_gradient(grad, dest, gradient_input);
1143 )
1144
1145 IF_DLIB_NOT_USE_CUDA(
1146 cpu::relu_gradient(grad, dest, gradient_input);
1147 )
1148 }
1149
1150// ----------------------------------------------------------------------------------------
1151

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected