10 typename Key =
typename Map::key_type,
11 typename Value =
typename Map::mapped_type>
12 typename Map::mapped_type
13 get_default(
const Map& map,
const Key& key, Value&& dflt) {
14 using M =
typename Map::mapped_type;
15 auto pos = map.find(key);
16 return (pos != map.end()) ? (pos->second) :
M(std::forward<Value>(dflt));
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...