From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- ...f_res_next___quantized-_armnn_8cpp_source.xhtml | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 21.02/_tf_res_next___quantized-_armnn_8cpp_source.xhtml (limited to '21.02/_tf_res_next___quantized-_armnn_8cpp_source.xhtml') diff --git a/21.02/_tf_res_next___quantized-_armnn_8cpp_source.xhtml b/21.02/_tf_res_next___quantized-_armnn_8cpp_source.xhtml new file mode 100644 index 0000000000..19b0550364 --- /dev/null +++ b/21.02/_tf_res_next___quantized-_armnn_8cpp_source.xhtml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + +ArmNN: tests/TfResNext_Quantized-Armnn/TfResNext_Quantized-Armnn.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TfResNext_Quantized-Armnn.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "../InferenceTest.hpp"
6 #include "../CaffePreprocessor.hpp"
8 
9 int main(int argc, char* argv[])
10 {
11  int retVal = EXIT_FAILURE;
12  try
13  {
14  // Coverity fix: The following code may throw an exception of type std::length_error.
15  std::vector<ImageSet> imageSet =
16  {
17  {"ILSVRC2012_val_00000018.JPEG", 21 },
18  {"shark.jpg", 2}
19  };
20 
21  armnn::TensorShape inputTensorShape({ 1, 3, 224, 224 });
22 
23  using DataType = float;
24  using DatabaseType = CaffePreprocessor;
25  using ParserType = armnnTfParser::ITfParser;
26  using ModelType = InferenceModel<ParserType, DataType>;
27 
28  // Coverity fix: ClassifierInferenceTestMain() may throw uncaught exceptions.
29  retVal = armnn::test::ClassifierInferenceTestMain<DatabaseType, ParserType>(
30  argc, argv, "resnext_TF_quantized_for_armnn_team.pb", true,
31  "inputs", "pool1", { 0, 1 },
32  [&imageSet](const char* dataDir, const ModelType &) {
33  return DatabaseType(dataDir, 224, 224, imageSet);
34  },
35  &inputTensorShape);
36  }
37  catch (const std::exception& e)
38  {
39  // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an
40  // exception of type std::length_error.
41  // Using stderr instead in this context as there is no point in nesting try-catch blocks here.
42  std::cerr << "WARNING: TfResNext_Quantized-Armnn: An error has occurred when running "
43  "the classifier inference tests: " << e.what() << std::endl;
44  }
45  return retVal;
46 }
+ + +
DataType
Definition: Types.hpp:32
+ +
Parses a directed acyclic graph from a tensorflow protobuf file.
Definition: ITfParser.hpp:25
+
int main(int argc, char *argv[])
+
+
+ + + + -- cgit v1.2.1