From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_tf_mnist-_armnn_8cpp.xhtml | 162 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 20.02/_tf_mnist-_armnn_8cpp.xhtml (limited to '20.02/_tf_mnist-_armnn_8cpp.xhtml') diff --git a/20.02/_tf_mnist-_armnn_8cpp.xhtml b/20.02/_tf_mnist-_armnn_8cpp.xhtml new file mode 100644 index 0000000000..fee38b0981 --- /dev/null +++ b/20.02/_tf_mnist-_armnn_8cpp.xhtml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + +ArmNN: tests/TfMnist-Armnn/TfMnist-Armnn.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
TfMnist-Armnn.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Functions

int main (int argc, char *argv[])
 
+

Function Documentation

+ +

◆ main()

+ +
+
+ + + + + + + + + + + + + + + + + + +
int main (int argc,
char * argv[] 
)
+
+ +

Definition at line 9 of file TfMnist-Armnn.cpp.

+
10 {
11  armnn::TensorShape inputTensorShape({ 1, 784, 1, 1 });
12 
13  int retVal = EXIT_FAILURE;
14  try
15  {
16  using DataType = float;
17  using DatabaseType = MnistDatabase;
18  using ParserType = armnnTfParser::ITfParser;
19  using ModelType = InferenceModel<ParserType, DataType>;
20 
21  // Coverity fix: ClassifierInferenceTestMain() may throw uncaught exceptions.
22  retVal = armnn::test::ClassifierInferenceTestMain<DatabaseType, ParserType>(
23  argc, argv, "simple_mnist_tf.prototxt", false,
24  "Placeholder", "Softmax", { 0, 1, 2, 3, 4 },
25  [](const char* dataDir, const ModelType&) {
26  return DatabaseType(dataDir, true);
27  },
28  &inputTensorShape);
29  }
30  catch (const std::exception& e)
31  {
32  // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an
33  // exception of type std::length_error.
34  // Using stderr instead in this context as there is no point in nesting try-catch blocks here.
35  std::cerr << "WARNING: TfMnist-Armnn: An error has occurred when running "
36  "the classifier inference tests: " << e.what() << std::endl;
37  }
38  return retVal;
39 }
+ +
DataType
Definition: Types.hpp:32
+
Parses a directed acyclic graph from a tensorflow protobuf file.
Definition: ITfParser.hpp:25
+ +
+
+
+
+
+ + + + -- cgit v1.2.1