MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / PrefCodeToStr

Function PrefCodeToStr

binaries/dnn_benchmark.cpp:67–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67auto PrefCodeToStr(const int &preference_code) {
68 if (preference_code == ANEURALNETWORKS_PREFER_FAST_SINGLE_ANSWER) {
69 return "fast single";
70 }
71 if (preference_code == ANEURALNETWORKS_PREFER_SUSTAINED_SPEED) {
72 return "sustained speed";
73 }
74 if (preference_code == ANEURALNETWORKS_PREFER_LOW_POWER) {
75 return "low power";
76 }
77 return "Unknown preference code";
78}
79
80// ./dnn_benchmark daq_name
81int main(int argc, char **argv) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected