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 --- 21.02/_leaky_relu_8cpp_source.xhtml | 120 ++++++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 21.02/_leaky_relu_8cpp_source.xhtml (limited to '21.02/_leaky_relu_8cpp_source.xhtml') diff --git a/21.02/_leaky_relu_8cpp_source.xhtml b/21.02/_leaky_relu_8cpp_source.xhtml new file mode 100644 index 0000000000..f3af0750c8 --- /dev/null +++ b/21.02/_leaky_relu_8cpp_source.xhtml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/LeakyRelu.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
LeakyRelu.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <boost/test/unit_test.hpp>
8 #include "../TfLiteParser.hpp"
9 
10 #include <string>
11 #include <iostream>
12 
13 BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
14 
15 struct LeakyReluFixture : public ParserFlatbuffersFixture
16 {
17  explicit LeakyReluFixture()
18  {
19  m_JsonString = R"(
20  {
21  "version": 3,
22  "operator_codes": [ { "builtin_code": "LEAKY_RELU" } ],
23  "subgraphs": [ {
24  "tensors": [
25  {
26  "shape": [ 1, 7 ],
27  "type": "FLOAT32",
28  "buffer": 0,
29  "name": "inputTensor",
30  "quantization": {
31  "min": [ 0.0 ],
32  "max": [ 255.0 ],
33  "scale": [ 1.0 ],
34  "zero_point": [ 0 ],
35  }
36  },
37  {
38  "shape": [ 1, 7 ],
39  "type": "FLOAT32",
40  "buffer": 1,
41  "name": "outputTensor",
42  "quantization": {
43  "min": [ 0.0 ],
44  "max": [ 255.0 ],
45  "scale": [ 1.0 ],
46  "zero_point": [ 0 ],
47  }
48  }
49  ],
50  "inputs": [ 0 ],
51  "outputs": [ 1 ],
52  "operators": [
53  {
54  "opcode_index": 0,
55  "inputs": [ 0 ],
56  "outputs": [ 1 ],
57  "builtin_options_type": "LeakyReluOptions",
58  "builtin_options": {
59  "alpha": 0.01
60  },
61  "custom_options_format": "FLEXBUFFERS"
62  }
63  ],
64  } ],
65  "buffers" : [ {}, {} ]
66  }
67  )";
68  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
69  }
70 };
71 
72 BOOST_FIXTURE_TEST_CASE(ParseLeakyRelu, LeakyReluFixture)
73 {
74  RunTest<2, armnn::DataType::Float32>(0,
75  {{ "inputTensor", { -0.1f, -0.2f, -0.3f, -0.4f, 0.1f, 0.2f, 0.3f }}},
76  {{ "outputTensor", { -0.001f, -0.002f, -0.003f, -0.004f, 0.1f, 0.2f, 0.3f }}});
77 }
78 
BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)
+ + +
BOOST_FIXTURE_TEST_CASE(ParseLeakyRelu, LeakyReluFixture)
Definition: LeakyRelu.cpp:72
+ +
BOOST_AUTO_TEST_SUITE_END()
+
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
+
+
+ + + + -- cgit v1.2.1