diff options
author | surmeh01 <surabhi.mehta@arm.com> | 2018-03-29 16:29:27 +0100 |
---|---|---|
committer | surmeh01 <surabhi.mehta@arm.com> | 2018-03-29 16:29:27 +0100 |
commit | bceff2fb3fc68bb0aa88b886900c34b77340c826 (patch) | |
tree | d867d3e090d58d3012dfbbac456e9ea8c7f789bc /tests/TfMnist-Armnn/TfMnist-Armnn.cpp | |
parent | 4fcda0101ec3d110c1d6d7bee5c83416b645528a (diff) | |
download | armnn-bceff2fb3fc68bb0aa88b886900c34b77340c826.tar.gz |
Release 18.03
Diffstat (limited to 'tests/TfMnist-Armnn/TfMnist-Armnn.cpp')
-rw-r--r-- | tests/TfMnist-Armnn/TfMnist-Armnn.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/TfMnist-Armnn/TfMnist-Armnn.cpp b/tests/TfMnist-Armnn/TfMnist-Armnn.cpp new file mode 100644 index 0000000000..5625f4c055 --- /dev/null +++ b/tests/TfMnist-Armnn/TfMnist-Armnn.cpp @@ -0,0 +1,17 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// See LICENSE file in the project root for full license information. +// +#include "../InferenceTest.hpp" +#include "../MnistDatabase.hpp" +#include "armnnTfParser/ITfParser.hpp" + +int main(int argc, char* argv[]) +{ + armnn::TensorShape inputTensorShape({ 1, 784, 1, 1 }); + return armnn::test::ClassifierInferenceTestMain<MnistDatabase, armnnTfParser::ITfParser>( + argc, argv, "simple_mnist_tf.prototxt", false, + "Placeholder", "Softmax", { 0, 1, 2, 3, 4 }, + [](const char* dataDir) { return MnistDatabase(dataDir, true); }, + &inputTensorShape); +} |