1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
6 <meta name="generator" content="Doxygen 1.8.13"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>ArmNN: armnnUtils Namespace Reference</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="navtree.css" rel="stylesheet" type="text/css"/>
13 <script type="text/javascript" src="resize.js"></script>
14 <script type="text/javascript" src="navtreedata.js"></script>
15 <script type="text/javascript" src="navtree.js"></script>
16 <script type="text/javascript">
17 $(document).ready(initResizable);
19 <link href="search/search.css" rel="stylesheet" type="text/css"/>
20 <script type="text/javascript" src="search/searchdata.js"></script>
21 <script type="text/javascript" src="search/search.js"></script>
22 <link href="doxygen.css" rel="stylesheet" type="text/css" />
25 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
27 <table cellspacing="0" cellpadding="0">
29 <tr style="height: 56px;">
30 <td id="projectalign" style="padding-left: 0.5em;">
31 <div id="projectname">ArmNN
32  <span id="projectnumber">NotReleased</span>
39 <!-- end header part -->
40 <!-- Generated by Doxygen 1.8.13 -->
41 <script type="text/javascript">
42 var searchBox = new SearchBox("searchBox", "search",false,'Search');
44 <script type="text/javascript" src="menudata.js"></script>
45 <script type="text/javascript" src="menu.js"></script>
46 <script type="text/javascript">
48 initMenu('',true,false,'search.php','Search');
49 $(document).ready(function() { init_search(); });
52 <div id="main-nav"></div>
54 <div id="side-nav" class="ui-resizable side-nav-resizable">
56 <div id="nav-tree-contents">
57 <div id="nav-sync" class="sync"></div>
60 <div id="splitbar" style="-moz-user-select:none;"
61 class="ui-resizable-handle">
64 <script type="text/javascript">
65 $(document).ready(function(){initNavTree('namespacearmnn_utils.html','');});
67 <div id="doc-content">
68 <!-- window showing the filter options -->
69 <div id="MSearchSelectWindow"
70 onmouseover="return searchBox.OnSearchSelectShow()"
71 onmouseout="return searchBox.OnSearchSelectHide()"
72 onkeydown="return searchBox.OnSearchSelectKey(event)">
75 <!-- iframe showing the search results (closed by default) -->
76 <div id="MSearchResultsWindow">
77 <iframe src="javascript:void(0)" frameborder="0"
78 name="MSearchResults" id="MSearchResults">
84 <a href="#namespaces">Namespaces</a> |
85 <a href="#nested-classes">Classes</a> |
86 <a href="#typedef-members">Typedefs</a> |
87 <a href="#func-members">Functions</a> |
88 <a href="#var-members">Variables</a> </div>
89 <div class="headertitle">
90 <div class="title">armnnUtils Namespace Reference</div> </div>
92 <div class="contents">
93 <table class="memberdecls">
94 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
95 Namespaces</h2></td></tr>
96 <tr class="memitem:namespacearmnn_utils_1_1_filesystem"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils_1_1_filesystem.html">Filesystem</a></td></tr>
97 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
98 <tr class="memitem:namespacearmnn_utils_1_1_processes"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils_1_1_processes.html">Processes</a></td></tr>
99 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
100 <tr class="memitem:namespacearmnn_utils_1_1_sockets"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils_1_1_sockets.html">Sockets</a></td></tr>
101 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
102 </table><table class="memberdecls">
103 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
104 Classes</h2></td></tr>
105 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_utils_1_1_csv_reader.html">CsvReader</a></td></tr>
106 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
107 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_csv_row.html">CsvRow</a></td></tr>
108 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
109 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a></td></tr>
110 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
111 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_utils_1_1_floating_point_converter.html">FloatingPointConverter</a></td></tr>
112 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
113 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_is_floating_point_iterator.html">IsFloatingPointIterator</a></td></tr>
114 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
115 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_utils_1_1_model_accuracy_checker.html">ModelAccuracyChecker</a></td></tr>
116 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
117 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_parser_prototxt_fixture.html">ParserPrototxtFixture</a></td></tr>
118 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
119 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_selective_quantizer.html">SelectiveQuantizer</a></td></tr>
120 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
121 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_selective_quantizer_3_01armnn_1_1_half_00_01false_01_4.html">SelectiveQuantizer< armnn::Half, false ></a></td></tr>
122 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
123 <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structarmnn_utils_1_1_selective_quantizer_3_01_t_00_01false_01_4.html">SelectiveQuantizer< T, false ></a></td></tr>
124 <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
125 </table><table class="memberdecls">
126 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
127 Typedefs</h2></td></tr>
128 <tr class="memitem:ab175d8bf2482d5a39c2331d1f0ddcece"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ab175d8bf2482d5a39c2331d1f0ddcece">LabelCategoryNames</a> = std::vector< std::string ></td></tr>
129 <tr class="separator:ab175d8bf2482d5a39c2331d1f0ddcece"><td class="memSeparator" colspan="2"> </td></tr>
130 </table><table class="memberdecls">
131 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
132 Functions</h2></td></tr>
133 <tr class="memitem:a49ba5984d8cde4299d8ef15c9e556587"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a49ba5984d8cde4299d8ef15c9e556587">operator==</a> (const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> &dataLayout, const <a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> &indexed)</td></tr>
134 <tr class="separator:a49ba5984d8cde4299d8ef15c9e556587"><td class="memSeparator" colspan="2"> </td></tr>
135 <tr class="memitem:a0448088ed94f810bd2464f3afd1859f0"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a0448088ed94f810bd2464f3afd1859f0">operator==</a> (const <a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> &indexed, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> &dataLayout)</td></tr>
136 <tr class="separator:a0448088ed94f810bd2464f3afd1859f0"><td class="memSeparator" colspan="2"> </td></tr>
137 <tr class="memitem:abeaf4f6785039866fd075f4569ba8e84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">Permuted</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> &srcShape, const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> &mappings)</td></tr>
138 <tr class="separator:abeaf4f6785039866fd075f4569ba8e84"><td class="memSeparator" colspan="2"> </td></tr>
139 <tr class="memitem:a2ba6f6f40c7382b61b00ac02f961ba22"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a2ba6f6f40c7382b61b00ac02f961ba22">Permuted</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &info, const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> &mappings)</td></tr>
140 <tr class="separator:a2ba6f6f40c7382b61b00ac02f961ba22"><td class="memSeparator" colspan="2"> </td></tr>
141 <tr class="memitem:af3c74017185773dd61d8ca6662d65d43"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#af3c74017185773dd61d8ca6662d65d43">Permute</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> &dstShape, const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> &mappings, const void *src, void *dst, size_t dataTypeSize)</td></tr>
142 <tr class="separator:af3c74017185773dd61d8ca6662d65d43"><td class="memSeparator" colspan="2"> </td></tr>
143 <tr class="memitem:ab53d94ea22b51c6bcdf9584644bd67bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ab53d94ea22b51c6bcdf9584644bd67bb">GetTensorShape</a> (unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout)</td></tr>
144 <tr class="separator:ab53d94ea22b51c6bcdf9584644bd67bb"><td class="memSeparator" colspan="2"> </td></tr>
145 <tr class="memitem:acee63cd08da47910fc166a1990988fa8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#acee63cd08da47910fc166a1990988fa8">GetTensorInfo</a> (unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> dataLayout, const <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> dataType)</td></tr>
146 <tr class="separator:acee63cd08da47910fc166a1990988fa8"><td class="memSeparator" colspan="2"> </td></tr>
147 <tr class="memitem:a1c9097ab13afc54b48c503c6487aaee1"><td class="memItemLeft" align="right" valign="top">std::pair< float, float > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a1c9097ab13afc54b48c503c6487aaee1">FindMinMax</a> (<a class="el" href="classarmnn_1_1_i_tensor_handle.html">armnn::ITensorHandle</a> *tensorHandle)</td></tr>
148 <tr class="separator:a1c9097ab13afc54b48c503c6487aaee1"><td class="memSeparator" colspan="2"> </td></tr>
149 <tr class="memitem:a0d3b1be320610515e0cac8d745d9f8c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a0d3b1be320610515e0cac8d745d9f8c2">ExpandDims</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> &tensorShape, int axis)</td></tr>
150 <tr class="separator:a0d3b1be320610515e0cac8d745d9f8c2"><td class="memSeparator" colspan="2"> </td></tr>
151 <tr class="memitem:af57864f5e03358d14c2988edae912b8b"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#af57864f5e03358d14c2988edae912b8b">GetNumElementsBetween</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> &shape, unsigned int firstAxisInclusive, unsigned int lastAxisExclusive)</td></tr>
152 <tr class="separator:af57864f5e03358d14c2988edae912b8b"><td class="memSeparator" colspan="2"> </td></tr>
153 <tr class="memitem:ac93cb1365b4bcb67df2a3164606096c5"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ac93cb1365b4bcb67df2a3164606096c5">GetUnsignedAxis</a> (const unsigned int inputDimension, const int axis)</td></tr>
154 <tr class="separator:ac93cb1365b4bcb67df2a3164606096c5"><td class="memSeparator" colspan="2"> </td></tr>
155 <tr class="memitem:a276aac5f7a8bdc3db4f62203870ca13b"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a276aac5f7a8bdc3db4f62203870ca13b">GetNumElementsAfter</a> (const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> &shape, unsigned int axis)</td></tr>
156 <tr class="separator:a276aac5f7a8bdc3db4f62203870ca13b"><td class="memSeparator" colspan="2"> </td></tr>
157 <tr class="memitem:a1826e433f7e6817976a8175b4ef8296c"><td class="memItemLeft" align="right" valign="top">std::pair< unsigned int, std::vector< float > > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a1826e433f7e6817976a8175b4ef8296c">GetPerAxisParams</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &info)</td></tr>
158 <tr class="separator:a1826e433f7e6817976a8175b4ef8296c"><td class="memSeparator" colspan="2"> </td></tr>
159 <tr class="memitem:aed9a30e912d18171e93fcf58e0f219cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_utils_1_1_csv_row.html">CsvRow</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#aed9a30e912d18171e93fcf58e0f219cb">ParseLine</a> (const std::string &csvLine)</td></tr>
160 <tr class="separator:aed9a30e912d18171e93fcf58e0f219cb"><td class="memSeparator" colspan="2"> </td></tr>
161 <tr class="memitem:a662b45b5a4d48a01e967c0b28b6a552b"><td class="memTemplParams" colspan="2">template<typename TNodeId , typename TTargetNodes > </td></tr>
162 <tr class="memitem:a662b45b5a4d48a01e967c0b28b6a552b"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a662b45b5a4d48a01e967c0b28b6a552b">GraphTopologicalSort</a> (const TTargetNodes &targetNodes, std::function< std::vector< TNodeId >(TNodeId)> getIncomingEdges, std::vector< TNodeId > &outSorted)</td></tr>
163 <tr class="separator:a662b45b5a4d48a01e967c0b28b6a552b"><td class="memSeparator" colspan="2"> </td></tr>
164 <tr class="memitem:a71164960978af8b3820717bc92b9a322"><td class="memItemLeft" align="right" valign="top">std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a71164960978af8b3820717bc92b9a322">SplitBy</a> (const std::string &originalString, const std::string &delimiter, bool includeEmptyToken)</td></tr>
165 <tr class="separator:a71164960978af8b3820717bc92b9a322"><td class="memSeparator" colspan="2"> </td></tr>
166 <tr class="memitem:a24f7c8ffa12c4c91bc2cecd4d329add4"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a24f7c8ffa12c4c91bc2cecd4d329add4">Strip</a> (const std::string &originalString, const std::string &characterSet)</td></tr>
167 <tr class="separator:a24f7c8ffa12c4c91bc2cecd4d329add4"><td class="memSeparator" colspan="2"> </td></tr>
168 <tr class="memitem:a523deabeb7d0a884028b35eebfd1cb6c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a523deabeb7d0a884028b35eebfd1cb6c">ProcessConcatInputTensorInfo</a> (<a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &inputTensorInfo, <a class="el" href="structarmnn_1_1_origins_descriptor.html">armnn::OriginsDescriptor</a> &concatDescriptor, const unsigned int &concatAxis, unsigned int inputIndex, unsigned int &mergeDimOrigin)</td></tr>
169 <tr class="separator:a523deabeb7d0a884028b35eebfd1cb6c"><td class="memSeparator" colspan="2"> </td></tr>
170 <tr class="memitem:aac34adc5b96d744ae53eac580213f855"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#aac34adc5b96d744ae53eac580213f855">CalculateReducedOutputTensoInfo</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &inputTensorInfo, const std::set< unsigned int > &axisSet, bool keepDims, <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &outputTensorInfo)</td></tr>
171 <tr class="memdesc:aac34adc5b96d744ae53eac580213f855"><td class="mdescLeft"> </td><td class="mdescRight">Creates a tensor info after reducing the dimensions mentioned in axisData. <a href="#aac34adc5b96d744ae53eac580213f855">More...</a><br /></td></tr>
172 <tr class="separator:aac34adc5b96d744ae53eac580213f855"><td class="memSeparator" colspan="2"> </td></tr>
173 <tr class="memitem:a9300450bab29bb951d6f8755b7d9d3a8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a9300450bab29bb951d6f8755b7d9d3a8">CalculateStridedSliceOutputTensorInfo</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &inputTensorInfo, const <a class="el" href="structarmnn_1_1_strided_slice_descriptor.html">armnn::StridedSliceDescriptor</a> &desc, <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &outputTensorInfo)</td></tr>
174 <tr class="memdesc:a9300450bab29bb951d6f8755b7d9d3a8"><td class="mdescLeft"> </td><td class="mdescRight">Create output tensor info for a StridedSlice operator. <a href="#a9300450bab29bb951d6f8755b7d9d3a8">More...</a><br /></td></tr>
175 <tr class="separator:a9300450bab29bb951d6f8755b7d9d3a8"><td class="memSeparator" colspan="2"> </td></tr>
176 <tr class="memitem:ab4a89c3d0ff243bdabae3e404248d04a"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ab4a89c3d0ff243bdabae3e404248d04a">ConvertInt32ToOctalString</a> (int value)</td></tr>
177 <tr class="memdesc:ab4a89c3d0ff243bdabae3e404248d04a"><td class="mdescLeft"> </td><td class="mdescRight">Converts an int value into the Prototxt octal representation. <a href="#ab4a89c3d0ff243bdabae3e404248d04a">More...</a><br /></td></tr>
178 <tr class="separator:ab4a89c3d0ff243bdabae3e404248d04a"><td class="memSeparator" colspan="2"> </td></tr>
179 <tr class="memitem:a21b249bca87a5ad47359abd9ec7acada"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
180 <tr class="memitem:a21b249bca87a5ad47359abd9ec7acada"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a21b249bca87a5ad47359abd9ec7acada">SelectiveQuantize</a> (float value, float scale, int32_t offset)</td></tr>
181 <tr class="separator:a21b249bca87a5ad47359abd9ec7acada"><td class="memSeparator" colspan="2"> </td></tr>
182 <tr class="memitem:a5135dc1ce7a8aeb97623c1a92c5a3543"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
183 <tr class="memitem:a5135dc1ce7a8aeb97623c1a92c5a3543"><td class="memTemplItemLeft" align="right" valign="top">float </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a5135dc1ce7a8aeb97623c1a92c5a3543">SelectiveDequantize</a> (T value, float scale, int32_t offset)</td></tr>
184 <tr class="separator:a5135dc1ce7a8aeb97623c1a92c5a3543"><td class="memSeparator" colspan="2"> </td></tr>
185 <tr class="memitem:afb0aab92dc5b9bc5d7ebe2ea036f3809"><td class="memTemplParams" colspan="2">template<typename T , typename FloatIt , typename std::enable_if< IsFloatingPointIterator< FloatIt >::value, int >::type = 0> </td></tr>
186 <tr class="memitem:afb0aab92dc5b9bc5d7ebe2ea036f3809"><td class="memTemplItemLeft" align="right" valign="top">std::vector< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#afb0aab92dc5b9bc5d7ebe2ea036f3809">QuantizedVector</a> (FloatIt first, FloatIt last, float qScale, int32_t qOffset)</td></tr>
187 <tr class="separator:afb0aab92dc5b9bc5d7ebe2ea036f3809"><td class="memSeparator" colspan="2"> </td></tr>
188 <tr class="memitem:ad10541679f7d9740ba7a3c96b9843456"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
189 <tr class="memitem:ad10541679f7d9740ba7a3c96b9843456"><td class="memTemplItemLeft" align="right" valign="top">std::vector< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ad10541679f7d9740ba7a3c96b9843456">QuantizedVector</a> (const std::vector< float > &array, float qScale=1.f, int32_t qOffset=0)</td></tr>
190 <tr class="separator:ad10541679f7d9740ba7a3c96b9843456"><td class="memSeparator" colspan="2"> </td></tr>
191 <tr class="memitem:af29a7b903bf7ae9639ea29bc05ccb289"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
192 <tr class="memitem:af29a7b903bf7ae9639ea29bc05ccb289"><td class="memTemplItemLeft" align="right" valign="top">std::vector< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#af29a7b903bf7ae9639ea29bc05ccb289">QuantizedVector</a> (std::initializer_list< float > array, float qScale=1.f, int32_t qOffset=0)</td></tr>
193 <tr class="separator:af29a7b903bf7ae9639ea29bc05ccb289"><td class="memSeparator" colspan="2"> </td></tr>
194 <tr class="memitem:ad5310a199d4969927169ed084b1f6c28"><td class="memTemplParams" colspan="2">template<typename TContainer > </td></tr>
195 <tr class="memitem:ad5310a199d4969927169ed084b1f6c28"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ad5310a199d4969927169ed084b1f6c28">MakeInputTensors</a> (const std::vector< <a class="el" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> > &inputBindings, const std::vector< <a class="el" href="namespacearmnn.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a> > &inputDataContainers)</td></tr>
196 <tr class="separator:ad5310a199d4969927169ed084b1f6c28"><td class="memSeparator" colspan="2"> </td></tr>
197 <tr class="memitem:ad4efd5a7fa660df5246466d83517220d"><td class="memTemplParams" colspan="2">template<typename TContainer > </td></tr>
198 <tr class="memitem:ad4efd5a7fa660df5246466d83517220d"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ad4efd5a7fa660df5246466d83517220d">MakeOutputTensors</a> (const std::vector< <a class="el" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> > &outputBindings, std::vector< <a class="el" href="namespacearmnn.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a> > &outputDataContainers)</td></tr>
199 <tr class="separator:ad4efd5a7fa660df5246466d83517220d"><td class="memSeparator" colspan="2"> </td></tr>
200 <tr class="memitem:a97dc68ae76f04b81c833184724836c9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a97dc68ae76f04b81c833184724836c9a">CheckValidSize</a> (std::initializer_list< size_t > validInputCounts, size_t actualValue, const char *validExpr, const char *actualExpr, const <a class="el" href="structarmnn_1_1_check_location.html">CheckLocation</a> &location)</td></tr>
201 <tr class="separator:a97dc68ae76f04b81c833184724836c9a"><td class="memSeparator" colspan="2"> </td></tr>
202 <tr class="memitem:ab075020544612cd151ebdd08db537396"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#ab075020544612cd151ebdd08db537396">NonNegative</a> (const char *expr, int32_t value, const <a class="el" href="structarmnn_1_1_check_location.html">CheckLocation</a> &location)</td></tr>
203 <tr class="separator:ab075020544612cd151ebdd08db537396"><td class="memSeparator" colspan="2"> </td></tr>
204 <tr class="memitem:a2e0aa273755368a1bf5fc65102df4a92"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a2e0aa273755368a1bf5fc65102df4a92">VerifyInt32</a> (const char *expr, int64_t value, const <a class="el" href="structarmnn_1_1_check_location.html">armnn::CheckLocation</a> &location)</td></tr>
205 <tr class="separator:a2e0aa273755368a1bf5fc65102df4a92"><td class="memSeparator" colspan="2"> </td></tr>
206 </table><table class="memberdecls">
207 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
208 Variables</h2></td></tr>
209 <tr class="memitem:a12124184ac6aec018beb98b9715330c7"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a12124184ac6aec018beb98b9715330c7">NHWCToArmNN</a> = { 0, 2, 3, 1 }</td></tr>
210 <tr class="separator:a12124184ac6aec018beb98b9715330c7"><td class="memSeparator" colspan="2"> </td></tr>
211 <tr class="memitem:a59cbccbfbae7633020d200f8c23fe69e"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.html#a59cbccbfbae7633020d200f8c23fe69e">ArmNNToNHWC</a> = { 0, 3, 1, 2 }</td></tr>
212 <tr class="separator:a59cbccbfbae7633020d200f8c23fe69e"><td class="memSeparator" colspan="2"> </td></tr>
214 <h2 class="groupheader">Typedef Documentation</h2>
215 <a id="ab175d8bf2482d5a39c2331d1f0ddcece"></a>
216 <h2 class="memtitle"><span class="permalink"><a href="#ab175d8bf2482d5a39c2331d1f0ddcece">◆ </a></span>LabelCategoryNames</h2>
218 <div class="memitem">
219 <div class="memproto">
220 <table class="memname">
222 <td class="memname">using <a class="el" href="namespacearmnn_utils.html#ab175d8bf2482d5a39c2331d1f0ddcece">LabelCategoryNames</a> = std::vector<std::string></td>
225 </div><div class="memdoc">
227 <p class="definition">Definition at line <a class="el" href="_model_accuracy_checker_8hpp_source.html#l00025">25</a> of file <a class="el" href="_model_accuracy_checker_8hpp_source.html">ModelAccuracyChecker.hpp</a>.</p>
231 <h2 class="groupheader">Function Documentation</h2>
232 <a id="aac34adc5b96d744ae53eac580213f855"></a>
233 <h2 class="memtitle"><span class="permalink"><a href="#aac34adc5b96d744ae53eac580213f855">◆ </a></span>CalculateReducedOutputTensoInfo()</h2>
235 <div class="memitem">
236 <div class="memproto">
237 <table class="memname">
239 <td class="memname">void CalculateReducedOutputTensoInfo </td>
241 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
242 <td class="paramname"><em>inputTensorInfo</em>, </td>
245 <td class="paramkey"></td>
247 <td class="paramtype">const std::set< unsigned int > & </td>
248 <td class="paramname"><em>axisSet</em>, </td>
251 <td class="paramkey"></td>
253 <td class="paramtype">bool </td>
254 <td class="paramname"><em>keepDims</em>, </td>
257 <td class="paramkey"></td>
259 <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
260 <td class="paramname"><em>outputTensorInfo</em> </td>
268 </div><div class="memdoc">
270 <p>Creates a tensor info after reducing the dimensions mentioned in axisData. </p>
272 <p class="definition">Definition at line <a class="el" href="_parser_helper_8cpp_source.html#l00054">54</a> of file <a class="el" href="_parser_helper_8cpp_source.html">ParserHelper.cpp</a>.</p>
274 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_tensor_8hpp_source.html#l00092">TensorInfo::GetNumDimensions()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>.</p>
276 <p class="reference">Referenced by <a class="el" href="_parser_helper_test_8cpp_source.html#l00019">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_tf_parser_8cpp_source.html#l02414">armnnTfParser::OutputShapeOfSqueeze()</a>.</p>
277 <div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  std::vector<unsigned int> outputShapeVector;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">bool</span> dimensionFound = <span class="keyword">false</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> size = 1;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); ++i)</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  {</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  dimensionFound = <span class="keyword">false</span>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> axis: axisSet)</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (axis == i)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  dimensionFound = <span class="keyword">true</span>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">if</span> (!dimensionFound)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  size *= inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[i];</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">if</span> (keepDims)</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  outputShapeVector.push_back(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[i]);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordflow">if</span> (keepDims)</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  {</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  outputShapeVector.push_back(1);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  }</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordflow">if</span> (keepDims)</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> outputTensorShape(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(), &outputShapeVector[0]);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  outputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(outputTensorShape, inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>());</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  outputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>({size}, inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>());</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorInfo::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00092">Tensor.hpp:92</a></div></div>
278 <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div>
279 <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
280 <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div>
281 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
282 </div><!-- fragment -->
285 <a id="a9300450bab29bb951d6f8755b7d9d3a8"></a>
286 <h2 class="memtitle"><span class="permalink"><a href="#a9300450bab29bb951d6f8755b7d9d3a8">◆ </a></span>CalculateStridedSliceOutputTensorInfo()</h2>
288 <div class="memitem">
289 <div class="memproto">
290 <table class="memname">
292 <td class="memname">void CalculateStridedSliceOutputTensorInfo </td>
294 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
295 <td class="paramname"><em>inputTensorInfo</em>, </td>
298 <td class="paramkey"></td>
300 <td class="paramtype">const <a class="el" href="structarmnn_1_1_strided_slice_descriptor.html">armnn::StridedSliceDescriptor</a> & </td>
301 <td class="paramname"><em>desc</em>, </td>
304 <td class="paramkey"></td>
306 <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
307 <td class="paramname"><em>outputTensorInfo</em> </td>
315 </div><div class="memdoc">
317 <p>Create output tensor info for a StridedSlice operator. </p>
319 <p class="definition">Definition at line <a class="el" href="_parser_helper_8cpp_source.html#l00105">105</a> of file <a class="el" href="_parser_helper_8cpp_source.html">ParserHelper.cpp</a>.</p>
321 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_tensor_8hpp_source.html#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00358">StridedSliceDescriptor::GetStartForAxis()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00385">StridedSliceDescriptor::GetStopForAxis()</a>, <a class="el" href="_descriptors_8hpp_source.html#l01054">StridedSliceDescriptor::m_ShrinkAxisMask</a>, and <a class="el" href="_descriptors_8hpp_source.html#l01045">StridedSliceDescriptor::m_Stride</a>.</p>
323 <p class="reference">Referenced by <a class="el" href="_tf_parser_8cpp_source.html#l02414">armnnTfParser::OutputShapeOfSqueeze()</a>.</p>
324 <div class="fragment"><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> {</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a>& inputShape = inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>();</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  std::vector<unsigned int> outputShapeVector;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); i++)</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  {</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (desc.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a6d0384878432cfc9652b7ae8bc59506f">m_ShrinkAxisMask</a> & (1 << i))</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">continue</span>;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">int</span> stride = desc.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a0d53caff836b84204adbd1c28752a201">m_Stride</a>[i];</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">int</span> start = desc.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#add849c1188ee7ff60774755b746aa526">GetStartForAxis</a>(inputShape, i);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordtype">int</span> stop = desc.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#afc4731b55776f71af1e14c799c6e6e2c">GetStopForAxis</a>(inputShape, i, start);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordtype">int</span> newSize = stride > 0 ? ((stop - start) + stride - 1) / stride :</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  ((start - stop) - stride - 1) / -stride;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  newSize = std::max(0, newSize);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  outputShapeVector.push_back(static_cast<unsigned int>(newSize));</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> outputTensorShape(inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(), &outputShapeVector[0]);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  outputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(<a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a>(outputTensorShape), inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>());</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> }</div><div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_afc4731b55776f71af1e14c799c6e6e2c"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#afc4731b55776f71af1e14c799c6e6e2c">armnn::StridedSliceDescriptor::GetStopForAxis</a></div><div class="ttdeci">int GetStopForAxis(const TensorShape &inputShape, unsigned int axis, int startForAxis) const</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00385">Descriptors.cpp:385</a></div></div>
325 <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a0d53caff836b84204adbd1c28752a201"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a0d53caff836b84204adbd1c28752a201">armnn::StridedSliceDescriptor::m_Stride</a></div><div class="ttdeci">std::vector< int > m_Stride</div><div class="ttdoc">Stride values for the input that will be sliced. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01045">Descriptors.hpp:1045</a></div></div>
326 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorInfo::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00092">Tensor.hpp:92</a></div></div>
327 <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div>
328 <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
329 <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div>
330 <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a6d0384878432cfc9652b7ae8bc59506f"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a6d0384878432cfc9652b7ae8bc59506f">armnn::StridedSliceDescriptor::m_ShrinkAxisMask</a></div><div class="ttdeci">int32_t m_ShrinkAxisMask</div><div class="ttdoc">Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01054">Descriptors.hpp:1054</a></div></div>
331 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
332 <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_add849c1188ee7ff60774755b746aa526"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#add849c1188ee7ff60774755b746aa526">armnn::StridedSliceDescriptor::GetStartForAxis</a></div><div class="ttdeci">int GetStartForAxis(const TensorShape &inputShape, unsigned int axis) const</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00358">Descriptors.cpp:358</a></div></div>
333 </div><!-- fragment -->
336 <a id="a97dc68ae76f04b81c833184724836c9a"></a>
337 <h2 class="memtitle"><span class="permalink"><a href="#a97dc68ae76f04b81c833184724836c9a">◆ </a></span>CheckValidSize()</h2>
339 <div class="memitem">
340 <div class="memproto">
341 <table class="memname">
343 <td class="memname">void CheckValidSize </td>
345 <td class="paramtype">std::initializer_list< size_t > </td>
346 <td class="paramname"><em>validInputCounts</em>, </td>
349 <td class="paramkey"></td>
351 <td class="paramtype">size_t </td>
352 <td class="paramname"><em>actualValue</em>, </td>
355 <td class="paramkey"></td>
357 <td class="paramtype">const char * </td>
358 <td class="paramname"><em>validExpr</em>, </td>
361 <td class="paramkey"></td>
363 <td class="paramtype">const char * </td>
364 <td class="paramname"><em>actualExpr</em>, </td>
367 <td class="paramkey"></td>
369 <td class="paramtype">const <a class="el" href="structarmnn_1_1_check_location.html">CheckLocation</a> & </td>
370 <td class="paramname"><em>location</em> </td>
378 </div><div class="memdoc">
380 <p class="definition">Definition at line <a class="el" href="_verification_helpers_8cpp_source.html#l00015">15</a> of file <a class="el" href="_verification_helpers_8cpp_source.html">VerificationHelpers.cpp</a>.</p>
382 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00029">CheckLocation::AsString()</a>.</p>
383 <div class="fragment"><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keywordtype">bool</span> isValid = std::any_of(validInputCounts.begin(),</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  validInputCounts.end(),</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  [&actualValue](<span class="keywordtype">size_t</span> x) { <span class="keywordflow">return</span> x == actualValue; } );</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">if</span> (!isValid)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  boost::str(</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  boost::format(<span class="stringliteral">"%1% = %2% is not valid, not in {%3%}. %4%"</span>) %</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  actualExpr %</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  actualValue %</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  validExpr %</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  location.<a class="code" href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">AsString</a>()));</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div>
384 <div class="ttc" id="structarmnn_1_1_check_location_html_a5e3562cda960da001597e7dd5679b140"><div class="ttname"><a href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">armnn::CheckLocation::AsString</a></div><div class="ttdeci">std::string AsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00029">Exceptions.hpp:29</a></div></div>
385 </div><!-- fragment -->
388 <a id="ab4a89c3d0ff243bdabae3e404248d04a"></a>
389 <h2 class="memtitle"><span class="permalink"><a href="#ab4a89c3d0ff243bdabae3e404248d04a">◆ </a></span>ConvertInt32ToOctalString()</h2>
391 <div class="memitem">
392 <div class="memproto">
393 <table class="memname">
395 <td class="memname">std::string ConvertInt32ToOctalString </td>
397 <td class="paramtype">int </td>
398 <td class="paramname"><em>value</em></td><td>)</td>
402 </div><div class="memdoc">
404 <p>Converts an int value into the Prototxt octal representation. </p>
406 <p class="definition">Definition at line <a class="el" href="_prototxt_conversions_8cpp_source.html#l00018">18</a> of file <a class="el" href="_prototxt_conversions_8cpp_source.html">PrototxtConversions.cpp</a>.</p>
408 <p class="reference">Referenced by <a class="el" href="_prototxt_conversions_test_8cpp_source.html#l00012">BOOST_AUTO_TEST_CASE()</a>.</p>
409 <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  std::stringstream ss;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  std::string returnString;</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < 4; ++i)</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  ss << <span class="stringliteral">"\\"</span>;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  ss << std::setw(3) << std::setfill('0') << std::oct << ((value >> (i * 8)) & 0xFF);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  }</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  ss >> returnString;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> returnString;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div></div><!-- fragment -->
412 <a id="a0d3b1be320610515e0cac8d745d9f8c2"></a>
413 <h2 class="memtitle"><span class="permalink"><a href="#a0d3b1be320610515e0cac8d745d9f8c2">◆ </a></span>ExpandDims()</h2>
415 <div class="memitem">
416 <div class="memproto">
417 <table class="memname">
419 <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> ExpandDims </td>
421 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> & </td>
422 <td class="paramname"><em>tensorShape</em>, </td>
425 <td class="paramkey"></td>
427 <td class="paramtype">int </td>
428 <td class="paramname"><em>axis</em> </td>
436 </div><div class="memdoc">
438 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00085">85</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
440 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, and <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>.</p>
442 <p class="reference">Referenced by <a class="el" href="_tensor_utils_test_8cpp_source.html#l00017">BOOST_AUTO_TEST_CASE()</a>.</p>
443 <div class="fragment"><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputDim = tensorShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() + 1;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keywordflow">if</span> (axis < -boost::numeric_cast<int>(outputDim) || axis > boost::numeric_cast<int>(tensorShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()))</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  boost::str(boost::format(<span class="stringliteral">"Invalid expansion axis %1% for %2%D input tensor. %3%"</span>) %</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  axis %</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  tensorShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() %</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordflow">if</span> (axis < 0)</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  axis = boost::numeric_cast<<span class="keywordtype">int</span>>(outputDim) + axis;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  }</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  std::vector<unsigned int> outputShape;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < tensorShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); ++i)</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  {</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  outputShape.push_back(tensorShape[i]);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  }</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  outputShape.insert(outputShape.begin() + axis, 1);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>(outputDim, outputShape.data());</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div>
444 <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div>
445 <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div>
446 <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
447 </div><!-- fragment -->
450 <a id="a1c9097ab13afc54b48c503c6487aaee1"></a>
451 <h2 class="memtitle"><span class="permalink"><a href="#a1c9097ab13afc54b48c503c6487aaee1">◆ </a></span>FindMinMax()</h2>
453 <div class="memitem">
454 <div class="memproto">
455 <table class="memname">
457 <td class="memname">std::pair< float, float > FindMinMax </td>
459 <td class="paramtype"><a class="el" href="classarmnn_1_1_i_tensor_handle.html">armnn::ITensorHandle</a> * </td>
460 <td class="paramname"><em>tensorHandle</em></td><td>)</td>
464 </div><div class="memdoc">
466 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00058">58</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
468 <p class="reference">References <a class="el" href="_tensor_8cpp_source.html#l00106">TensorShape::GetNumElements()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">ITensorHandle::GetShape()</a>, <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">ITensorHandle::Map()</a>, and <a class="el" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">ITensorHandle::Unmap()</a>.</p>
470 <p class="reference">Referenced by <a class="el" href="_network_quantizer_8cpp_source.html#l00060">NetworkQuantizer::Refine()</a>.</p>
471 <div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">auto</span> tensor_data = <span class="keyword">static_cast<</span><span class="keyword">const </span><span class="keywordtype">float</span> *<span class="keyword">></span>(tensorHandle-><a class="code" href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">Map</a>(<span class="keyword">true</span>));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">auto</span> tensor_size = tensorHandle-><a class="code" href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">GetShape</a>().<a class="code" href="classarmnn_1_1_tensor_shape.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="comment">// Set min/max initially to first value in tensor</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">float</span> min = tensor_data[0];</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">float</span> max = tensor_data[0];</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="comment">// Loop over rest of tensor and update min/max if necessary</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> val = 1; val < tensor_size; val++)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">if</span> (tensor_data[val] < min)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  min = tensor_data[val];</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  }</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (tensor_data[val] > max)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  max = tensor_data[val];</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  }</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  tensorHandle-><a class="code" href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">Unmap</a>();</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> std::make_pair(min, max);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> }</div><div class="ttc" id="classarmnn_1_1_i_tensor_handle_html_a9afbc055a017adf1bc38ee137bca6e90"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle.html#a9afbc055a017adf1bc38ee137bca6e90">armnn::ITensorHandle::Map</a></div><div class="ttdeci">virtual const void * Map(bool blocking=true) const =0</div></div>
472 <div class="ttc" id="classarmnn_1_1_i_tensor_handle_html_affd5aae75cad90f472f96cfd25a13f29"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle.html#affd5aae75cad90f472f96cfd25a13f29">armnn::ITensorHandle::GetShape</a></div><div class="ttdeci">virtual TensorShape GetShape() const =0</div></div>
473 <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorShape::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00106">Tensor.cpp:106</a></div></div>
474 <div class="ttc" id="classarmnn_1_1_i_tensor_handle_html_a563609828050f1b3a7868c23f3365923"><div class="ttname"><a href="classarmnn_1_1_i_tensor_handle.html#a563609828050f1b3a7868c23f3365923">armnn::ITensorHandle::Unmap</a></div><div class="ttdeci">virtual void Unmap() const =0</div><div class="ttdoc">Unmap the tensor data. </div></div>
475 </div><!-- fragment -->
478 <a id="a276aac5f7a8bdc3db4f62203870ca13b"></a>
479 <h2 class="memtitle"><span class="permalink"><a href="#a276aac5f7a8bdc3db4f62203870ca13b">◆ </a></span>GetNumElementsAfter()</h2>
481 <div class="memitem">
482 <div class="memproto">
483 <table class="memname">
485 <td class="memname">unsigned int GetNumElementsAfter </td>
487 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> & </td>
488 <td class="paramname"><em>shape</em>, </td>
491 <td class="paramkey"></td>
493 <td class="paramtype">unsigned int </td>
494 <td class="paramname"><em>axis</em> </td>
502 </div><div class="memdoc">
504 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00140">140</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
506 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>.</p>
508 <p class="reference">Referenced by <a class="el" href="_tensor_utils_8cpp_source.html#l00152">GetPerAxisParams()</a>.</p>
509 <div class="fragment"><div class="line"><a name="l00141"></a><span class="lineno"> 141</span> {</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDim = shape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>();</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  BOOST_ASSERT(axis <= numDim - 1);</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count = 1;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = axis; i < numDim; i++)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  count *= shape[i];</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">return</span> count;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div>
510 </div><!-- fragment -->
513 <a id="af57864f5e03358d14c2988edae912b8b"></a>
514 <h2 class="memtitle"><span class="permalink"><a href="#af57864f5e03358d14c2988edae912b8b">◆ </a></span>GetNumElementsBetween()</h2>
516 <div class="memitem">
517 <div class="memproto">
518 <table class="memname">
520 <td class="memname">unsigned int GetNumElementsBetween </td>
522 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> & </td>
523 <td class="paramname"><em>shape</em>, </td>
526 <td class="paramkey"></td>
528 <td class="paramtype">unsigned int </td>
529 <td class="paramname"><em>firstAxisInclusive</em>, </td>
532 <td class="paramkey"></td>
534 <td class="paramtype">unsigned int </td>
535 <td class="paramname"><em>lastAxisExclusive</em> </td>
543 </div><div class="memdoc">
545 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00113">113</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
547 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>.</p>
549 <p class="reference">Referenced by <a class="el" href="_arg_min_max_8cpp_source.html#l00015">armnn::ArgMinMax()</a>, <a class="el" href="_log_softmax_8cpp_source.html#l00030">armnn::LogSoftmax()</a>, and <a class="el" href="backends_2reference_2workloads_2_softmax_8cpp_source.html#l00017">armnn::Softmax()</a>.</p>
550 <div class="fragment"><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  BOOST_ASSERT(firstAxisInclusive <= lastAxisExclusive);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  BOOST_ASSERT(lastAxisExclusive <= shape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>());</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> count = 1;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = firstAxisInclusive; i < lastAxisExclusive; i++)</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  {</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  count *= shape[i];</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  }</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keywordflow">return</span> count;</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div>
551 </div><!-- fragment -->
554 <a id="a1826e433f7e6817976a8175b4ef8296c"></a>
555 <h2 class="memtitle"><span class="permalink"><a href="#a1826e433f7e6817976a8175b4ef8296c">◆ </a></span>GetPerAxisParams()</h2>
557 <div class="memitem">
558 <div class="memproto">
559 <table class="memname">
561 <td class="memname">std::pair< unsigned int, std::vector< float > > GetPerAxisParams </td>
563 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
564 <td class="paramname"><em>info</em></td><td>)</td>
568 </div><div class="memdoc">
570 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00152">152</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
572 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_types_utils_8hpp_source.html#l00165">armnn::GetDataTypeName()</a>, <a class="el" href="_tensor_utils_8cpp_source.html#l00140">GetNumElementsAfter()</a>, <a class="el" href="_tensor_8cpp_source.html#l00280">TensorInfo::GetQuantizationDim()</a>, <a class="el" href="_tensor_8cpp_source.html#l00237">TensorInfo::GetQuantizationScales()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_tensor_8cpp_source.html#l00232">TensorInfo::HasPerAxisQuantization()</a>, and <a class="el" href="_optional_8hpp_source.html#l00146">OptionalReferenceSwitch< IsReference, T >::value()</a>.</p>
574 <p class="reference">Referenced by <a class="el" href="_decoders_8hpp_source.html#l00070">armnn::MakeDecoder()</a>, and <a class="el" href="_encoders_8hpp_source.html#l00021">armnn::MakeEncoder()</a>.</p>
575 <div class="fragment"><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">const</span> std::vector<float>& scales = info.<a class="code" href="classarmnn_1_1_tensor_info.html#a8bc11f1fa23ef42532f9fdd04d355270">GetQuantizationScales</a>();</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <a class="code" href="classarmnn_1_1_optional.html">armnn::Optional<unsigned int></a> quantizationDim = info.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b8fc85ce966c035d789cf22db5088a1">GetQuantizationDim</a>();</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">if</span> (!info.<a class="code" href="classarmnn_1_1_tensor_info.html#ab85cd8cc10c96a7c99c14042c251fc48">HasPerAxisQuantization</a>())</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  {</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a>(</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  std::string(<span class="stringliteral">"Per-axis quantization params not set for tensor of type "</span>) +</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="namespacearmnn.html#a81b5ff8545adad19a1c9d4ca076d552c">armnn::GetDataTypeName</a>(info.<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>()), <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> axisFactor = <a class="code" href="namespacearmnn_utils.html#a276aac5f7a8bdc3db4f62203870ca13b">GetNumElementsAfter</a>(info.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(), quantizationDim.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>());</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">return</span> { axisFactor, scales };</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_ab85cd8cc10c96a7c99c14042c251fc48"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#ab85cd8cc10c96a7c99c14042c251fc48">armnn::TensorInfo::HasPerAxisQuantization</a></div><div class="ttdeci">bool HasPerAxisQuantization() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00232">Tensor.cpp:232</a></div></div>
576 <div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional< unsigned int ></a></div></div>
577 <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div>
578 <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div>
579 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b8fc85ce966c035d789cf22db5088a1"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b8fc85ce966c035d789cf22db5088a1">armnn::TensorInfo::GetQuantizationDim</a></div><div class="ttdeci">Optional< unsigned int > GetQuantizationDim() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00280">Tensor.cpp:280</a></div></div>
580 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8bc11f1fa23ef42532f9fdd04d355270"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8bc11f1fa23ef42532f9fdd04d355270">armnn::TensorInfo::GetQuantizationScales</a></div><div class="ttdeci">std::vector< float > GetQuantizationScales() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00237">Tensor.cpp:237</a></div></div>
581 <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div>
582 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
583 <div class="ttc" id="namespacearmnn_html_a81b5ff8545adad19a1c9d4ca076d552c"><div class="ttname"><a href="namespacearmnn.html#a81b5ff8545adad19a1c9d4ca076d552c">armnn::GetDataTypeName</a></div><div class="ttdeci">constexpr const char * GetDataTypeName(DataType dataType)</div><div class="ttdef"><b>Definition:</b> <a href="_types_utils_8hpp_source.html#l00165">TypesUtils.hpp:165</a></div></div>
584 <div class="ttc" id="namespacearmnn_utils_html_a276aac5f7a8bdc3db4f62203870ca13b"><div class="ttname"><a href="namespacearmnn_utils.html#a276aac5f7a8bdc3db4f62203870ca13b">armnnUtils::GetNumElementsAfter</a></div><div class="ttdeci">unsigned int GetNumElementsAfter(const armnn::TensorShape &shape, unsigned int axis)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_utils_8cpp_source.html#l00140">TensorUtils.cpp:140</a></div></div>
585 <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div>
586 </div><!-- fragment -->
589 <a id="acee63cd08da47910fc166a1990988fa8"></a>
590 <h2 class="memtitle"><span class="permalink"><a href="#acee63cd08da47910fc166a1990988fa8">◆ </a></span>GetTensorInfo()</h2>
592 <div class="memitem">
593 <div class="memproto">
594 <table class="memname">
596 <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> GetTensorInfo </td>
598 <td class="paramtype">unsigned int </td>
599 <td class="paramname"><em>numberOfBatches</em>, </td>
602 <td class="paramkey"></td>
604 <td class="paramtype">unsigned int </td>
605 <td class="paramname"><em>numberOfChannels</em>, </td>
608 <td class="paramkey"></td>
610 <td class="paramtype">unsigned int </td>
611 <td class="paramname"><em>height</em>, </td>
614 <td class="paramkey"></td>
616 <td class="paramtype">unsigned int </td>
617 <td class="paramname"><em>width</em>, </td>
620 <td class="paramkey"></td>
622 <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td>
623 <td class="paramname"><em>dataLayout</em>, </td>
626 <td class="paramkey"></td>
628 <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a> </td>
629 <td class="paramname"><em>dataType</em> </td>
637 </div><div class="memdoc">
639 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00038">38</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
641 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p>
643 <p class="reference">Referenced by <a class="el" href="_caffe_parser_8cpp_source.html#l00611">CaffeParserBase::AddConvLayerWithDepthwiseConv()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l00419">CaffeParserBase::AddConvLayerWithSplits()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01381">DepthwiseConvolution2dAsymmetricTestImpl()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01518">DepthwiseConvolution2dDepthMul1TestImpl()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01671">DepthwiseConvolution2dTestImpl()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01338">CaffeParserBase::ParseBatchNormLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01277">CaffeParserBase::ParseConcatLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l00701">CaffeParserBase::ParseConvLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01230">CaffeParserBase::ParseEltwiseLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01134">CaffeParserBase::ParseInnerProductLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01027">CaffeParserBase::ParseLRNLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l00883">CaffeParserBase::ParsePoolingLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01001">CaffeParserBase::ParseReluLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01404">CaffeParserBase::ParseScaleLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.html#l01208">CaffeParserBase::ParseSoftmaxLayer()</a>, and <a class="el" href="_conv2d_test_impl_8cpp_source.html#l00201">SimpleConvolution2dTestImpl()</a>.</p>
644 <div class="fragment"><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordflow">switch</span> (dataLayout)</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordflow">case</span> DataLayout::NCHW:</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({numberOfBatches, numberOfChannels, height, width}, dataType);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">case</span> DataLayout::NHWC:</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({numberOfBatches, height, width, numberOfChannels}, dataType);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(<span class="stringliteral">"Unknown data layout ["</span></div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  + std::to_string(static_cast<int>(dataLayout)) +</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="stringliteral">"]"</span>, <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  }</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div>
645 <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div>
646 <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div>
647 </div><!-- fragment -->
650 <a id="ab53d94ea22b51c6bcdf9584644bd67bb"></a>
651 <h2 class="memtitle"><span class="permalink"><a href="#ab53d94ea22b51c6bcdf9584644bd67bb">◆ </a></span>GetTensorShape()</h2>
653 <div class="memitem">
654 <div class="memproto">
655 <table class="memname">
657 <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> GetTensorShape </td>
659 <td class="paramtype">unsigned int </td>
660 <td class="paramname"><em>numberOfBatches</em>, </td>
663 <td class="paramkey"></td>
665 <td class="paramtype">unsigned int </td>
666 <td class="paramname"><em>numberOfChannels</em>, </td>
669 <td class="paramkey"></td>
671 <td class="paramtype">unsigned int </td>
672 <td class="paramname"><em>height</em>, </td>
675 <td class="paramkey"></td>
677 <td class="paramtype">unsigned int </td>
678 <td class="paramname"><em>width</em>, </td>
681 <td class="paramkey"></td>
683 <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td>
684 <td class="paramname"><em>dataLayout</em> </td>
692 </div><div class="memdoc">
694 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00019">19</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
696 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p>
697 <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">switch</span> (dataLayout)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordflow">case</span> DataLayout::NCHW:</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>({numberOfBatches, numberOfChannels, height, width});</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">case</span> DataLayout::NHWC:</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>({numberOfBatches, height, width, numberOfChannels});</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(<span class="stringliteral">"Unknown data layout ["</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  + std::to_string(static_cast<int>(dataLayout)) +</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="stringliteral">"]"</span>, <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div><div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div>
698 <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div>
699 <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
700 </div><!-- fragment -->
703 <a id="ac93cb1365b4bcb67df2a3164606096c5"></a>
704 <h2 class="memtitle"><span class="permalink"><a href="#ac93cb1365b4bcb67df2a3164606096c5">◆ </a></span>GetUnsignedAxis()</h2>
706 <div class="memitem">
707 <div class="memproto">
708 <table class="memname">
710 <td class="memname">unsigned int GetUnsignedAxis </td>
712 <td class="paramtype">const unsigned int </td>
713 <td class="paramname"><em>inputDimension</em>, </td>
716 <td class="paramkey"></td>
718 <td class="paramtype">const int </td>
719 <td class="paramname"><em>axis</em> </td>
727 </div><div class="memdoc">
729 <p class="definition">Definition at line <a class="el" href="_tensor_utils_8cpp_source.html#l00127">127</a> of file <a class="el" href="_tensor_utils_8cpp_source.html">TensorUtils.cpp</a>.</p>
731 <p class="reference">Referenced by <a class="el" href="_arg_min_max_8cpp_source.html#l00015">armnn::ArgMinMax()</a>, <a class="el" href="_cl_arg_min_max_workload_8cpp_source.html#l00054">ClArgMinMaxWorkload::ClArgMinMaxWorkload()</a>, <a class="el" href="_arg_min_max_layer_8cpp_source.html#l00035">ArgMinMaxLayer::InferOutputShapes()</a>, <a class="el" href="_neon_arg_min_max_workload_8cpp_source.html#l00053">NeonArgMinMaxWorkload::NeonArgMinMaxWorkload()</a>, and <a class="el" href="_workload_data_8cpp_source.html#l00614">ArgMinMaxQueueDescriptor::Validate()</a>.</p>
732 <div class="fragment"><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  BOOST_ASSERT_MSG(axis < boost::numeric_cast<int>(inputDimension),</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <span class="stringliteral">"Required axis index greater than number of dimensions."</span>);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  BOOST_ASSERT_MSG(axis >= -boost::numeric_cast<int>(inputDimension),</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="stringliteral">"Required axis index lower than negative of the number of dimensions"</span>);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> uAxis = axis < 0 ?</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  inputDimension - boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(<a class="code" href="structarmnn_1_1abs.html">abs</a>(axis))</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  : boost::numeric_cast<unsigned int>(axis);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">return</span> uAxis;</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> }</div><div class="ttc" id="structarmnn_1_1abs_html"><div class="ttname"><a href="structarmnn_1_1abs.html">armnn::abs</a></div><div class="ttdef"><b>Definition:</b> <a href="_abs_8hpp_source.html#l00013">Abs.hpp:13</a></div></div>
733 </div><!-- fragment -->
736 <a id="a662b45b5a4d48a01e967c0b28b6a552b"></a>
737 <h2 class="memtitle"><span class="permalink"><a href="#a662b45b5a4d48a01e967c0b28b6a552b">◆ </a></span>GraphTopologicalSort()</h2>
739 <div class="memitem">
740 <div class="memproto">
741 <table class="memname">
743 <td class="memname">bool armnnUtils::GraphTopologicalSort </td>
745 <td class="paramtype">const TTargetNodes & </td>
746 <td class="paramname"><em>targetNodes</em>, </td>
749 <td class="paramkey"></td>
751 <td class="paramtype">std::function< std::vector< TNodeId >(TNodeId)> </td>
752 <td class="paramname"><em>getIncomingEdges</em>, </td>
755 <td class="paramkey"></td>
757 <td class="paramtype">std::vector< TNodeId > & </td>
758 <td class="paramname"><em>outSorted</em> </td>
766 </div><div class="memdoc">
768 <p class="definition">Definition at line <a class="el" href="_graph_topological_sort_8hpp_source.html#l00111">111</a> of file <a class="el" href="_graph_topological_sort_8hpp_source.html">GraphTopologicalSort.hpp</a>.</p>
769 <div class="fragment"><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  outSorted.clear();</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  std::map<TNodeId, NodeState> nodeStates;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">for</span> (TNodeId targetNode : targetNodes)</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">if</span> (!TopologicallySort(targetNode, getIncomingEdges, outSorted, nodeStates))</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> }</div></div><!-- fragment -->
772 <a id="ad5310a199d4969927169ed084b1f6c28"></a>
773 <h2 class="memtitle"><span class="permalink"><a href="#ad5310a199d4969927169ed084b1f6c28">◆ </a></span>MakeInputTensors()</h2>
775 <div class="memitem">
776 <div class="memproto">
777 <table class="mlabels">
779 <td class="mlabels-left">
780 <table class="memname">
782 <td class="memname"><a class="el" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a> armnnUtils::MakeInputTensors </td>
784 <td class="paramtype">const std::vector< <a class="el" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> > & </td>
785 <td class="paramname"><em>inputBindings</em>, </td>
788 <td class="paramkey"></td>
790 <td class="paramtype">const std::vector< <a class="el" href="namespacearmnn.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a> > & </td>
791 <td class="paramname"><em>inputDataContainers</em> </td>
800 <td class="mlabels-right">
801 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
804 </div><div class="memdoc">
806 <p class="definition">Definition at line <a class="el" href="_tensor_i_o_utils_8hpp_source.html#l00017">17</a> of file <a class="el" href="_tensor_i_o_utils_8hpp_source.html">TensorIOUtils.hpp</a>.</p>
808 <p class="reference">Referenced by <a class="el" href="_inference_model_8hpp_source.html#l00550">InferenceModel< IParser, TDataType >::GetAllQuantizationParams()</a>, <a class="el" href="_model_accuracy_tool-_armnn_8cpp_source.html#l00049">main()</a>, and <a class="el" href="_inference_model_8hpp_source.html#l00461">InferenceModel< IParser, TDataType >::Run()</a>.</p>
809 <div class="fragment"><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a> inputTensors;</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numInputs = inputBindings.size();</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  <span class="keywordflow">if</span> (numInputs != inputDataContainers.size())</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(<span class="stringliteral">"The number of inputs does not match number of "</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="stringliteral">"tensor data containers: %1% != %2%"</span>)</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  % numInputs</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  % inputDataContainers.size()));</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < numInputs; i++)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a>& inputBinding = inputBindings[i];</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keyword">const</span> <a class="code" href="_model_accuracy_checker_test_8cpp.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a>& inputData = inputDataContainers[i];</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  boost::apply_visitor([&](<span class="keyword">auto</span>&& value)</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordflow">if</span> (value.size() != inputBinding.second.GetNumElements())</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(<span class="stringliteral">"The input tensor has incorrect size "</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="stringliteral">"(expected %1% got %2%)"</span>)</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  % inputBinding.second.GetNumElements()</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  % value.size()));</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  }</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> inputTensor(inputBinding.second, value.data());</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  inputTensors.push_back(std::make_pair(inputBinding.first, inputTensor));</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  },</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  inputData);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  }</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordflow">return</span> inputTensors;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div><div class="ttc" id="classarmnn_1_1_const_tensor_html"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00199">Tensor.hpp:199</a></div></div>
810 <div class="ttc" id="namespacearmnn_html_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a></div><div class="ttdeci">std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00146">Tensor.hpp:146</a></div></div>
811 <div class="ttc" id="namespacearmnn_html_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00225">Tensor.hpp:225</a></div></div>
812 <div class="ttc" id="classarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div>
813 <div class="ttc" id="_model_accuracy_checker_test_8cpp_html_a9eb69ebdaf4ceb8014e7c8a540266100"><div class="ttname"><a href="_model_accuracy_checker_test_8cpp.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a></div><div class="ttdeci">boost::variant< std::vector< float >, std::vector< int >, std::vector< unsigned char > > TContainer</div><div class="ttdef"><b>Definition:</b> <a href="_model_accuracy_checker_test_8cpp_source.html#l00059">ModelAccuracyCheckerTest.cpp:59</a></div></div>
814 </div><!-- fragment -->
817 <a id="ad4efd5a7fa660df5246466d83517220d"></a>
818 <h2 class="memtitle"><span class="permalink"><a href="#ad4efd5a7fa660df5246466d83517220d">◆ </a></span>MakeOutputTensors()</h2>
820 <div class="memitem">
821 <div class="memproto">
822 <table class="mlabels">
824 <td class="mlabels-left">
825 <table class="memname">
827 <td class="memname"><a class="el" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a> armnnUtils::MakeOutputTensors </td>
829 <td class="paramtype">const std::vector< <a class="el" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a> > & </td>
830 <td class="paramname"><em>outputBindings</em>, </td>
833 <td class="paramkey"></td>
835 <td class="paramtype">std::vector< <a class="el" href="namespacearmnn.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a> > & </td>
836 <td class="paramname"><em>outputDataContainers</em> </td>
845 <td class="mlabels-right">
846 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
849 </div><div class="memdoc">
851 <p class="definition">Definition at line <a class="el" href="_tensor_i_o_utils_8hpp_source.html#l00056">56</a> of file <a class="el" href="_tensor_i_o_utils_8hpp_source.html">TensorIOUtils.hpp</a>.</p>
853 <p class="reference">Referenced by <a class="el" href="_inference_model_8hpp_source.html#l00550">InferenceModel< IParser, TDataType >::GetAllQuantizationParams()</a>, <a class="el" href="_model_accuracy_tool-_armnn_8cpp_source.html#l00049">main()</a>, and <a class="el" href="_inference_model_8hpp_source.html#l00461">InferenceModel< IParser, TDataType >::Run()</a>.</p>
854 <div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a> outputTensors;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keyword">const</span> <span class="keywordtype">size_t</span> numOutputs = outputBindings.size();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordflow">if</span> (numOutputs != outputDataContainers.size())</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  {</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(boost::str(boost::format(<span class="stringliteral">"Number of outputs does not match number of "</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="stringliteral">"tensor data containers: %1% != %2%"</span>)</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  % numOutputs</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  % outputDataContainers.size()));</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  }</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < numOutputs; i++)</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  {</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a>& outputBinding = outputBindings[i];</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="_model_accuracy_checker_test_8cpp.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a>& outputData = outputDataContainers[i];</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  boost::apply_visitor([&](<span class="keyword">auto</span>&& value)</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">if</span> (value.size() != outputBinding.second.GetNumElements())</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_exception.html">armnn::Exception</a>(<span class="stringliteral">"Output tensor has incorrect size"</span>);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="classarmnn_1_1_tensor.html">armnn::Tensor</a> outputTensor(outputBinding.second, value.data());</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  outputTensors.push_back(std::make_pair(outputBinding.first, outputTensor));</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  },</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  outputData);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keywordflow">return</span> outputTensors;</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> }</div><div class="ttc" id="namespacearmnn_html_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00226">Tensor.hpp:226</a></div></div>
855 <div class="ttc" id="namespacearmnn_html_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a></div><div class="ttdeci">std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00146">Tensor.hpp:146</a></div></div>
856 <div class="ttc" id="classarmnn_1_1_tensor_html"><div class="ttname"><a href="classarmnn_1_1_tensor.html">armnn::Tensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00191">Tensor.hpp:191</a></div></div>
857 <div class="ttc" id="classarmnn_1_1_exception_html"><div class="ttname"><a href="classarmnn_1_1_exception.html">armnn::Exception</a></div><div class="ttdoc">Base class for all ArmNN exceptions so that users can filter to just those. </div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00046">Exceptions.hpp:46</a></div></div>
858 <div class="ttc" id="_model_accuracy_checker_test_8cpp_html_a9eb69ebdaf4ceb8014e7c8a540266100"><div class="ttname"><a href="_model_accuracy_checker_test_8cpp.html#a9eb69ebdaf4ceb8014e7c8a540266100">TContainer</a></div><div class="ttdeci">boost::variant< std::vector< float >, std::vector< int >, std::vector< unsigned char > > TContainer</div><div class="ttdef"><b>Definition:</b> <a href="_model_accuracy_checker_test_8cpp_source.html#l00059">ModelAccuracyCheckerTest.cpp:59</a></div></div>
859 </div><!-- fragment -->
862 <a id="ab075020544612cd151ebdd08db537396"></a>
863 <h2 class="memtitle"><span class="permalink"><a href="#ab075020544612cd151ebdd08db537396">◆ </a></span>NonNegative()</h2>
865 <div class="memitem">
866 <div class="memproto">
867 <table class="memname">
869 <td class="memname">uint32_t NonNegative </td>
871 <td class="paramtype">const char * </td>
872 <td class="paramname"><em>expr</em>, </td>
875 <td class="paramkey"></td>
877 <td class="paramtype">int32_t </td>
878 <td class="paramname"><em>value</em>, </td>
881 <td class="paramkey"></td>
883 <td class="paramtype">const <a class="el" href="structarmnn_1_1_check_location.html">CheckLocation</a> & </td>
884 <td class="paramname"><em>location</em> </td>
892 </div><div class="memdoc">
894 <p class="definition">Definition at line <a class="el" href="_verification_helpers_8cpp_source.html#l00036">36</a> of file <a class="el" href="_verification_helpers_8cpp_source.html">VerificationHelpers.cpp</a>.</p>
896 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00029">CheckLocation::AsString()</a>.</p>
897 <div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">if</span> (value < 0)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  boost::str(</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  boost::format(<span class="stringliteral">"'%1%' must be non-negative, received: %2% at %3%"</span>) %</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  expr %</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  value %</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  location.<a class="code" href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">AsString</a>() ));</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>uint32_t<span class="keyword">></span>(value);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div>
898 <div class="ttc" id="structarmnn_1_1_check_location_html_a5e3562cda960da001597e7dd5679b140"><div class="ttname"><a href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">armnn::CheckLocation::AsString</a></div><div class="ttdeci">std::string AsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00029">Exceptions.hpp:29</a></div></div>
899 </div><!-- fragment -->
902 <a id="a49ba5984d8cde4299d8ef15c9e556587"></a>
903 <h2 class="memtitle"><span class="permalink"><a href="#a49ba5984d8cde4299d8ef15c9e556587">◆ </a></span>operator==() <span class="overload">[1/2]</span></h2>
905 <div class="memitem">
906 <div class="memproto">
907 <table class="memname">
909 <td class="memname">bool operator== </td>
911 <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> & </td>
912 <td class="paramname"><em>dataLayout</em>, </td>
915 <td class="paramkey"></td>
917 <td class="paramtype">const <a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> & </td>
918 <td class="paramname"><em>indexed</em> </td>
926 </div><div class="memdoc">
928 <p class="definition">Definition at line <a class="el" href="_data_layout_indexed_8cpp_source.html#l00034">34</a> of file <a class="el" href="_data_layout_indexed_8cpp_source.html">DataLayoutIndexed.cpp</a>.</p>
930 <p class="reference">References <a class="el" href="_data_layout_indexed_8hpp_source.html#l00022">DataLayoutIndexed::GetDataLayout()</a>.</p>
932 <p class="reference">Referenced by <a class="el" href="_optional_test_8cpp_source.html#l00121">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_layer_8hpp_source.html#l00151">OutputSlot::Disconnect()</a>, and <a class="el" href="_data_layout_indexed_8hpp_source.html#l00027">DataLayoutIndexed::GetIndex()</a>.</p>
933 <div class="fragment"><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> {</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> dataLayout == indexed.<a class="code" href="classarmnn_utils_1_1_data_layout_indexed.html#a7d8b3d755b6ca8f5533657969efb06c4">GetDataLayout</a>();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div><div class="ttc" id="classarmnn_utils_1_1_data_layout_indexed_html_a7d8b3d755b6ca8f5533657969efb06c4"><div class="ttname"><a href="classarmnn_utils_1_1_data_layout_indexed.html#a7d8b3d755b6ca8f5533657969efb06c4">armnnUtils::DataLayoutIndexed::GetDataLayout</a></div><div class="ttdeci">armnn::DataLayout GetDataLayout() const</div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_indexed_8hpp_source.html#l00022">DataLayoutIndexed.hpp:22</a></div></div>
934 </div><!-- fragment -->
937 <a id="a0448088ed94f810bd2464f3afd1859f0"></a>
938 <h2 class="memtitle"><span class="permalink"><a href="#a0448088ed94f810bd2464f3afd1859f0">◆ </a></span>operator==() <span class="overload">[2/2]</span></h2>
940 <div class="memitem">
941 <div class="memproto">
942 <table class="memname">
944 <td class="memname">bool operator== </td>
946 <td class="paramtype">const <a class="el" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> & </td>
947 <td class="paramname"><em>indexed</em>, </td>
950 <td class="paramkey"></td>
952 <td class="paramtype">const <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> & </td>
953 <td class="paramname"><em>dataLayout</em> </td>
961 </div><div class="memdoc">
963 <p class="definition">Definition at line <a class="el" href="_data_layout_indexed_8cpp_source.html#l00039">39</a> of file <a class="el" href="_data_layout_indexed_8cpp_source.html">DataLayoutIndexed.cpp</a>.</p>
965 <p class="reference">References <a class="el" href="_data_layout_indexed_8hpp_source.html#l00022">DataLayoutIndexed::GetDataLayout()</a>.</p>
966 <div class="fragment"><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordflow">return</span> indexed.<a class="code" href="classarmnn_utils_1_1_data_layout_indexed.html#a7d8b3d755b6ca8f5533657969efb06c4">GetDataLayout</a>() == dataLayout;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> }</div><div class="ttc" id="classarmnn_utils_1_1_data_layout_indexed_html_a7d8b3d755b6ca8f5533657969efb06c4"><div class="ttname"><a href="classarmnn_utils_1_1_data_layout_indexed.html#a7d8b3d755b6ca8f5533657969efb06c4">armnnUtils::DataLayoutIndexed::GetDataLayout</a></div><div class="ttdeci">armnn::DataLayout GetDataLayout() const</div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_indexed_8hpp_source.html#l00022">DataLayoutIndexed.hpp:22</a></div></div>
967 </div><!-- fragment -->
970 <a id="aed9a30e912d18171e93fcf58e0f219cb"></a>
971 <h2 class="memtitle"><span class="permalink"><a href="#aed9a30e912d18171e93fcf58e0f219cb">◆ </a></span>ParseLine()</h2>
973 <div class="memitem">
974 <div class="memproto">
975 <table class="memname">
977 <td class="memname"><a class="el" href="structarmnn_utils_1_1_csv_row.html">CsvRow</a> armnnUtils::ParseLine </td>
979 <td class="paramtype">const std::string & </td>
980 <td class="paramname"><em>csvLine</em></td><td>)</td>
984 </div><div class="memdoc">
986 <p class="definition">Definition at line <a class="el" href="_csv_reader_8cpp_source.html#l00020">20</a> of file <a class="el" href="_csv_reader_8cpp_source.html">CsvReader.cpp</a>.</p>
988 <p class="reference">References <a class="el" href="_csv_reader_8hpp_source.html#l00015">CsvRow::values</a>.</p>
990 <p class="reference">Referenced by <a class="el" href="_csv_reader_8cpp_source.html#l00032">CsvReader::ParseFile()</a>, and <a class="el" href="_csv_reader_8cpp_source.html#l00052">CsvReader::ParseVector()</a>.</p>
991 <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <a class="code" href="_csv_reader_8cpp.html#aafb3a3f74dda3391f17caeaaaca1c0c8">Tokenizer</a> tokenizer(csvLine);</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  CsvRow entry;</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> &token : tokenizer)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  entry.values.push_back(boost::trim_copy(token));</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  }</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keywordflow">return</span> entry;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> }</div><div class="ttc" id="_csv_reader_8cpp_html_aafb3a3f74dda3391f17caeaaaca1c0c8"><div class="ttname"><a href="_csv_reader_8cpp.html#aafb3a3f74dda3391f17caeaaaca1c0c8">Tokenizer</a></div><div class="ttdeci">boost::tokenizer< boost::escaped_list_separator< char > > Tokenizer</div><div class="ttdef"><b>Definition:</b> <a href="_csv_reader_8cpp_source.html#l00015">CsvReader.cpp:15</a></div></div>
992 </div><!-- fragment -->
995 <a id="af3c74017185773dd61d8ca6662d65d43"></a>
996 <h2 class="memtitle"><span class="permalink"><a href="#af3c74017185773dd61d8ca6662d65d43">◆ </a></span>Permute()</h2>
998 <div class="memitem">
999 <div class="memproto">
1000 <table class="memname">
1002 <td class="memname">void Permute </td>
1004 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> & </td>
1005 <td class="paramname"><em>dstShape</em>, </td>
1008 <td class="paramkey"></td>
1010 <td class="paramtype">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> & </td>
1011 <td class="paramname"><em>mappings</em>, </td>
1014 <td class="paramkey"></td>
1016 <td class="paramtype">const void * </td>
1017 <td class="paramname"><em>src</em>, </td>
1020 <td class="paramkey"></td>
1022 <td class="paramtype">void * </td>
1023 <td class="paramname"><em>dst</em>, </td>
1026 <td class="paramkey"></td>
1028 <td class="paramtype">size_t </td>
1029 <td class="paramname"><em>dataTypeSize</em> </td>
1037 </div><div class="memdoc">
1039 <p class="definition">Definition at line <a class="el" href="_permute_8cpp_source.html#l00121">121</a> of file <a class="el" href="_permute_8cpp_source.html">Permute.cpp</a>.</p>
1041 <p class="reference">Referenced by <a class="el" href="_serializer_tests_8cpp_source.html#l01882">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_tf_parser_8cpp_source.html#l00931">armnnTfParser::ConvertTfTensorDataType()</a>, <a class="el" href="_depth_to_space_8cpp_source.html#l00018">armnn::DepthToSpace()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01381">DepthwiseConvolution2dAsymmetricTestImpl()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01518">DepthwiseConvolution2dDepthMul1TestImpl()</a>, <a class="el" href="_conv2d_test_impl_8cpp_source.html#l01671">DepthwiseConvolution2dTestImpl()</a>, <a class="el" href="_permute_layer_8cpp_source.html#l00020">PermuteLayer::PermuteLayer()</a>, <a class="el" href="_data_layout_utils_8hpp_source.html#l00014">PermuteTensorNchwToNhwc()</a>, <a class="el" href="_data_layout_utils_8hpp_source.html#l00026">PermuteTensorNhwcToNchw()</a>, <a class="el" href="_image_tensor_generator_8hpp_source.html#l00091">PrepareImageTensor< float >()</a>, and <a class="el" href="_conv2d_test_impl_8cpp_source.html#l00201">SimpleConvolution2dTestImpl()</a>.</p>
1042 <div class="fragment"><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  PermuteLoop(dstShape, mappings).Unroll(src, dst, dataTypeSize);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> }</div></div><!-- fragment -->
1045 <a id="abeaf4f6785039866fd075f4569ba8e84"></a>
1046 <h2 class="memtitle"><span class="permalink"><a href="#abeaf4f6785039866fd075f4569ba8e84">◆ </a></span>Permuted() <span class="overload">[1/2]</span></h2>
1048 <div class="memitem">
1049 <div class="memproto">
1050 <table class="memname">
1052 <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> Permuted </td>
1054 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> & </td>
1055 <td class="paramname"><em>srcShape</em>, </td>
1058 <td class="paramkey"></td>
1060 <td class="paramtype">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> & </td>
1061 <td class="paramname"><em>mappings</em> </td>
1069 </div><div class="memdoc">
1071 <p class="definition">Definition at line <a class="el" href="_permute_8cpp_source.html#l00098">98</a> of file <a class="el" href="_permute_8cpp_source.html">Permute.cpp</a>.</p>
1073 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>, <a class="el" href="_types_8hpp_source.html#l00199">PermutationVector::GetSize()</a>, and <a class="el" href="_types_8hpp_source.html#l00018">armnn::MaxNumOfTensorDimensions</a>.</p>
1075 <p class="reference">Referenced by <a class="el" href="_tf_parser_8cpp_source.html#l00931">armnnTfParser::ConvertTfTensorDataType()</a>, <a class="el" href="_workload_utils_8cpp_source.html#l00109">armnn::ConvertWeightTensorInfoFromArmnnToAcl()</a>, <a class="el" href="_permute_layer_8cpp_source.html#l00036">PermuteLayer::InferOutputShapes()</a>, <a class="el" href="_permute_8cpp_source.html#l00114">Permuted()</a>, <a class="el" href="_concat_test_impl_8cpp_source.html#l00171">PermuteInputsForConcat()</a>, <a class="el" href="_workload_utils_8cpp_source.html#l00013">armnn::PermuteTensor()</a>, <a class="el" href="_concat_test_impl_8cpp_source.html#l00121">PermuteTensorData()</a>, <a class="el" href="_data_layout_utils_8hpp_source.html#l00014">PermuteTensorNchwToNhwc()</a>, <a class="el" href="_data_layout_utils_8hpp_source.html#l00026">PermuteTensorNhwcToNchw()</a>, and <a class="el" href="_move_permute_up_8hpp_source.html#l00022">MovePermuteUpImpl::Run()</a>.</p>
1076 <div class="fragment"><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> {</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  assert(srcShape.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() == mappings.<a class="code" href="classarmnn_1_1_permutation_vector.html#a490ec6b59006d1fe1ec2ea30e69fb97c">GetSize</a>());</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDims = mappings.<a class="code" href="classarmnn_1_1_permutation_vector.html#a490ec6b59006d1fe1ec2ea30e69fb97c">GetSize</a>();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outDims[<a class="code" href="namespacearmnn.html#abdcd184ed3bd648bb31d385040cafd5d">armnn::MaxNumOfTensorDimensions</a>];</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0U; i < numDims; ++i)</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  outDims[mappings[i]] = srcShape[i];</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> permutedShape(numDims, outDims);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordflow">return</span> permutedShape;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div>
1077 <div class="ttc" id="classarmnn_1_1_permutation_vector_html_a490ec6b59006d1fe1ec2ea30e69fb97c"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html#a490ec6b59006d1fe1ec2ea30e69fb97c">armnn::PermutationVector::GetSize</a></div><div class="ttdeci">SizeType GetSize() const</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00199">Types.hpp:199</a></div></div>
1078 <div class="ttc" id="namespacearmnn_html_abdcd184ed3bd648bb31d385040cafd5d"><div class="ttname"><a href="namespacearmnn.html#abdcd184ed3bd648bb31d385040cafd5d">armnn::MaxNumOfTensorDimensions</a></div><div class="ttdeci">constexpr unsigned int MaxNumOfTensorDimensions</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00018">Types.hpp:18</a></div></div>
1079 <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
1080 </div><!-- fragment -->
1083 <a id="a2ba6f6f40c7382b61b00ac02f961ba22"></a>
1084 <h2 class="memtitle"><span class="permalink"><a href="#a2ba6f6f40c7382b61b00ac02f961ba22">◆ </a></span>Permuted() <span class="overload">[2/2]</span></h2>
1086 <div class="memitem">
1087 <div class="memproto">
1088 <table class="memname">
1090 <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> Permuted </td>
1092 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
1093 <td class="paramname"><em>info</em>, </td>
1096 <td class="paramkey"></td>
1098 <td class="paramtype">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> & </td>
1099 <td class="paramname"><em>mappings</em> </td>
1107 </div><div class="memdoc">
1109 <p class="definition">Definition at line <a class="el" href="_permute_8cpp_source.html#l00114">114</a> of file <a class="el" href="_permute_8cpp_source.html">Permute.cpp</a>.</p>
1111 <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_permute_8cpp_source.html#l00098">Permuted()</a>, and <a class="el" href="_tensor_8hpp_source.html#l00090">TensorInfo::SetShape()</a>.</p>
1112 <div class="fragment"><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outInfo(info);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  outInfo.SetShape(<a class="code" href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">Permuted</a>(info.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(), mappings));</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordflow">return</span> outInfo;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div>
1113 <div class="ttc" id="namespacearmnn_utils_html_abeaf4f6785039866fd075f4569ba8e84"><div class="ttname"><a href="namespacearmnn_utils.html#abeaf4f6785039866fd075f4569ba8e84">armnnUtils::Permuted</a></div><div class="ttdeci">armnn::TensorShape Permuted(const armnn::TensorShape &srcShape, const armnn::PermutationVector &mappings)</div><div class="ttdef"><b>Definition:</b> <a href="_permute_8cpp_source.html#l00098">Permute.cpp:98</a></div></div>
1114 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
1115 </div><!-- fragment -->
1118 <a id="a523deabeb7d0a884028b35eebfd1cb6c"></a>
1119 <h2 class="memtitle"><span class="permalink"><a href="#a523deabeb7d0a884028b35eebfd1cb6c">◆ </a></span>ProcessConcatInputTensorInfo()</h2>
1121 <div class="memitem">
1122 <div class="memproto">
1123 <table class="memname">
1125 <td class="memname">void ProcessConcatInputTensorInfo </td>
1127 <td class="paramtype"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td>
1128 <td class="paramname"><em>inputTensorInfo</em>, </td>
1131 <td class="paramkey"></td>
1133 <td class="paramtype"><a class="el" href="structarmnn_1_1_origins_descriptor.html">armnn::OriginsDescriptor</a> & </td>
1134 <td class="paramname"><em>concatDescriptor</em>, </td>
1137 <td class="paramkey"></td>
1139 <td class="paramtype">const unsigned int & </td>
1140 <td class="paramname"><em>concatAxis</em>, </td>
1143 <td class="paramkey"></td>
1145 <td class="paramtype">unsigned int </td>
1146 <td class="paramname"><em>inputIndex</em>, </td>
1149 <td class="paramkey"></td>
1151 <td class="paramtype">unsigned int & </td>
1152 <td class="paramname"><em>mergeDimOrigin</em> </td>
1160 </div><div class="memdoc">
1162 <p class="definition">Definition at line <a class="el" href="_parser_helper_8cpp_source.html#l00019">19</a> of file <a class="el" href="_parser_helper_8cpp_source.html">ParserHelper.cpp</a>.</p>
1164 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_tensor_8hpp_source.html#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00184">OriginsDescriptor::GetNumDimensions()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, and <a class="el" href="_descriptors_8cpp_source.html#l00159">OriginsDescriptor::SetViewOriginCoord()</a>.</p>
1166 <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.html#l01901">TfLiteParser::OutputShapeOfReshape()</a>.</p>
1167 <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <span class="keyword">const</span> uint32_t inputRank = concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">GetNumDimensions</a>();</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="comment">// double check dimensions of the tensors</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">if</span> (inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() != inputRank)</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a>(</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  boost::str(</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  boost::format(</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="stringliteral">"The number of dimensions: %1% for input tensors of the "</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="stringliteral">"concatenation op should be %2% %3%"</span>)</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  % inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  % inputRank</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  % <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  }</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0; j < concatAxis; ++j)</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a2b125117aa61f9baf3a9cb8658aa61a2">SetViewOriginCoord</a>(inputIndex, j, 0);</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a2b125117aa61f9baf3a9cb8658aa61a2">SetViewOriginCoord</a>(inputIndex, concatAxis, mergeDimOrigin);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  mergeDimOrigin += inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[concatAxis];</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = concatAxis + 1; j < inputRank; ++j)</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a2b125117aa61f9baf3a9cb8658aa61a2">SetViewOriginCoord</a>(inputIndex, j, 0);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorInfo::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00092">Tensor.hpp:92</a></div></div>
1168 <div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div>
1169 <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a2b125117aa61f9baf3a9cb8658aa61a2"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a2b125117aa61f9baf3a9cb8658aa61a2">armnn::OriginsDescriptor::SetViewOriginCoord</a></div><div class="ttdeci">Status SetViewOriginCoord(uint32_t view, uint32_t coord, uint32_t value)</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00159">Descriptors.cpp:159</a></div></div>
1170 <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div>
1171 <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a78e8266be865fdd92cadd04d6e25ae1f"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">armnn::OriginsDescriptor::GetNumDimensions</a></div><div class="ttdeci">uint32_t GetNumDimensions() const</div><div class="ttdoc">Get the number of dimensions. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00184">Descriptors.cpp:184</a></div></div>
1172 <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div>
1173 </div><!-- fragment -->
1176 <a id="afb0aab92dc5b9bc5d7ebe2ea036f3809"></a>
1177 <h2 class="memtitle"><span class="permalink"><a href="#afb0aab92dc5b9bc5d7ebe2ea036f3809">◆ </a></span>QuantizedVector() <span class="overload">[1/3]</span></h2>
1179 <div class="memitem">
1180 <div class="memproto">
1181 <table class="memname">
1183 <td class="memname">std::vector<T> armnnUtils::QuantizedVector </td>
1185 <td class="paramtype">FloatIt </td>
1186 <td class="paramname"><em>first</em>, </td>
1189 <td class="paramkey"></td>
1191 <td class="paramtype">FloatIt </td>
1192 <td class="paramname"><em>last</em>, </td>
1195 <td class="paramkey"></td>
1197 <td class="paramtype">float </td>
1198 <td class="paramname"><em>qScale</em>, </td>
1201 <td class="paramkey"></td>
1203 <td class="paramtype">int32_t </td>
1204 <td class="paramname"><em>qOffset</em> </td>
1212 </div><div class="memdoc">
1214 <p class="definition">Definition at line <a class="el" href="_quantize_helper_8hpp_source.html#l00089">89</a> of file <a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>.</p>
1215 <div class="fragment"><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> {</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  std::vector<T> quantized;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  quantized.reserve(boost::numeric_cast<size_t>(std::distance(first, last)));</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> it = first; it != last; ++it)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">auto</span> f = *it;</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  T q = SelectiveQuantize<T>(f, qScale, qOffset);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  quantized.push_back(q);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  }</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span> </div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> quantized;</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div></div><!-- fragment -->
1218 <a id="ad10541679f7d9740ba7a3c96b9843456"></a>
1219 <h2 class="memtitle"><span class="permalink"><a href="#ad10541679f7d9740ba7a3c96b9843456">◆ </a></span>QuantizedVector() <span class="overload">[2/3]</span></h2>
1221 <div class="memitem">
1222 <div class="memproto">
1223 <table class="memname">
1225 <td class="memname">std::vector<T> armnnUtils::QuantizedVector </td>
1227 <td class="paramtype">const std::vector< float > & </td>
1228 <td class="paramname"><em>array</em>, </td>
1231 <td class="paramkey"></td>
1233 <td class="paramtype">float </td>
1234 <td class="paramname"><em>qScale</em> = <code>1.f</code>, </td>
1237 <td class="paramkey"></td>
1239 <td class="paramtype">int32_t </td>
1240 <td class="paramname"><em>qOffset</em> = <code>0</code> </td>
1248 </div><div class="memdoc">
1250 <p class="definition">Definition at line <a class="el" href="_quantize_helper_8hpp_source.html#l00105">105</a> of file <a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>.</p>
1251 <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> QuantizedVector<T>(array.begin(), array.end(), qScale, qOffset);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> }</div></div><!-- fragment -->
1254 <a id="af29a7b903bf7ae9639ea29bc05ccb289"></a>
1255 <h2 class="memtitle"><span class="permalink"><a href="#af29a7b903bf7ae9639ea29bc05ccb289">◆ </a></span>QuantizedVector() <span class="overload">[3/3]</span></h2>
1257 <div class="memitem">
1258 <div class="memproto">
1259 <table class="memname">
1261 <td class="memname">std::vector<T> armnnUtils::QuantizedVector </td>
1263 <td class="paramtype">std::initializer_list< float > </td>
1264 <td class="paramname"><em>array</em>, </td>
1267 <td class="paramkey"></td>
1269 <td class="paramtype">float </td>
1270 <td class="paramname"><em>qScale</em> = <code>1.f</code>, </td>
1273 <td class="paramkey"></td>
1275 <td class="paramtype">int32_t </td>
1276 <td class="paramname"><em>qOffset</em> = <code>0</code> </td>
1284 </div><div class="memdoc">
1286 <p class="definition">Definition at line <a class="el" href="_quantize_helper_8hpp_source.html#l00111">111</a> of file <a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>.</p>
1287 <div class="fragment"><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> QuantizedVector<T>(array.begin(), array.end(), qScale, qOffset);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> }</div></div><!-- fragment -->
1290 <a id="a5135dc1ce7a8aeb97623c1a92c5a3543"></a>
1291 <h2 class="memtitle"><span class="permalink"><a href="#a5135dc1ce7a8aeb97623c1a92c5a3543">◆ </a></span>SelectiveDequantize()</h2>
1293 <div class="memitem">
1294 <div class="memproto">
1295 <table class="memname">
1297 <td class="memname">float armnnUtils::SelectiveDequantize </td>
1299 <td class="paramtype">T </td>
1300 <td class="paramname"><em>value</em>, </td>
1303 <td class="paramkey"></td>
1305 <td class="paramtype">float </td>
1306 <td class="paramname"><em>scale</em>, </td>
1309 <td class="paramkey"></td>
1311 <td class="paramtype">int32_t </td>
1312 <td class="paramname"><em>offset</em> </td>
1320 </div><div class="memdoc">
1322 <p class="definition">Definition at line <a class="el" href="_quantize_helper_8hpp_source.html#l00075">75</a> of file <a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>.</p>
1324 <p class="reference">References <a class="el" href="_quantize_helper_8hpp_source.html#l00030">SelectiveQuantizer< T, DoQuantize >::Dequantize()</a>.</p>
1326 <p class="reference">Referenced by <a class="el" href="_conv2d_test_impl_8cpp_source.html#l00169">ApplyBias()</a>.</p>
1327 <div class="fragment"><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> {</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> SelectiveQuantizer<T, armnn::IsQuantizedType<T>()>::<a class="code" href="namespacearmnn.html#a855293b1be0581fb61ef6a1c5b027d0f">Dequantize</a>(value, scale, offset);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> };</div><div class="ttc" id="namespacearmnn_html_a855293b1be0581fb61ef6a1c5b027d0f"><div class="ttname"><a href="namespacearmnn.html#a855293b1be0581fb61ef6a1c5b027d0f">armnn::Dequantize</a></div><div class="ttdeci">float Dequantize(QuantizedType value, float scale, int32_t offset)</div><div class="ttdef"><b>Definition:</b> <a href="_types_utils_8cpp_source.html#l00047">TypesUtils.cpp:47</a></div></div>
1328 </div><!-- fragment -->
1331 <a id="a21b249bca87a5ad47359abd9ec7acada"></a>
1332 <h2 class="memtitle"><span class="permalink"><a href="#a21b249bca87a5ad47359abd9ec7acada">◆ </a></span>SelectiveQuantize()</h2>
1334 <div class="memitem">
1335 <div class="memproto">
1336 <table class="memname">
1338 <td class="memname">T armnnUtils::SelectiveQuantize </td>
1340 <td class="paramtype">float </td>
1341 <td class="paramname"><em>value</em>, </td>
1344 <td class="paramkey"></td>
1346 <td class="paramtype">float </td>
1347 <td class="paramname"><em>scale</em>, </td>
1350 <td class="paramkey"></td>
1352 <td class="paramtype">int32_t </td>
1353 <td class="paramname"><em>offset</em> </td>
1361 </div><div class="memdoc">
1363 <p class="definition">Definition at line <a class="el" href="_quantize_helper_8hpp_source.html#l00069">69</a> of file <a class="el" href="_quantize_helper_8hpp_source.html">QuantizeHelper.hpp</a>.</p>
1365 <p class="reference">References <a class="el" href="_quantize_helper_8hpp_source.html#l00025">SelectiveQuantizer< T, DoQuantize >::Quantize()</a>.</p>
1366 <div class="fragment"><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> {</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> SelectiveQuantizer<T, armnn::IsQuantizedType<T>()>::<a class="code" href="namespacearmnn.html#ad773a034fb9983e15f3094b4c5c7c30c">Quantize</a>(value, scale, offset);</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> };</div><div class="ttc" id="namespacearmnn_html_ad773a034fb9983e15f3094b4c5c7c30c"><div class="ttname"><a href="namespacearmnn.html#ad773a034fb9983e15f3094b4c5c7c30c">armnn::Quantize</a></div><div class="ttdeci">QuantizedType Quantize(float value, float scale, int32_t offset)</div><div class="ttdoc">Explicit specialization of Quantize for int8_t. </div><div class="ttdef"><b>Definition:</b> <a href="_types_utils_8cpp_source.html#l00031">TypesUtils.cpp:31</a></div></div>
1367 </div><!-- fragment -->
1370 <a id="a71164960978af8b3820717bc92b9a322"></a>
1371 <h2 class="memtitle"><span class="permalink"><a href="#a71164960978af8b3820717bc92b9a322">◆ </a></span>SplitBy()</h2>
1373 <div class="memitem">
1374 <div class="memproto">
1375 <table class="memname">
1377 <td class="memname">std::vector< std::string > SplitBy </td>
1379 <td class="paramtype">const std::string & </td>
1380 <td class="paramname"><em>originalString</em>, </td>
1383 <td class="paramkey"></td>
1385 <td class="paramtype">const std::string & </td>
1386 <td class="paramname"><em>delimiter</em> = <code>" "</code>, </td>
1389 <td class="paramkey"></td>
1391 <td class="paramtype">bool </td>
1392 <td class="paramname"><em>includeEmptyToken</em> = <code><a class="el" href="_ref_layer_tests_8cpp.html#a67e2647a90dec71bb79c8b38872ba570">false</a></code> </td>
1400 </div><div class="memdoc">
1401 <p>Split a string into tokens by a delimiter</p>
1402 <dl class="params"><dt>Parameters</dt><dd>
1403 <table class="params">
1404 <tr><td class="paramdir">[in]</td><td class="paramname">originalString</td><td>Original string to be split </td></tr>
1405 <tr><td class="paramdir">[in]</td><td class="paramname">delimiter</td><td>Delimiter used to split <code>originalString</code> </td></tr>
1406 <tr><td class="paramdir">[in]</td><td class="paramname">includeEmptyToekn</td><td>If true, include empty tokens in the result </td></tr>
1410 <dl class="section return"><dt>Returns</dt><dd>A vector of tokens split from <code>originalString</code> by </dd></dl>
1412 <p class="definition">Definition at line <a class="el" href="_model_accuracy_checker_8cpp_source.html#l00041">41</a> of file <a class="el" href="_model_accuracy_checker_8cpp_source.html">ModelAccuracyChecker.cpp</a>.</p>
1414 <p class="reference">Referenced by <a class="el" href="_model_accuracy_tool-_armnn_8cpp_source.html#l00466">LoadModelOutputLabels()</a>, and <a class="el" href="_model_accuracy_tool-_armnn_8cpp_source.html#l00049">main()</a>.</p>
1415 <div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::vector<std::string> tokens;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">size_t</span> cur = 0;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">size_t</span> next = 0;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordflow">while</span> ((next = originalString.find(delimiter, cur)) != std::string::npos)</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="comment">// Skip empty tokens, unless explicitly stated to include them.</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> (next - cur > 0 || includeEmptyToken)</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  tokens.push_back(originalString.substr(cur, next - cur));</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  cur = next + delimiter.size();</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  }</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="comment">// Get the remaining token</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="comment">// Skip empty tokens, unless explicitly stated to include them.</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordflow">if</span> (originalString.size() - cur > 0 || includeEmptyToken)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  tokens.push_back(originalString.substr(cur, originalString.size() - cur));</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> tokens;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div></div><!-- fragment -->
1418 <a id="a24f7c8ffa12c4c91bc2cecd4d329add4"></a>
1419 <h2 class="memtitle"><span class="permalink"><a href="#a24f7c8ffa12c4c91bc2cecd4d329add4">◆ </a></span>Strip()</h2>
1421 <div class="memitem">
1422 <div class="memproto">
1423 <table class="memname">
1425 <td class="memname">std::string Strip </td>
1427 <td class="paramtype">const std::string & </td>
1428 <td class="paramname"><em>originalString</em>, </td>
1431 <td class="paramkey"></td>
1433 <td class="paramtype">const std::string & </td>
1434 <td class="paramname"><em>characterSet</em> = <code>" "</code> </td>
1442 </div><div class="memdoc">
1443 <p>Remove any preceding and trailing character specified in the characterSet.</p>
1444 <dl class="params"><dt>Parameters</dt><dd>
1445 <table class="params">
1446 <tr><td class="paramdir">[in]</td><td class="paramname">originalString</td><td>Original string to be stripped </td></tr>
1447 <tr><td class="paramdir">[in]</td><td class="paramname">characterSet</td><td>Set of characters to be stripped from <code>originalString</code> </td></tr>
1451 <dl class="section return"><dt>Returns</dt><dd>A string stripped of all characters specified in <code>characterSet</code> from <code>originalString</code> </dd></dl>
1453 <p class="definition">Definition at line <a class="el" href="_model_accuracy_checker_8cpp_source.html#l00065">65</a> of file <a class="el" href="_model_accuracy_checker_8cpp_source.html">ModelAccuracyChecker.cpp</a>.</p>
1455 <p class="reference">Referenced by <a class="el" href="_model_accuracy_tool-_armnn_8cpp_source.html#l00466">LoadModelOutputLabels()</a>.</p>
1456 <div class="fragment"><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> {</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  BOOST_ASSERT(!characterSet.empty());</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">const</span> std::size_t firstFound = originalString.find_first_not_of(characterSet);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">const</span> std::size_t lastFound = originalString.find_last_not_of(characterSet);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="comment">// Return empty if the originalString is empty or the originalString contains only to-be-striped characters</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">if</span> (firstFound == std::string::npos || lastFound == std::string::npos)</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  {</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">return</span> <span class="stringliteral">""</span>;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  }</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordflow">return</span> originalString.substr(firstFound, lastFound + 1 - firstFound);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> }</div></div><!-- fragment -->
1459 <a id="a2e0aa273755368a1bf5fc65102df4a92"></a>
1460 <h2 class="memtitle"><span class="permalink"><a href="#a2e0aa273755368a1bf5fc65102df4a92">◆ </a></span>VerifyInt32()</h2>
1462 <div class="memitem">
1463 <div class="memproto">
1464 <table class="memname">
1466 <td class="memname">int32_t VerifyInt32 </td>
1468 <td class="paramtype">const char * </td>
1469 <td class="paramname"><em>expr</em>, </td>
1472 <td class="paramkey"></td>
1474 <td class="paramtype">int64_t </td>
1475 <td class="paramname"><em>value</em>, </td>
1478 <td class="paramkey"></td>
1480 <td class="paramtype">const <a class="el" href="structarmnn_1_1_check_location.html">armnn::CheckLocation</a> & </td>
1481 <td class="paramname"><em>location</em> </td>
1489 </div><div class="memdoc">
1491 <p class="definition">Definition at line <a class="el" href="_verification_helpers_8cpp_source.html#l00055">55</a> of file <a class="el" href="_verification_helpers_8cpp_source.html">VerificationHelpers.cpp</a>.</p>
1493 <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00029">CheckLocation::AsString()</a>.</p>
1494 <div class="fragment"><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordflow">if</span> (value < std::numeric_limits<int>::min() || value > std::numeric_limits<int>::max())</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  boost::str(</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  boost::format(<span class="stringliteral">"'%1%' must should fit into a int32 (ArmNN don't support int64), received: %2% at %3%"</span>) %</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  expr %</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  value %</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  location.<a class="code" href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">AsString</a>() ));</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  }</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordflow">return</span> <span class="keyword">static_cast<</span>int32_t<span class="keyword">></span>(value);</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  }</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div>
1495 <div class="ttc" id="structarmnn_1_1_check_location_html_a5e3562cda960da001597e7dd5679b140"><div class="ttname"><a href="structarmnn_1_1_check_location.html#a5e3562cda960da001597e7dd5679b140">armnn::CheckLocation::AsString</a></div><div class="ttdeci">std::string AsString() const</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00029">Exceptions.hpp:29</a></div></div>
1496 </div><!-- fragment -->
1499 <h2 class="groupheader">Variable Documentation</h2>
1500 <a id="a59cbccbfbae7633020d200f8c23fe69e"></a>
1501 <h2 class="memtitle"><span class="permalink"><a href="#a59cbccbfbae7633020d200f8c23fe69e">◆ </a></span>ArmNNToNHWC</h2>
1503 <div class="memitem">
1504 <div class="memproto">
1505 <table class="memname">
1507 <td class="memname">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> ArmNNToNHWC = { 0, 3, 1, 2 }</td>
1510 </div><div class="memdoc">
1512 <p class="definition">Definition at line <a class="el" href="_parser_helper_8cpp_source.html#l00017">17</a> of file <a class="el" href="_parser_helper_8cpp_source.html">ParserHelper.cpp</a>.</p>
1516 <a id="a12124184ac6aec018beb98b9715330c7"></a>
1517 <h2 class="memtitle"><span class="permalink"><a href="#a12124184ac6aec018beb98b9715330c7">◆ </a></span>NHWCToArmNN</h2>
1519 <div class="memitem">
1520 <div class="memproto">
1521 <table class="memname">
1523 <td class="memname">const <a class="el" href="classarmnn_1_1_permutation_vector.html">armnn::PermutationVector</a> NHWCToArmNN = { 0, 2, 3, 1 }</td>
1526 </div><div class="memdoc">
1528 <p class="definition">Definition at line <a class="el" href="_parser_helper_8cpp_source.html#l00016">16</a> of file <a class="el" href="_parser_helper_8cpp_source.html">ParserHelper.cpp</a>.</p>
1530 <p class="reference">Referenced by <a class="el" href="_image_tensor_generator_8hpp_source.html#l00091">PrepareImageTensor< float >()</a>.</p>
1534 </div><!-- contents -->
1535 </div><!-- doc-content -->
1536 <!-- start footer part -->
1537 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1539 <li class="navelem"><a class="el" href="namespacearmnn_utils.html">armnnUtils</a></li>
1540 <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by
1541 <a href="http://www.doxygen.org/index.html">
1542 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>