3 #include "caffe2/core/common.h" 4 #include "caffe2/core/transform.h" 5 #include "caffe2/proto/caffe2_pb.h" 6 #include "caffe2/utils/proto_utils.h" 24 p_.external_input() == r_.external_input(),
25 "External inputs do not match!");
27 p_.external_output() == r_.external_output(),
28 "External outputs do not match!");
29 ordered_ops_ = GetPatternTraversalOrder(p_);
30 inverse_ops_.resize(ordered_ops_.size());
31 for (
size_t i = 0; i < ordered_ops_.size(); i++) {
32 inverse_ops_[ordered_ops_[i]] = i;
36 void EnableArgumentMatching() {
37 argument_match_ =
true;
40 void DisableArgumentMatching() {
41 argument_match_ =
false;
60 const std::vector<int>& subgraph,
69 const std::vector<int>& subgraph)
override;
114 std::vector<int> ordered_ops_;
118 std::vector<int> inverse_ops_;
124 bool argument_match_ =
false;
126 const string TransformBlobWrapper(
const string& blob_name) {
127 return "transform/" + blob_name +
"_" + c10::to_string(ssa_id_);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...