MCPcopy Create free account
hub / github.com/OpenPPL/ppl.nn / FindDataTypeStr

Function FindDataTypeStr

tools/pplnn.cc:672–679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672static const char* FindDataTypeStr(datatype_t dt) {
673 for (int i = 0; !g_str2datatype[i].first.empty(); ++i) {
674 if (g_str2datatype[i].second == dt) {
675 return g_str2datatype[i].first.c_str();
676 }
677 }
678 return nullptr;
679}
680
681static bool SetInputsOneByOne(const string& input_files_str, const vector<vector<int64_t>>& input_shapes,
682 Runtime* runtime, vector<string>* input_data) {

Callers 1

SaveInputsOneByOneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected