Caffe2 - C++ API
A deep learning, cross platform ML framework
memonger.h
1 #ifndef CAFFE2_CORE_MEMONGER_H_
2 #define CAFFE2_CORE_MEMONGER_H_
3 
4 #include <unordered_set>
5 
6 #include "caffe2/core/common.h"
7 #include "caffe2/core/workspace.h"
8 #include "caffe2/proto/caffe2_pb.h"
9 
10 namespace caffe2 {
11 namespace memonger {
12 
13 CAFFE2_API NetDef optimize_inference_net(
14  const NetDef& net,
15  const std::set<string>& static_blobs);
16 
17 CAFFE2_API NetDef compute_blob_recycling_for_dag(
18  const NetDef& net,
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);
25 
26 } // memonger
27 } // caffe2
28 
29 #endif
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13