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

Function gelu

dlib/cuda/tensor_tools.cpp:1316–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1314// ----------------------------------------------------------------------------------------
1315
1316 void gelu (
1317 tensor& dest,
1318 const tensor& src
1319 )
1320 {
1321 IF_DLIB_USE_CUDA(
1322 cuda::gelu(dest,src);
1323 )
1324
1325 IF_DLIB_NOT_USE_CUDA(
1326 cpu::gelu(dest,src);
1327 )
1328 }
1329
1330 void gelu_gradient (
1331 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected