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

Function clipped_relu

dlib/cuda/tensor_tools.cpp:1250–1263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1248// ----------------------------------------------------------------------------------------
1249
1250 void clipped_relu (
1251 tensor& dest,
1252 const tensor& src,
1253 const float ceiling
1254 )
1255 {
1256 IF_DLIB_USE_CUDA(
1257 cuda::clipped_relu(dest, src, ceiling);
1258 )
1259
1260 IF_DLIB_NOT_USE_CUDA(
1261 cpu::clipped_relu(dest, src, ceiling);
1262 )
1263 }
1264
1265 void clipped_relu_gradient (
1266 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected