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

Function FindDataTypeStr

tools/pplnn_llm.cc:529–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527}
528
529static const char* FindDataTypeStr(datatype_t dt) {
530 for (int i = 0; !g_str2datatype[i].first.empty(); ++i) {
531 if (g_str2datatype[i].second == dt) {
532 return g_str2datatype[i].first.c_str();
533 }
534 }
535 return nullptr;
536}
537
538static bool SetInputsOneByOne(const string& input_files_str, const vector<vector<int64_t>>& input_shapes,
539 Runtime* runtime, vector<string>* input_data) {

Callers 1

SaveInputsOneByOneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected