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

Function forwardType

benchmark/benchmark.cpp:199–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 printf("[ - ] %-24s max = %8.3f ms min = %8.3f ms avg = %8.3f ms\n", model.c_str(), max, avg == 0 ? 0 : min, avg);
198}
199static inline std::string forwardType(MNNForwardType type) {
200 switch (type) {
201 case MNN_FORWARD_CPU:
202 return "CPU";
203 case MNN_FORWARD_VULKAN:
204 return "Vulkan";
205 case MNN_FORWARD_OPENCL:
206 return "OpenCL";
207 case MNN_FORWARD_METAL:
208 return "Metal";
209 default:
210 break;
211 }
212 return "N/A";
213}
214
215
216

Callers 2

iosBenchAllFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected