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

Method get_gradient_for_data

dlib/cuda/tensor_tools.h:1239–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1237 !*/
1238
1239 void get_gradient_for_data (
1240 const bool add_to_output,
1241 const tensor& gradient_input,
1242 const tensor& filters,
1243 tensor& data_gradient
1244 )
1245 {
1246 IF_DLIB_USE_CUDA(
1247 cuda_impl.get_gradient_for_data(add_to_output,gradient_input,filters,data_gradient);
1248 )
1249
1250 IF_DLIB_NOT_USE_CUDA(
1251 cpu_impl.get_gradient_for_data(add_to_output,gradient_input,filters,data_gradient);
1252 )
1253 }
1254 /*!
1255 requires
1256 - One of the following must be true:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected