MCPcopy Create free account
hub / github.com/ARM-software/armnn / ValidatePath

Function ValidatePath

tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool ValidatePath(const std::string& file, const bool expectFile)
41{
42 if (!fs::exists(file))
43 {
44 std::cerr << "Given file path '" << file << "' does not exist" << std::endl;
45 return false;
46 }
47 if (!fs::is_regular_file(file) && expectFile)
48 {
49 std::cerr << "Given file path '" << file << "' is not a regular file" << std::endl;
50 return false;
51 }
52 return true;
53}
54
55std::vector<unsigned int> ParseArray(std::istream& stream)
56{

Callers 2

CheckClTuningParameterFunction · 0.85
ValidatePathsFunction · 0.85

Calls 2

existsFunction · 0.85
is_regular_fileFunction · 0.85

Tested by

no test coverage detected