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

Function copy_tensor

dlib/cuda/tensor_tools.cpp:1489–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1487// ------------------------------------------------------------------------------------
1488
1489 void copy_tensor(
1490 bool add_to,
1491 tensor& dest,
1492 size_t dest_k_offset,
1493 const tensor& src,
1494 size_t src_k_offset,
1495 size_t count_k
1496 )
1497 {
1498 IF_DLIB_USE_CUDA(
1499 cuda::copy_tensor(add_to, dest, dest_k_offset, src, src_k_offset, count_k);
1500 )
1501
1502 IF_DLIB_NOT_USE_CUDA(
1503 cpu::copy_tensor(add_to, dest, dest_k_offset, src, src_k_offset, count_k);
1504 )
1505 }
1506
1507// ----------------------------------------------------------------------------------------
1508

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected