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

Function clipped_relu_gradient

dlib/cuda/tensor_tools.cpp:1265–1279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1263 }
1264
1265 void clipped_relu_gradient (
1266 tensor& grad,
1267 const tensor& dest,
1268 const tensor& gradient_input,
1269 const float ceiling
1270 )
1271 {
1272 IF_DLIB_USE_CUDA(
1273 cuda::clipped_relu_gradient(grad, dest, gradient_input, ceiling);
1274 )
1275
1276 IF_DLIB_NOT_USE_CUDA(
1277 cpu::clipped_relu_gradient(grad, dest, gradient_input, ceiling);
1278 )
1279 }
1280
1281// ----------------------------------------------------------------------------------------
1282

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected