3 #include "caffe2/core/net.h" 4 #include "caffe2/utils/math.h" 7 static constexpr
const char* kMPSCNNReadCountArg =
"__mpscnn_read_count__";
8 static constexpr
const char* kMPSCNNOutputIsTempImageArg =
"__mpscnn_output_is_temp_img__";
9 static constexpr
const int kMetalMaxTextureArrLength = 2048;
15 bool tryConvertToMPSCNN(
const NetDef& initNet,
const NetDef& predictNet, NetDef* mpscnnPredictNet);
18 NetDef annotateDefWithReadCounts(
const NetDef& net);
19 NetDef rewriteForMetal(
const NetDef& net);
20 NetDef runMPSCNNFusion(
const NetDef& net);
21 void dumpDef(
const NetDef& d);
22 void mpscnnRecordExecutionFinish();
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...