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

Function smelu_gradient

dlib/cuda/tensor_tools.cpp:1364–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1362 }
1363
1364 void smelu_gradient (
1365 tensor& grad,
1366 const tensor& dest,
1367 const tensor& gradient_input,
1368 const float beta
1369 )
1370 {
1371 DLIB_CASSERT(beta > 0);
1372
1373 IF_DLIB_USE_CUDA(
1374 cuda::smelu_gradient(grad, dest, gradient_input, beta);
1375 )
1376
1377 IF_DLIB_NOT_USE_CUDA(
1378 cpu::smelu_gradient(grad, dest, gradient_input, beta);
1379 )
1380 }
1381
1382// ----------------------------------------------------------------------------------------
1383

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected