blob: fbd3312f042c0333b2136073171c5b6dfed08e13 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5#include "../InferenceTest.hpp"
6#include "../Cifar10Database.hpp"
7#include "armnnCaffeParser/ICaffeParser.hpp"
8
9int main(int argc, char* argv[])
10{
surmeh013537c2c2018-05-18 16:31:43 +010011 int retVal = EXIT_FAILURE;
12 try
13 {
14 // Coverity fix: ClassifierInferenceTestMain() may throw uncaught exceptions.
15 retVal = armnn::test::ClassifierInferenceTestMain<Cifar10Database, armnnCaffeParser::ICaffeParser>(
16 argc, argv, "cifar10_full_iter_60000.caffemodel", true, "data", "prob",
17 { 0, 1, 2, 4, 7 },
18 [](const char* dataDir) { return Cifar10Database(dataDir); });
19 }
20 catch (const std::exception& e)
21 {
22 // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an
23 // exception of type std::length_error.
24 // Using stderr instead in this context as there is no point in nesting try-catch blocks here.
25 std::cerr << "WARNING: CaffeCifar10AcrossChannels-Armnn: An error has occurred when running "
26 "the classifier inference tests: " << e.what() << std::endl;
27 }
28 return retVal;
telsoa014fcda012018-03-09 14:13:49 +000029}