From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- 21.08/_cast_8cpp.xhtml | 150 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 150 insertions(+) create mode 100644 21.08/_cast_8cpp.xhtml (limited to '21.08/_cast_8cpp.xhtml') diff --git a/21.08/_cast_8cpp.xhtml b/21.08/_cast_8cpp.xhtml new file mode 100644 index 0000000000..1919d8f3e3 --- /dev/null +++ b/21.08/_cast_8cpp.xhtml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + +ArmNN: src/armnnTfLiteParser/test/Cast.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
Cast.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Functions

 TEST_SUITE ("TensorflowLiteParser_Cast")
 
+

Function Documentation

+ +

◆ TEST_SUITE()

+ +
+
+ + + + + + + + +
TEST_SUITE ("TensorflowLiteParser_Cast" )
+
+ +

Definition at line 9 of file Cast.cpp.

+ +

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

+
10 {
11 struct CastFixture : public ParserFlatbuffersFixture
12 {
13  explicit CastFixture(const std::string& inputShape,
14  const std::string& outputShape,
15  const std::string& inputDataType,
16  const std::string& outputDataType)
17  {
18  m_JsonString = R"(
19  {
20  "version": 3,
21  "operator_codes": [ { "builtin_code": "CAST" } ],
22  "subgraphs": [ {
23  "tensors": [
24  {
25  "shape": )" + inputShape + R"(,
26  "type": )" + inputDataType + R"(,
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": )" + outputDataType + R"(,
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  "inputs": [ 0 ],
50  "outputs": [ 1 ],
51  "operators": [
52  {
53  "opcode_index": 0,
54  "inputs": [ 0 ],
55  "outputs": [ 1 ],
56  "custom_options_format": "FLEXBUFFERS"
57  }
58  ],
59  } ],
60  "buffers" : [ {}, {} ]
61  }
62  )";
63  SetupSingleInputSingleOutput("inputTensor", "outputTensor");
64  }
65 };
66 
67 struct SimpleCastFixture : CastFixture
68 {
69  SimpleCastFixture() : CastFixture("[ 1, 6 ]",
70  "[ 1, 6 ]",
71  "INT32",
72  "FLOAT32") {}
73 };
74 
75 TEST_CASE_FIXTURE(SimpleCastFixture, "SimpleCast")
76 {
77 RunTest<2, armnn::DataType::Signed32 , armnn::DataType::Float32>(
78 0,
79 {{"inputTensor", { 0, -1, 5, -100, 200, -255 }}},
80 {{"outputTensor", { 0.0f, -1.0f, 5.0f, -100.0f, 200.0f, -255.0f }}});
81 }
82 
83 }
+
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
+
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
+
+
+
+
+
+ + + + -- cgit v1.2.1