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

Function tanh_gradient

dlib/cuda/tensor_tools.cpp:1233–1246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1231 }
1232
1233 void tanh_gradient (
1234 tensor& grad,
1235 const tensor& dest,
1236 const tensor& gradient_input
1237 )
1238 {
1239 IF_DLIB_USE_CUDA(
1240 cuda::tanh_gradient(grad, dest, gradient_input);
1241 )
1242
1243 IF_DLIB_NOT_USE_CUDA(
1244 cpu::tanh_gradient(grad, dest, gradient_input);
1245 )
1246 }
1247
1248// ----------------------------------------------------------------------------------------
1249

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected