From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_data_layout_indexed_8cpp_source.xhtml | 124 +++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 21.02/_data_layout_indexed_8cpp_source.xhtml (limited to '21.02/_data_layout_indexed_8cpp_source.xhtml') diff --git a/21.02/_data_layout_indexed_8cpp_source.xhtml b/21.02/_data_layout_indexed_8cpp_source.xhtml new file mode 100644 index 0000000000..f348749e0b --- /dev/null +++ b/21.02/_data_layout_indexed_8cpp_source.xhtml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + +ArmNN: src/armnnUtils/DataLayoutIndexed.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
DataLayoutIndexed.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 using namespace armnn;
9 
10 namespace armnnUtils
11 {
12 
14  : m_DataLayout(dataLayout)
15 {
16  switch (dataLayout)
17  {
19  m_ChannelsIndex = 3;
20  m_HeightIndex = 1;
21  m_WidthIndex = 2;
22  break;
24  m_ChannelsIndex = 1;
25  m_HeightIndex = 2;
26  m_WidthIndex = 3;
27  break;
28  default:
29  throw armnn::InvalidArgumentException("Unknown DataLayout value: " +
30  std::to_string(static_cast<int>(dataLayout)));
31  }
32 }
33 
34 bool operator==(const DataLayout& dataLayout, const DataLayoutIndexed& indexed)
35 {
36  return dataLayout == indexed.GetDataLayout();
37 }
38 
39 bool operator==(const DataLayoutIndexed& indexed, const DataLayout& dataLayout)
40 {
41  return indexed.GetDataLayout() == dataLayout;
42 }
43 
44 } // namespace armnnUtils
+
DataLayout
Definition: Types.hpp:50
+
Copyright (c) 2021 ARM Limited and Contributors.
+
bool operator==(const armnn::DataLayout &dataLayout, const DataLayoutIndexed &indexed)
Equality methods.
+
DataLayoutIndexed(armnn::DataLayout dataLayout)
+
Provides access to the appropriate indexes for Channels, Height and Width based on DataLayout...
+
armnn::DataLayout GetDataLayout() const
+ + + + +
+
+ + + + -- cgit v1.2.1