1 #include "caffe2/transforms/single_op_transform.h" 3 #include "caffe2/core/common.h" 4 #include "caffe2/core/logging.h" 5 #include "caffe2/core/net.h" 6 #include "caffe2/proto/caffe2_pb.h" 10 using transform::Graph;
14 const std::vector<int>& subgraph,
16 if (subgraph.size() == 0) {
17 return MatchOperator(g.node(idx).op);
24 const std::vector<int>& subgraph) {
25 if (subgraph.size() == 1) {
32 const std::vector<int>& subgraph,
36 ReplaceOperator(&(g.node(subgraph[0]).op));
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
A simple graph implementation.