MCPcopy Create free account
hub / github.com/BVLC/caffe / GetBrewFunction

Function GetBrewFunction

tools/caffe.cpp:74–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static BrewFunction GetBrewFunction(const caffe::string& name) {
75 if (g_brew_map.count(name)) {
76 return g_brew_map[name];
77 } else {
78 LOG(ERROR) << "Available caffe actions:";
79 for (BrewMap::iterator it = g_brew_map.begin();
80 it != g_brew_map.end(); ++it) {
81 LOG(ERROR) << "\t" << it->first;
82 }
83 LOG(FATAL) << "Unknown action: " << name;
84 return NULL; // not reachable, just to suppress old compiler warnings.
85 }
86}
87
88// Parse GPU ids or use all available devices
89static void get_gpus(vector<int>* gpus) {

Callers 1

mainFunction · 0.85

Calls 3

countMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected