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

Method compile_without_copy

src/gopt/test/no_memory_copy.cpp:152–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 std::unique_ptr<cg::AsyncExecutable> compile_without_copy() {
153 return m_network->graph->compile({{m_out_var, nullptr}});
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); };

Callers 3

TESTFunction · 0.80
test_subtensor_recordFunction · 0.80

Calls 1

compileMethod · 0.45

Tested by

no test coverage detected