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/_caffe_inception___b_n-_armnn_8cpp.xhtml | 161 +++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 20.02/_caffe_inception___b_n-_armnn_8cpp.xhtml (limited to '20.02/_caffe_inception___b_n-_armnn_8cpp.xhtml') diff --git a/20.02/_caffe_inception___b_n-_armnn_8cpp.xhtml b/20.02/_caffe_inception___b_n-_armnn_8cpp.xhtml new file mode 100644 index 0000000000..bca9005cf0 --- /dev/null +++ b/20.02/_caffe_inception___b_n-_armnn_8cpp.xhtml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + +ArmNN: tests/CaffeInception_BN-Armnn/CaffeInception_BN-Armnn.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
CaffeInception_BN-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 CaffeInception_BN-Armnn.cpp.

+
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  {"shark.jpg", 3694}
18  };
19 
20  using DataType = float;
21  using DatabaseType = CaffePreprocessor;
22  using ParserType = armnnCaffeParser::ICaffeParser;
23  using ModelType = InferenceModel<ParserType, DataType>;
24 
25  // Coverity fix: ClassifierInferenceTestMain() may throw uncaught exceptions.
26  retVal = armnn::test::ClassifierInferenceTestMain<DatabaseType, ParserType>(
27  argc, argv, "Inception-BN-batchsize1.caffemodel", true,
28  "data", "softmax", { 0 },
29  [&imageSet](const char* dataDir, const ModelType&) {
30  return DatabaseType(dataDir, 224, 224, imageSet);
31  });
32  }
33  catch (const std::exception& e)
34  {
35  // Coverity fix: BOOST_LOG_TRIVIAL (typically used to report errors) may throw an
36  // exception of type std::length_error.
37  // Using stderr instead in this context as there is no point in nesting try-catch blocks here.
38  std::cerr << "WARNING: CaffeInception_BN-Armnn: An error has occurred when running "
39  "the classifier inference tests: " << e.what() << std::endl;
40  }
41  return retVal;
42 }
+ +
DataType
Definition: Types.hpp:32
+ +
+
+
+
+
+ + + + -- cgit v1.2.1