MCPcopy Create free account
hub / github.com/alibaba/MNN / _getFormatString

Function _getFormatString

tools/cpp/GetMNNInfo.cpp:61–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 return "Unknown";
60}
61static std::string _getFormatString(Dimensionformat format) {
62 switch (format) {
63 case MNN::Express::NCHW:
64 return "NCHW";
65 case MNN::Express::NHWC:
66 return "NHWC";
67 case MNN::Express::NC4HW4:
68 return "NC4HW4";
69 default:
70 break;
71 }
72 return "Unknown";
73}
74int main(int argc, char *argv[]) {
75 if (argc < 2) {
76 MNN_ERROR("Usage: ./GetMNNInfo ${test.mnn}\n");

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected