From d5d43d82c0137e08553e44345c609cdd1a7931c7 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 17 Jun 2022 13:24:58 +0100 Subject: Update Doxygen for 22.05 patch release * Pooling3D added to tfLite delegate * Available in tag 22.05.01 Signed-off-by: Nikhil Raj Change-Id: I8d605bba4e87d30baa2c6d7b338c78a4400dc021 --- ...te_parser_2test_2_space_to_batch_n_d_8cpp.xhtml | 150 +++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 22.05.01/armnn_tf_lite_parser_2test_2_space_to_batch_n_d_8cpp.xhtml (limited to '22.05.01/armnn_tf_lite_parser_2test_2_space_to_batch_n_d_8cpp.xhtml') diff --git a/22.05.01/armnn_tf_lite_parser_2test_2_space_to_batch_n_d_8cpp.xhtml b/22.05.01/armnn_tf_lite_parser_2test_2_space_to_batch_n_d_8cpp.xhtml new file mode 100644 index 0000000000..34e4967072 --- /dev/null +++ b/22.05.01/armnn_tf_lite_parser_2test_2_space_to_batch_n_d_8cpp.xhtml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/SpaceToBatchND.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.05.01 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
SpaceToBatchND.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Functions

 TEST_SUITE ("TensorflowLiteParser_SpaceToBatchND")
 
+

Function Documentation

+ +

◆ TEST_SUITE()

+ +
+
+ + + + + + + + +
TEST_SUITE ("TensorflowLiteParser_SpaceToBatchND" )
+
+ +

Definition at line 9 of file SpaceToBatchND.cpp.

+ +

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

+
10 {
11 struct SpaceToBatchNDFixture : public ParserFlatbuffersFixture
12 {
13  explicit SpaceToBatchNDFixture(const std::string & inputShape,
14  const std::string & outputShape,
15  const std::string & blockShapeData,
16  const std::string & padListData)
17  {
18  m_JsonString = R"(
19  {
20  "version": 3,
21  "operator_codes": [ { "builtin_code": "SPACE_TO_BATCH_ND" } ],
22  "subgraphs": [ {
23  "tensors": [
24  {
25  "shape": )" + inputShape + R"(,
26  "type": "FLOAT32",
27  "buffer": 0,
28  "name": "inputTensor",
29  "quantization": {
30  "min": [ 0.0 ],
31  "max": [ 255.0 ],
32  "scale": [ 1.0 ],
33  "zero_point": [ 0 ],
34  }
35  },
36  {
37  "shape": )" + outputShape + R"(,
38  "type": "FLOAT32",
39  "buffer": 1,
40  "name": "outputTensor",
41  "quantization": {
42  "min": [ 0.0 ],
43  "max": [ 255.0 ],
44  "scale": [ 1.0 ],
45  "zero_point": [ 0 ],
46  }
47  },
48  {
49  "shape": [ 2 ],
50  "type": "INT32",
51  "buffer": 2,
52  "name": "blockShapeTensor",
53  "quantization": {
54  "min": [ 0.0 ],
55  "max": [ 255.0 ],
56  "scale": [ 1.0 ],
57  "zero_point": [ 0 ],
58  }
59  },
60  {
61  "shape": [ 2, 2 ],
62  "type": "INT32",
63  "buffer": 3,
64  "name": "padListTensor",
65  "quantization": {
66  "min": [ 0.0 ],
67  "max": [ 255.0 ],
68  "scale": [ 1.0 ],
69  "zero_point": [ 0 ],
70  }
71  }
72  ],
73  "inputs": [ 0 ],
74  "outputs": [ 1 ],
75  "operators": [
76  {
77  "opcode_index": 0,
78  "inputs": [ 0, 2, 3 ],
79  "outputs": [ 1 ],
80  "custom_options_format": "FLEXBUFFERS"
81  }
82  ],
83  } ],
84  "buffers" : [
85  { },
86  { },
87  { "data": )" + blockShapeData + R"(, },
88  { "data": )" + padListData + R"(, },
89  ]
90  }
91  )";
92  Setup();
93  }
94 };
95 
96 struct SpaceToBatchNDFixtureSimpleTest : public SpaceToBatchNDFixture
97 {
98  SpaceToBatchNDFixtureSimpleTest() : SpaceToBatchNDFixture("[ 1, 4, 4, 1 ]",
99  "[ 4, 2, 2, 1 ]",
100  "[ 2,0,0,0, 2,0,0,0 ]",
101  "[ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 ]") {}
102 };
103 
104 TEST_CASE_FIXTURE(SpaceToBatchNDFixtureSimpleTest, "SpaceToBatchNdSimpleTest")
105 {
106  RunTest<4, armnn::DataType::Float32>
107  (0,
108  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f,
109  5.0f, 6.0f, 7.0f, 8.0f,
110  9.0f, 10.0f, 11.0f, 12.0f,
111  13.0f, 14.0f, 15.0f, 16.0f }}},
112  {{ "outputTensor", { 1.0f, 3.0f, 9.0f, 11.0f,
113  2.0f, 4.0f, 10.0f, 12.0f,
114  5.0f, 7.0f, 13.0f, 15.0f,
115  6.0f, 8.0f, 14.0f, 16.0f }}});
116 }
117 
118 
119 struct SpaceToBatchNDFixtureMultipleInputBatchesTest : public SpaceToBatchNDFixture
120 {
121  SpaceToBatchNDFixtureMultipleInputBatchesTest() : SpaceToBatchNDFixture("[ 2, 2, 4, 1 ]",
122  "[ 8, 1, 2, 1 ]",
123  "[ 2,0,0,0, 2,0,0,0 ]",
124  "[ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0 ]") {}
125 };
126 
127 TEST_CASE_FIXTURE(SpaceToBatchNDFixtureMultipleInputBatchesTest, "SpaceToBatchNdMultipleInputBatchesTest")
128 {
129  RunTest<4, armnn::DataType::Float32>
130  (0,
131  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f,
132  5.0f, 6.0f, 7.0f, 8.0f,
133  9.0f, 10.0f, 11.0f, 12.0f,
134  13.0f, 14.0f, 15.0f, 16.0f }}},
135  {{ "outputTensor", { 1.0f, 3.0f, 9.0f, 11.0f,
136  2.0f, 4.0f, 10.0f, 12.0f,
137  5.0f, 7.0f, 13.0f, 15.0f,
138  6.0f, 8.0f, 14.0f, 16.0f }}});
139 }
140 
141 struct SpaceToBatchNDFixturePaddingTest : public SpaceToBatchNDFixture
142 {
143  SpaceToBatchNDFixturePaddingTest() : SpaceToBatchNDFixture("[ 1, 5, 2, 1 ]",
144  "[ 6, 2, 2, 1 ]",
145  "[ 3,0,0,0, 2,0,0,0 ]",
146  "[ 1,0,0,0, 0,0,0,0, 2,0,0,0, 0,0,0,0 ]") {}
147 };
148 
149 TEST_CASE_FIXTURE(SpaceToBatchNDFixturePaddingTest, "SpaceToBatchNdPaddingTest")
150 {
151  RunTest<4, armnn::DataType::Float32>
152  (0,
153  {{ "inputTensor", { 1.0f, 2.0f, 3.0f, 4.0f, 5.0f,
154  6.0f, 7.0f, 8.0f, 9.0f, 10.0f }}},
155  {{ "outputTensor", { 0.0f, 0.0f,
156  0.0f, 5.0f,
157 
158  0.0f, 0.0f,
159  0.0f, 6.0f,
160 
161  0.0f, 1.0f,
162  0.0f, 7.0f,
163 
164  0.0f, 2.0f,
165  0.0f, 8.0f,
166 
167  0.0f, 3.0f,
168  0.0f, 9.0f,
169 
170  0.0f, 4.0f,
171  0.0f, 10.0f, }}});
172 }
173 
174 }
+
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
+
void Setup(bool testDynamic=true)
+
+
+
+
+
+ + + + -- cgit v1.2.1