1 #ifndef CAFFE2_CORE_MEMONGER_H_ 2 #define CAFFE2_CORE_MEMONGER_H_ 4 #include <unordered_set> 6 #include "caffe2/core/common.h" 7 #include "caffe2/core/workspace.h" 8 #include "caffe2/proto/caffe2_pb.h" 13 CAFFE2_API NetDef optimize_inference_net(
15 const std::set<string>& static_blobs);
17 CAFFE2_API NetDef compute_blob_recycling_for_dag(
19 const std::vector<string>& heads,
20 const std::vector<int>& op_indices,
21 const std::unordered_set<string>& shareable_blob_names,
22 const string& namescope,
23 const std::unordered_set<string>& dont_share_blob_names,
24 const std::unordered_map<
string, vector<int>>& blob_shapes);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...