From 7bfd38a721360183f3392f9ab35db18a0dd7fef8 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 19 Aug 2022 15:23:36 +0100 Subject: Update Doxygen for 22.08 Release Signed-off-by: Nikhil Raj Change-Id: I4789fe868e0492839be1482e5cee3642ed90d756 --- 22.08/_sub_8cpp.xhtml | 150 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 22.08/_sub_8cpp.xhtml (limited to '22.08/_sub_8cpp.xhtml') diff --git a/22.08/_sub_8cpp.xhtml b/22.08/_sub_8cpp.xhtml new file mode 100644 index 0000000000..7a7390a018 --- /dev/null +++ b/22.08/_sub_8cpp.xhtml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/Sub.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Sub.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Functions

 TEST_SUITE ("TensorflowLiteParser_Sub")
 
+

Function Documentation

+ +

◆ TEST_SUITE()

+ +
+
+ + + + + + + + +
TEST_SUITE ("TensorflowLiteParser_Sub" )
+
+ +

Definition at line 9 of file Sub.cpp.

+ +

References ParserFlatbuffersFixture::Setup(), and TEST_CASE_FIXTURE().

+
10 {
11 struct SubFixture : public ParserFlatbuffersFixture
12 {
13  explicit SubFixture(const std::string & inputShape1,
14  const std::string & inputShape2,
15  const std::string & outputShape,
16  const std::string & activation="NONE")
17  {
18  m_JsonString = R"(
19  {
20  "version": 3,
21  "operator_codes": [ { "builtin_code": "SUB" } ],
22  "subgraphs": [ {
23  "tensors": [
24  {
25  "shape": )" + inputShape1 + R"(,
26  "type": "UINT8",
27  "buffer": 0,
28  "name": "inputTensor1",
29  "quantization": {
30  "min": [ 0.0 ],
31  "max": [ 255.0 ],
32  "scale": [ 1.0 ],
33  "zero_point": [ 0 ],
34  }
35  },
36  {
37  "shape": )" + inputShape2 + R"(,
38  "type": "UINT8",
39  "buffer": 1,
40  "name": "inputTensor2",
41  "quantization": {
42  "min": [ 0.0 ],
43  "max": [ 255.0 ],
44  "scale": [ 1.0 ],
45  "zero_point": [ 0 ],
46  }
47  },
48  {
49  "shape": )" + outputShape + R"( ,
50  "type": "UINT8",
51  "buffer": 2,
52  "name": "outputTensor",
53  "quantization": {
54  "min": [ 0.0 ],
55  "max": [ 255.0 ],
56  "scale": [ 1.0 ],
57  "zero_point": [ 0 ],
58  }
59  }
60  ],
61  "inputs": [ 0, 1 ],
62  "outputs": [ 2 ],
63  "operators": [
64  {
65  "opcode_index": 0,
66  "inputs": [ 0, 1 ],
67  "outputs": [ 2 ],
68  "builtin_options_type": "SubOptions",
69  "builtin_options": {
70  "fused_activation_function": )" + activation + R"(
71  },
72  "custom_options_format": "FLEXBUFFERS"
73  }
74  ],
75  } ],
76  "buffers" : [
77  { },
78  { }
79  ]
80  }
81  )";
82  Setup();
83  }
84 };
85 
86 
87 struct SimpleSubFixture : SubFixture
88 {
89  SimpleSubFixture() : SubFixture("[ 1, 4 ]",
90  "[ 1, 4 ]",
91  "[ 1, 4 ]") {}
92 };
93 
94 TEST_CASE_FIXTURE(SimpleSubFixture, "SimpleSub")
95 {
96  RunTest<2, armnn::DataType::QAsymmU8>(
97  0,
98  {{"inputTensor1", { 4, 5, 6, 7 }},
99  {"inputTensor2", { 3, 2, 1, 0 }}},
100  {{"outputTensor", { 1, 3, 5, 7 }}});
101 }
102 
103 struct DynamicSubFixture : SubFixture
104 {
105  DynamicSubFixture() : SubFixture("[ 1, 4 ]",
106  "[ 1, 4 ]",
107  "[ ]") {}
108 };
109 
110 TEST_CASE_FIXTURE(DynamicSubFixture, "DynamicSub")
111 {
112  RunTest<2, armnn::DataType::QAsymmU8, armnn::DataType::QAsymmU8>(
113  0,
114  {{"inputTensor1", { 4, 5, 6, 7 }},
115  {"inputTensor2", { 3, 2, 1, 0 }}},
116  {{"outputTensor", { 1, 3, 5, 7 }}},
117  true);
118 }
119 
120 }
+
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
+
void Setup(bool testDynamic=true)
+
+
+
+
+
+ + + + -- cgit v1.2.1