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

Function gelu_gradient

dlib/cuda/tensor_tools.cpp:1330–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1328 }
1329
1330 void gelu_gradient (
1331 tensor& grad,
1332 const tensor& src,
1333 const tensor& gradient_input
1334 )
1335 {
1336 IF_DLIB_USE_CUDA(
1337 cuda::gelu_gradient(grad, src, gradient_input);
1338 )
1339
1340 IF_DLIB_NOT_USE_CUDA(
1341 cpu::gelu_gradient(grad, src, gradient_input);
1342 )
1343 }
1344
1345// ----------------------------------------------------------------------------------------
1346

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected