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 --- ..._tf_lite_parser_2test_2_shape_8cpp_source.xhtml | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 22.08/armnn_tf_lite_parser_2test_2_shape_8cpp_source.xhtml (limited to '22.08/armnn_tf_lite_parser_2test_2_shape_8cpp_source.xhtml') diff --git a/22.08/armnn_tf_lite_parser_2test_2_shape_8cpp_source.xhtml b/22.08/armnn_tf_lite_parser_2test_2_shape_8cpp_source.xhtml new file mode 100644 index 0000000000..118e4a2b55 --- /dev/null +++ b/22.08/armnn_tf_lite_parser_2test_2_shape_8cpp_source.xhtml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/Shape.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
Shape.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 TEST_SUITE("TensorflowLiteParser_Shape")
9 {
10 struct ShapeFixture : public ParserFlatbuffersFixture
11 {
12  explicit ShapeFixture(const std::string& inputShape,
13  const std::string& outputShape,
14  const std::string& inputDataType,
15  const std::string& outputDataType)
16  {
17  m_JsonString = R"(
18  {
19  "version": 3,
20  "operator_codes": [ { "builtin_code": "SHAPE" } ],
21  "subgraphs": [ {
22  "tensors": [
23  {
24  "shape": )" + inputShape + R"(,
25  "type": )" + inputDataType + R"(,
26  "buffer": 0,
27  "name": "inputTensor",
28  "quantization": {
29  "min": [ 0.0 ],
30  "max": [ 255.0 ],
31  "scale": [ 1.0 ],
32  "zero_point": [ 0 ],
33  }
34  },
35  {
36  "shape": )" + outputShape + R"(,
37  "type": )" + outputDataType + R"(,
38  "buffer": 1,
39  "name": "outputTensor",
40  "quantization": {
41  "min": [ 0.0 ],
42  "max": [ 255.0 ],
43  "scale": [ 1.0 ],
44  "zero_point": [ 0 ],
45  }
46  }
47  ],
48  "inputs": [ 0 ],
49  "outputs": [ 1 ],
50  "operators": [
51  {
52  "opcode_index": 0,
53  "inputs": [ 0 ],
54  "outputs": [ 1 ],
55  "custom_options_format": "FLEXBUFFERS"
56  }
57  ],
58  } ],
59  "buffers" : [ {}, {} ]
60  }
61  )";
62  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
63  }
64 };
65 
66 
67 struct SimpleShapeFixture : ShapeFixture
68 {
69  SimpleShapeFixture() : ShapeFixture("[ 1, 3, 3, 1 ]",
70  "[ 4 ]",
71  "INT32",
72  "INT32") {}
73 };
74 
75 TEST_CASE_FIXTURE(SimpleShapeFixture, "SimpleShapeFixture")
76 {
77  RunTest<1, armnn::DataType::Signed32>(
78  0,
79  {{"inputTensor", { 1, 1, 1, 1, 1, 1, 1, 1, 1 }}},
80  {{"outputTensor",{ 1, 3, 3, 1 }}});
81 }
82 
83 }
+
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
+
TEST_SUITE("OnnxParser_Shape")
Definition: Shape.cpp:10
+ +
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
+
+
+ + + + -- cgit v1.2.1