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

Function softmax_gradient

dlib/cuda/tensor_tools.cpp:1010–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008 }
1009
1010 void softmax_gradient(
1011 tensor& grad,
1012 const tensor& dest,
1013 const tensor& gradient_input,
1014 operation_mode mode
1015 )
1016 {
1017 IF_DLIB_USE_CUDA(
1018 cuda::softmax_gradient(grad, dest, gradient_input, mode);
1019 )
1020
1021 IF_DLIB_NOT_USE_CUDA(
1022 cpu::softmax_gradient(grad, dest, gradient_input, mode);
1023 )
1024 }
1025
1026// ----------------------------------------------------------------------------------------
1027

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected