MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / copy_tensors_to_device

Method copy_tensors_to_device

dnn/test/common/checker.cpp:413–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411}
412
413void CheckerHelper::copy_tensors_to_device(
414 const TensorValueArray& dest, const TensorValueArray& src) {
415 auto impl_h2d = [this](void* dst, const void* src, size_t sz) {
416 megdnn_memcpy_H2D(m_handle_cur, dst, src, sz);
417 };
418 copy_tensors(dest, src, impl_h2d);
419}
420
421// vim: syntax=cpp.doxygen

Callers

nothing calls this directly

Calls 1

copy_tensorsFunction · 0.85

Tested by

no test coverage detected