From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- 22.02/_deserialize_transpose_8cpp.xhtml | 152 ++++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 22.02/_deserialize_transpose_8cpp.xhtml (limited to '22.02/_deserialize_transpose_8cpp.xhtml') diff --git a/22.02/_deserialize_transpose_8cpp.xhtml b/22.02/_deserialize_transpose_8cpp.xhtml new file mode 100644 index 0000000000..4d0ff0eb61 --- /dev/null +++ b/22.02/_deserialize_transpose_8cpp.xhtml @@ -0,0 +1,152 @@ + + + + + + + + + + + + + +ArmNN: src/armnnDeserializer/test/DeserializeTranspose.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
DeserializeTranspose.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Functions

 TEST_SUITE ("Deserializer_Transpose")
 
+

Function Documentation

+ +

◆ TEST_SUITE()

+ +
+
+ + + + + + + + +
TEST_SUITE ("Deserializer_Transpose" )
+
+ +

Definition at line 11 of file DeserializeTranspose.cpp.

+ +

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

+
12 {
13 struct TransposeFixture : public ParserFlatbuffersSerializeFixture
14 {
15  explicit TransposeFixture(const std::string &inputShape,
16  const std::string &dimMappings,
17  const std::string &outputShape,
18  const std::string &dataType)
19  {
20  m_JsonString = R"(
21  {
22  inputIds: [0],
23  outputIds: [2],
24  layers: [
25  {
26  layer_type: "InputLayer",
27  layer: {
28  base: {
29  layerBindingId: 0,
30  base: {
31  index: 0,
32  layerName: "InputLayer",
33  layerType: "Input",
34  inputSlots: [{
35  index: 0,
36  connection: {sourceLayerIndex:0, outputSlotIndex:0 },
37  }],
38  outputSlots: [{
39  index: 0,
40  tensorInfo: {
41  dimensions: )" + inputShape + R"(,
42  dataType: )" + dataType + R"(
43  }
44  }]
45  }
46  }
47  }
48  },
49  {
50  layer_type: "TransposeLayer",
51  layer: {
52  base: {
53  index: 1,
54  layerName: "TransposeLayer",
55  layerType: "Transpose",
56  inputSlots: [{
57  index: 0,
58  connection: {sourceLayerIndex:0, outputSlotIndex:0 },
59  }],
60  outputSlots: [{
61  index: 0,
62  tensorInfo: {
63  dimensions: )" + outputShape + R"(,
64  dataType: )" + dataType + R"(
65  }
66  }]
67  },
68  descriptor: {
69  dimMappings: )" + dimMappings + R"(,
70  }
71  }
72  },
73  {
74  layer_type: "OutputLayer",
75  layer: {
76  base:{
77  layerBindingId: 2,
78  base: {
79  index: 2,
80  layerName: "OutputLayer",
81  layerType: "Output",
82  inputSlots: [{
83  index: 0,
84  connection: {sourceLayerIndex:1, outputSlotIndex:0 },
85  }],
86  outputSlots: [{
87  index: 0,
88  tensorInfo: {
89  dimensions: )" + outputShape + R"(,
90  dataType: )" + dataType + R"(
91  },
92  }],
93  }
94  }
95  },
96  }
97  ]
98  }
99  )";
100  SetupSingleInputSingleOutput("InputLayer", "OutputLayer");
101  }
102 };
103 
104 struct SimpleTranspose2DFixture : TransposeFixture
105 {
106  SimpleTranspose2DFixture() : TransposeFixture("[ 2, 3 ]",
107  "[ 1, 0 ]",
108  "[ 3, 2 ]",
109  "QuantisedAsymm8") {}
110 };
111 
112 TEST_CASE_FIXTURE(SimpleTranspose2DFixture, "SimpleTranspose2DQuantisedAsymm8")
113 {
114  RunTest<2, armnn::DataType::QAsymmU8>(0,
115  { 1, 2, 3, 4, 5, 6 },
116  { 1, 4, 2, 5, 3, 6 });
117 }
118 
119 struct SimpleTranspose4DFixture : TransposeFixture
120 {
121  SimpleTranspose4DFixture() : TransposeFixture("[ 1, 2, 3, 4 ]",
122  "[ 3, 2, 1, 0 ]",
123  "[ 4, 3, 2, 1 ]",
124  "QuantisedAsymm8") {}
125 };
126 
127 TEST_CASE_FIXTURE(SimpleTranspose4DFixture, "SimpleTranspose4DQuantisedAsymm8")
128 {
129  RunTest<4, armnn::DataType::QAsymmU8>(0,
130  { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
131  13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 },
132  { 1, 13, 5, 17, 9, 21, 2, 14, 6, 18, 10, 22,
133  3, 15, 7, 19, 11, 23, 4, 16, 8, 20, 12, 24 });
134 }
135 
136 }
void SetupSingleInputSingleOutput(const std::string &inputName, const std::string &outputName)
+
TEST_CASE_FIXTURE(ClContextControlFixture, "CopyBetweenNeonAndGpu")
+ +
+
+
+
+
+ + + + -- cgit v1.2.1