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

Method set_get_memory_callback

lite/src/mge/tensor_impl.cpp:447–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445}
446
447void TensorImplDft::set_get_memory_callback(
448 const std::function<void(TensorImplDft*)>& cb) {
449 m_get_memory_callback = cb;
450}
451
452void TensorImplDft::device_share_host_memory() {
453 if (is_host()) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected