MCPcopy Create free account
hub / github.com/OAID/Tengine / check_file_exist

Function check_file_exist

internal/bin/classification.cpp:311–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311static bool check_file_exist(const std::string file_name)
312{
313 FILE* fp = fopen(file_name.c_str(), "r");
314 if(!fp)
315 {
316 std::cerr << "Input file not existed: " << file_name << "\n";
317 return false;
318 }
319 fclose(fp);
320 return true;
321}
322
323static bool check_params(const std::string model_format, int& model_fnum, const std::string proto_file,
324 const std::string model_file, const std::string label_file, const std::string image_file,

Callers 1

check_paramsFunction · 0.70

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected