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

Function softmax

dlib/cuda/tensor_tools.cpp:995–1008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

993// ----------------------------------------------------------------------------------------
994
995 void softmax(
996 tensor& dest,
997 const tensor& src,
998 operation_mode mode
999 )
1000 {
1001 IF_DLIB_USE_CUDA(
1002 cuda::softmax(dest, src, mode);
1003 )
1004
1005 IF_DLIB_NOT_USE_CUDA(
1006 cpu::softmax(dest, src, mode);
1007 )
1008 }
1009
1010 void softmax_gradient(
1011 tensor& grad,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected