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

Function elu_gradient

dlib/cuda/tensor_tools.cpp:1298–1312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296 }
1297
1298 void elu_gradient (
1299 tensor& grad,
1300 const tensor& dest,
1301 const tensor& gradient_input,
1302 const float alpha
1303 )
1304 {
1305 IF_DLIB_USE_CUDA(
1306 cuda::elu_gradient(grad, dest, gradient_input, alpha);
1307 )
1308
1309 IF_DLIB_NOT_USE_CUDA(
1310 cpu::elu_gradient(grad, dest, gradient_input, alpha);
1311 )
1312 }
1313
1314// ----------------------------------------------------------------------------------------
1315

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected