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

Function reorg_gradient

dlib/cuda/tensor_tools.cpp:1470–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1468 }
1469
1470 void reorg_gradient (
1471 bool add_to,
1472 tensor& grad,
1473 const int row_stride,
1474 const int col_stride,
1475 const tensor& gradient_input
1476 )
1477 {
1478 IF_DLIB_USE_CUDA(
1479 cuda::reorg_gradient(add_to, grad, row_stride, col_stride, gradient_input);
1480 )
1481
1482 IF_DLIB_NOT_USE_CUDA(
1483 cpu::reorg_gradient(add_to, grad, row_stride, col_stride, gradient_input);
1484 )
1485 }
1486
1487// ------------------------------------------------------------------------------------
1488

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected