3 #include "caffe2/core/common.h" 4 #include "caffe2/proto/caffe2_pb.h" 5 #include "caffe2/transforms/single_op_transform.h" 6 #include "caffe2/utils/proto_utils.h" 13 bool MatchOperator(
const OperatorDef& op)
override {
15 op.type() ==
"Conv" && op.device_option().device_type() == PROTO_CPU &&
16 op.engine() !=
"NNPACK");
20 void ReplaceOperator(OperatorDef* op)
override {
21 op->set_engine(
"NNPACK");
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...