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

Function GetResourceFilePath

samples/ObjectDetection/test/PipelineTest.cpp:10–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "Types.hpp"
9
10static std::string GetResourceFilePath(const std::string& filename)
11{
12 std::string testResources = TEST_RESOURCE_DIR;
13 if (0 == testResources.size())
14 {
15 throw "Invalid test resources directory provided";
16 }
17 else
18 {
19 if(testResources.back() != '/')
20 {
21 return testResources + "/" + filename;
22 }
23 else
24 {
25 return testResources + filename;
26 }
27 }
28}
29
30TEST_CASE("Test Network Execution SSD_MOBILE")
31{

Callers 1

PipelineTest.cppFile · 0.70

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected