diff options
Diffstat (limited to 'tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp')
-rw-r--r-- | tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp b/tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp index a6581bea55..fccf9aff70 100644 --- a/tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp +++ b/tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp @@ -3,7 +3,7 @@ // See LICENSE file in the project root for full license information. // #include "../InferenceTest.hpp" -#include "../ImageNetDatabase.hpp" +#include "../CaffePreprocessor.hpp" #include "armnnCaffeParser/ICaffeParser.hpp" int main(int argc, char* argv[]) @@ -17,11 +17,18 @@ int main(int argc, char* argv[]) {"shark.jpg", 3694} }; + using DataType = float; + using DatabaseType = CaffePreprocessor; + using ParserType = armnnCaffeParser::ICaffeParser; + using ModelType = InferenceModel<ParserType, DataType>; + // Coverity fix: ClassifierInferenceTestMain() may throw uncaught exceptions. - retVal = armnn::test::ClassifierInferenceTestMain<ImageNetDatabase, armnnCaffeParser::ICaffeParser>( + retVal = armnn::test::ClassifierInferenceTestMain<DatabaseType, ParserType>( argc, argv, "Inception-BN-batchsize1.caffemodel", true, "data", "softmax", { 0 }, - [&imageSet](const char* dataDir) { return ImageNetDatabase(dataDir, 224, 224, imageSet); }); + [&imageSet](const char* dataDir, const ModelType&) { + return DatabaseType(dataDir, 224, 224, imageSet); + }); } catch (const std::exception& e) { |