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

Function leaky_relu

dlib/cuda/tensor_tools.cpp:1186–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1184// ----------------------------------------------------------------------------------------
1185
1186 void leaky_relu (
1187 tensor& dest,
1188 const tensor& src,
1189 const float alpha
1190 )
1191 {
1192 IF_DLIB_USE_CUDA(
1193 cuda::leaky_relu(dest, src, alpha);
1194 )
1195
1196 IF_DLIB_NOT_USE_CUDA(
1197 cpu::leaky_relu(dest, src, alpha);
1198 )
1199 }
1200
1201 void leaky_relu_gradient (
1202 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected