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

Method CppCPU

src/core/device/cpp_cpu.cc:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23std::shared_ptr<Device> defaultDevice = std::make_shared<CppCPU>();
24
25CppCPU::CppCPU() : Device(-1, 1) {
26 lang_ = kCpp;
27#ifdef USE_DNNL
28 ctx_.dnnl_engine = dnnl::engine(dnnl::engine::kind::cpu, 0);
29 ctx_.dnnl_stream = dnnl::stream(ctx_.dnnl_engine);
30#endif // USE_DNNL
31 // host_ = nullptr;
32}
33
34CppCPU::~CppCPU(){};
35

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected