3 #include "caffe2/core/net.h" 4 #include "caffe2/core/tensor.h" 5 #include "caffe2/proto/metanet.pb.h" 6 #include "caffe2/proto/predictor_consts.pb.h" 14 using PredictorParameters = std::map<std::string, std::shared_ptr<Blob>>;
22 std::shared_ptr<PredictorParameters> parameters;
24 std::shared_ptr<NetDef> predict_net;
28 std::vector<std::string> input_names;
31 std::vector<std::string> output_names;
35 std::vector<std::string> parameter_names;
40 std::shared_ptr<Workspace> ws;
43 CAFFE2_API
Workspace makeWorkspace(std::shared_ptr<PredictorParameters> parameters);
46 const MetaNetDef& net,
48 bool run_init =
true);
51 const NetDef& init_net,
52 const NetDef& run_net,
55 int optimization = 1);
Stores parameters nessasary for creating a PredictorInterface object.
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...