MCPcopy Create free account
hub / github.com/apache/singa / DoExec

Method DoExec

src/core/device/cpp_cpu.cc:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36void CppCPU::SetRandSeed(unsigned seed) { ctx_.random_generator.seed(seed); }
37
38void CppCPU::DoExec(function<void(Context*)>&& fn, int executor) {
39 CHECK_EQ(executor, 0);
40 fn(&ctx_);
41}
42
43void CppCPU::TimeProfilingDoExec(function<void(Context*)>&& fn, int executor,
44 Node* node) {

Callers 1

TimeProfilingDoExecMethod · 0.45

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected