aboutsummaryrefslogtreecommitdiff
path: root/tests/TfInceptionV3-Armnn
diff options
context:
space:
mode:
authorsurmeh01 <surabhi.mehta@arm.com>2018-03-29 16:29:27 +0100
committersurmeh01 <surabhi.mehta@arm.com>2018-03-29 16:29:27 +0100
commitbceff2fb3fc68bb0aa88b886900c34b77340c826 (patch)
treed867d3e090d58d3012dfbbac456e9ea8c7f789bc /tests/TfInceptionV3-Armnn
parent4fcda0101ec3d110c1d6d7bee5c83416b645528a (diff)
downloadarmnn-bceff2fb3fc68bb0aa88b886900c34b77340c826.tar.gz
Release 18.03
Diffstat (limited to 'tests/TfInceptionV3-Armnn')
-rw-r--r--tests/TfInceptionV3-Armnn/TfInceptionV3-Armnn.cpp23
-rw-r--r--tests/TfInceptionV3-Armnn/Validation.txt201
2 files changed, 224 insertions, 0 deletions
diff --git a/tests/TfInceptionV3-Armnn/TfInceptionV3-Armnn.cpp b/tests/TfInceptionV3-Armnn/TfInceptionV3-Armnn.cpp
new file mode 100644
index 0000000000..94878ae4ce
--- /dev/null
+++ b/tests/TfInceptionV3-Armnn/TfInceptionV3-Armnn.cpp
@@ -0,0 +1,23 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// See LICENSE file in the project root for full license information.
+//
+#include "../InferenceTest.hpp"
+#include "../MobileNetDatabase.hpp"
+#include "armnnTfParser/ITfParser.hpp"
+
+int main(int argc, char* argv[])
+{
+ std::vector<ImageSet> imageSet =
+ {
+ { "Dog.jpg", 208 },
+ { "Cat.jpg", 283 },
+ { "shark.jpg", 3 },
+ };
+ armnn::TensorShape inputTensorShape({ 1, 299, 299, 3 });
+ return armnn::test::ClassifierInferenceTestMain<MobileNetDatabase, armnnTfParser::ITfParser>(
+ argc, argv, "inception_v3_2016_08_28_frozen_transformed.pb", true,
+ "input", "InceptionV3/Predictions/Reshape_1", { 0, 1, 2, },
+ [&imageSet](const char* dataDir) { return MobileNetDatabase(dataDir, 299, 299, imageSet); },
+ &inputTensorShape);
+}
diff --git a/tests/TfInceptionV3-Armnn/Validation.txt b/tests/TfInceptionV3-Armnn/Validation.txt
new file mode 100644
index 0000000000..81b64dd7c5
--- /dev/null
+++ b/tests/TfInceptionV3-Armnn/Validation.txt
@@ -0,0 +1,201 @@
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3
+208
+283
+3