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

Method compile_with_copy

src/gopt/test/no_memory_copy.cpp:156–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 std::unique_ptr<cg::AsyncExecutable> compile_with_copy(HostTensorND& host) {
157 auto cb = [&host](const DeviceTensorND& dv) mutable { host.copy_from(dv); };
158 return m_network->graph->compile({{m_out_var, std::move(cb)}});
159 }
160};
161
162namespace {

Callers 1

test_basic_input_no_copyFunction · 0.80

Calls 2

copy_fromMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected