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

Function tanh

dlib/cuda/tensor_tools.cpp:1219–1231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217// ----------------------------------------------------------------------------------------
1218
1219 void tanh (
1220 tensor& dest,
1221 const tensor& src
1222 )
1223 {
1224 IF_DLIB_USE_CUDA(
1225 cuda::tanh(dest,src);
1226 )
1227
1228 IF_DLIB_NOT_USE_CUDA(
1229 cpu::tanh(dest,src);
1230 )
1231 }
1232
1233 void tanh_gradient (
1234 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected