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

Function leaky_relu_gradient

dlib/cuda/tensor_tools.cpp:1201–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199 }
1200
1201 void leaky_relu_gradient (
1202 tensor& grad,
1203 const tensor& dest,
1204 const tensor& gradient_input,
1205 const float alpha
1206 )
1207 {
1208 IF_DLIB_USE_CUDA(
1209 cuda::leaky_relu_gradient(grad, dest, gradient_input, alpha);
1210 )
1211
1212 IF_DLIB_NOT_USE_CUDA(
1213 cpu::leaky_relu_gradient(grad, dest, gradient_input, alpha);
1214 )
1215 }
1216
1217// ----------------------------------------------------------------------------------------
1218

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected