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

Method CnMemPool

src/core/memory/memory.cc:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46CnMemPool::CnMemPool(int numDevices, size_t init_size, size_t max_size) {
47 for (int i = 0; i < numDevices; i++) conf_.add_device(i);
48 conf_.set_init_size(init_size);
49 conf_.set_max_size(max_size);
50}
51
52CnMemPool::CnMemPool(const MemPoolConf &conf) { conf_ = conf; }
53

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected