Caffe2 - C++ API
A deep learning, cross platform ML framework
predictor_utils.h
1 #pragma once
2 
3 #include "caffe2/core/db.h"
4 #include "caffe2/core/workspace.h"
5 #include "caffe2/predictor/predictor_config.h"
6 #include "caffe2/proto/metanet.pb.h"
7 
8 namespace caffe2 {
9 namespace predictor_utils {
10 
11 CAFFE2_API const NetDef& getNet(const MetaNetDef& def, const std::string& name);
12 const ::google::protobuf::RepeatedPtrField<::std::string>& getBlobs(
13  const MetaNetDef& def,
14  const std::string& name);
15 
16 CAFFE2_API std::unique_ptr<MetaNetDef> extractMetaNetDef(
17  db::Cursor* cursor,
18  const std::string& key);
19 
20 // Extract the MetaNetDef from `db`, and run the global init net on the
21 // `master` workspace.
22 CAFFE2_API std::unique_ptr<MetaNetDef> runGlobalInitialization(
23  std::unique_ptr<db::DBReader> db,
24  Workspace* master);
25 
26 } // namespace predictor_utils
27 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13