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

Method get_gradient

dlib/cuda/tensor_tools.h:1509–1523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1507 !*/
1508
1509 void get_gradient(
1510 const tensor& gradient_input,
1511 const tensor& dest,
1512 const tensor& src,
1513 tensor& grad
1514 )
1515 {
1516 IF_DLIB_USE_CUDA(
1517 cuda_impl.get_gradient(gradient_input, dest, src, grad);
1518 )
1519
1520 IF_DLIB_NOT_USE_CUDA(
1521 cpu_impl.get_gradient(gradient_input, dest, src, grad);
1522 )
1523 }
1524 /*!
1525 requires
1526 - have_same_dimensions(gradient_input,dest) == true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected