MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / GetDB

Function GetDB

rtpose_wrapper/src/caffe/util/db.cpp:9–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace caffe { namespace db {
8
9DB* GetDB(DataParameter::DB backend) {
10 switch (backend) {
11#ifdef USE_LEVELDB
12 case DataParameter_DB_LEVELDB:
13 return new LevelDB();
14#endif // USE_LEVELDB
15#ifdef USE_LMDB
16 case DataParameter_DB_LMDB:
17 return new LMDB();
18#endif // USE_LMDB
19 default:
20 LOG(FATAL) << "Unknown database backend";
21 return NULL;
22 }
23}
24
25DB* GetDB(const string& backend) {
26#ifdef USE_LEVELDB

Callers 10

mainFunction · 0.85
mainFunction · 0.85
InternalThreadEntryMethod · 0.85
TEST_FFunction · 0.85
FillMethod · 0.85
TestReshapeMethod · 0.85
TYPED_TESTFunction · 0.85
SetUpMethod · 0.85
TYPED_TESTFunction · 0.85

Calls

no outgoing calls

Tested by 6

TEST_FFunction · 0.68
FillMethod · 0.68
TestReshapeMethod · 0.68
TYPED_TESTFunction · 0.68
SetUpMethod · 0.68
TYPED_TESTFunction · 0.68