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

Function smelu

dlib/cuda/tensor_tools.cpp:1347–1362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345// ----------------------------------------------------------------------------------------
1346
1347 void smelu (
1348 tensor& dest,
1349 const tensor& src,
1350 const float beta
1351 )
1352 {
1353 DLIB_CASSERT(beta > 0);
1354
1355 IF_DLIB_USE_CUDA(
1356 cuda::smelu(dest, src, beta);
1357 )
1358
1359 IF_DLIB_NOT_USE_CUDA(
1360 cpu::smelu(dest, src, beta);
1361 )
1362 }
1363
1364 void smelu_gradient (
1365 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected