arm_compute v18.05
[platform/upstream/armcl.git] / documentation / classarm__compute_1_1test_1_1_simple_tensor.xhtml
1 <!-- HTML header for doxygen 1.8.9.1-->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
7 <meta name="generator" content="Doxygen 1.8.11"/>
8 <meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
9 <title>Compute Library: SimpleTensor&lt; T &gt; Class Template Reference</title>
10 <link href="tabs.css" rel="stylesheet" type="text/css"/>
11 <script type="text/javascript" src="jquery.js"></script>
12 <script type="text/javascript" src="dynsections.js"></script>
13 <link href="navtree.css" rel="stylesheet" type="text/css"/>
14 <script type="text/javascript" src="resize.js"></script>
15 <script type="text/javascript" src="navtreedata.js"></script>
16 <script type="text/javascript" src="navtree.js"></script>
17 <script type="text/javascript">
18   $(document).ready(initResizable);
19   $(window).load(resizeHeight);
20 </script>
21 <link href="search/search.css" rel="stylesheet" type="text/css"/>
22 <script type="text/javascript" src="search/searchdata.js"></script>
23 <script type="text/javascript" src="search/search.js"></script>
24 <script type="text/javascript">
25   $(document).ready(function() { init_search(); });
26 </script>
27 <script type="text/x-mathjax-config">
28   MathJax.Hub.Config({
29     extensions: ["tex2jax.js"],
30     jax: ["input/TeX","output/HTML-CSS"],
31 });
32 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
33 <link href="doxygen.css" rel="stylesheet" type="text/css" />
34 </head>
35 <body>
36 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
37 <div id="titlearea">
38 <table cellspacing="0" cellpadding="0">
39  <tbody>
40  <tr style="height: 56px;">
41   <td style="padding-left: 0.5em;">
42    <div id="projectname">Compute Library
43    &#160;<span id="projectnumber">18.05</span>
44    </div>
45   </td>
46  </tr>
47  </tbody>
48 </table>
49 </div>
50 <!-- end header part -->
51 <!-- Generated by Doxygen 1.8.11 -->
52 <script type="text/javascript">
53 var searchBox = new SearchBox("searchBox", "search",false,'Search');
54 </script>
55   <div id="navrow1" class="tabs">
56     <ul class="tablist">
57       <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
58       <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
59       <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
60       <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
61       <li><a href="files.xhtml"><span>Files</span></a></li>
62       <li>
63         <div id="MSearchBox" class="MSearchBoxInactive">
64         <span class="left">
65           <img id="MSearchSelect" src="search/mag_sel.png"
66                onmouseover="return searchBox.OnSearchSelectShow()"
67                onmouseout="return searchBox.OnSearchSelectHide()"
68                alt=""/>
69           <input type="text" id="MSearchField" value="Search" accesskey="S"
70                onfocus="searchBox.OnSearchFieldFocus(true)" 
71                onblur="searchBox.OnSearchFieldFocus(false)" 
72                onkeyup="searchBox.OnSearchFieldChange(event)"/>
73           </span><span class="right">
74             <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
75           </span>
76         </div>
77       </li>
78     </ul>
79   </div>
80   <div id="navrow2" class="tabs2">
81     <ul class="tablist">
82       <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
83       <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
84       <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
85       <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
86     </ul>
87   </div>
88 </div><!-- top -->
89 <div id="side-nav" class="ui-resizable side-nav-resizable">
90   <div id="nav-tree">
91     <div id="nav-tree-contents">
92       <div id="nav-sync" class="sync"></div>
93     </div>
94   </div>
95   <div id="splitbar" style="-moz-user-select:none;" 
96        class="ui-resizable-handle">
97   </div>
98 </div>
99 <script type="text/javascript">
100 $(document).ready(function(){initNavTree('classarm__compute_1_1test_1_1_simple_tensor.xhtml','');});
101 </script>
102 <div id="doc-content">
103 <!-- window showing the filter options -->
104 <div id="MSearchSelectWindow"
105      onmouseover="return searchBox.OnSearchSelectShow()"
106      onmouseout="return searchBox.OnSearchSelectHide()"
107      onkeydown="return searchBox.OnSearchSelectKey(event)">
108 </div>
109
110 <!-- iframe showing the search results (closed by default) -->
111 <div id="MSearchResultsWindow">
112 <iframe src="javascript:void(0)" frameborder="0" 
113         name="MSearchResults" id="MSearchResults">
114 </iframe>
115 </div>
116
117 <div class="header">
118   <div class="summary">
119 <a href="#pub-types">Public Types</a> &#124;
120 <a href="#pub-methods">Public Member Functions</a> &#124;
121 <a href="#friends">Friends</a>  </div>
122   <div class="headertitle">
123 <div class="title">SimpleTensor&lt; T &gt; Class Template Reference</div>  </div>
124 </div><!--header-->
125 <div class="contents">
126
127 <p>Simple tensor object that stores elements in a consecutive chunk of memory.  
128  <a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#details">More...</a></p>
129
130 <p><code>#include &lt;<a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>&gt;</code></p>
131 <div class="dynheader">
132 Collaboration diagram for SimpleTensor&lt; T &gt;:</div>
133 <div class="dyncontent">
134 <div class="center"><iframe scrolling="no" frameborder="0" src="classarm__compute_1_1test_1_1_simple_tensor__coll__graph.svg" width="155" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
135 </div>
136 <center><span class="legend">[<a target="top" href="graph_legend.xhtml">legend</a>]</span></center></div>
137 <table class="memberdecls">
138 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
139 Public Types</h2></td></tr>
140 <tr class="memitem:afb9ded5f49336ae503bb9f2035ea902b"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a> = T</td></tr>
141 <tr class="memdesc:afb9ded5f49336ae503bb9f2035ea902b"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> value type.  <a href="#afb9ded5f49336ae503bb9f2035ea902b">More...</a><br /></td></tr>
142 <tr class="separator:afb9ded5f49336ae503bb9f2035ea902b"><td class="memSeparator" colspan="2">&#160;</td></tr>
143 <tr class="memitem:acf18a24d1f21176e811e88cee2a70f1f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#acf18a24d1f21176e811e88cee2a70f1f">Buffer</a> = std::unique_ptr&lt; <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a>[]&gt;</td></tr>
144 <tr class="memdesc:acf18a24d1f21176e811e88cee2a70f1f"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> buffer pointer type.  <a href="#acf18a24d1f21176e811e88cee2a70f1f">More...</a><br /></td></tr>
145 <tr class="separator:acf18a24d1f21176e811e88cee2a70f1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
146 </table><table class="memberdecls">
147 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
148 Public Member Functions</h2></td></tr>
149 <tr class="memitem:a011bb65bd16aaf66b8efb3929692b2ce"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a011bb65bd16aaf66b8efb3929692b2ce">SimpleTensor</a> ()=default</td></tr>
150 <tr class="memdesc:a011bb65bd16aaf66b8efb3929692b2ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an uninitialised tensor.  <a href="#a011bb65bd16aaf66b8efb3929692b2ce">More...</a><br /></td></tr>
151 <tr class="separator:a011bb65bd16aaf66b8efb3929692b2ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
152 <tr class="memitem:a9a1cd44d7621633f8ae04a3a16287673"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a1cd44d7621633f8ae04a3a16287673">SimpleTensor</a> (<a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">shape</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac4b36cc1e56b0b7e579bb4b7196490db">format</a>, int <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">fixed_point_position</a>=0)</td></tr>
153 <tr class="memdesc:a9a1cd44d7621633f8ae04a3a16287673"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an uninitialised tensor of the given <code>shape</code> and <code>format</code>.  <a href="#a9a1cd44d7621633f8ae04a3a16287673">More...</a><br /></td></tr>
154 <tr class="separator:a9a1cd44d7621633f8ae04a3a16287673"><td class="memSeparator" colspan="2">&#160;</td></tr>
155 <tr class="memitem:a980f42d5fecf35d2cbce00041fbe4d3d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a980f42d5fecf35d2cbce00041fbe4d3d">SimpleTensor</a> (<a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">shape</a>, <a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">data_type</a>, int <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>=1, int <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">fixed_point_position</a>=0, <a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac74736e3863207232a23b7181c1d0f44">quantization_info</a>=<a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>(), <a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a5f63b63606dbbbe54474e6e970a6738c">data_layout</a>=<a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</td></tr>
156 <tr class="memdesc:a980f42d5fecf35d2cbce00041fbe4d3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an uninitialised tensor of the given <code>shape</code> and <code>data</code> type.  <a href="#a980f42d5fecf35d2cbce00041fbe4d3d">More...</a><br /></td></tr>
157 <tr class="separator:a980f42d5fecf35d2cbce00041fbe4d3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
158 <tr class="memitem:ae1769959044a4356fdc93cac2b03a5f6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ae1769959044a4356fdc93cac2b03a5f6">SimpleTensor</a> (const <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> &amp;tensor)</td></tr>
159 <tr class="memdesc:ae1769959044a4356fdc93cac2b03a5f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a deep copy of the given <code>tensor</code>.  <a href="#ae1769959044a4356fdc93cac2b03a5f6">More...</a><br /></td></tr>
160 <tr class="separator:ae1769959044a4356fdc93cac2b03a5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
161 <tr class="memitem:ad4622eda610d53fb6852209f0213aeed"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ad4622eda610d53fb6852209f0213aeed">operator=</a> (<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> tensor)</td></tr>
162 <tr class="memdesc:ad4622eda610d53fb6852209f0213aeed"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a deep copy of the given <code>tensor</code>.  <a href="#ad4622eda610d53fb6852209f0213aeed">More...</a><br /></td></tr>
163 <tr class="separator:ad4622eda610d53fb6852209f0213aeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
164 <tr class="memitem:a40eed42b5858849fb8570018760ba996"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a40eed42b5858849fb8570018760ba996">SimpleTensor</a> (<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> &amp;&amp;)=default</td></tr>
165 <tr class="memdesc:a40eed42b5858849fb8570018760ba996"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow instances of this class to be move constructed.  <a href="#a40eed42b5858849fb8570018760ba996">More...</a><br /></td></tr>
166 <tr class="separator:a40eed42b5858849fb8570018760ba996"><td class="memSeparator" colspan="2">&#160;</td></tr>
167 <tr class="memitem:a16d7ecd97f89cf9dc40b3fc7c9abe2cd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a16d7ecd97f89cf9dc40b3fc7c9abe2cd">~SimpleTensor</a> ()=default</td></tr>
168 <tr class="memdesc:a16d7ecd97f89cf9dc40b3fc7c9abe2cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default destructor.  <a href="#a16d7ecd97f89cf9dc40b3fc7c9abe2cd">More...</a><br /></td></tr>
169 <tr class="separator:a16d7ecd97f89cf9dc40b3fc7c9abe2cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
170 <tr class="memitem:af6124c81d1e81f182d64ae76caa3fa52"><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#af6124c81d1e81f182d64ae76caa3fa52">operator[]</a> (size_t <a class="el" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>)</td></tr>
171 <tr class="memdesc:af6124c81d1e81f182d64ae76caa3fa52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return value at <code>offset</code> in the buffer.  <a href="#af6124c81d1e81f182d64ae76caa3fa52">More...</a><br /></td></tr>
172 <tr class="separator:af6124c81d1e81f182d64ae76caa3fa52"><td class="memSeparator" colspan="2">&#160;</td></tr>
173 <tr class="memitem:a73aecdf45b3f257e0c15757a18573ea4"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a73aecdf45b3f257e0c15757a18573ea4">operator[]</a> (size_t <a class="el" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>) const </td></tr>
174 <tr class="memdesc:a73aecdf45b3f257e0c15757a18573ea4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return constant value at <code>offset</code> in the buffer.  <a href="#a73aecdf45b3f257e0c15757a18573ea4">More...</a><br /></td></tr>
175 <tr class="separator:a73aecdf45b3f257e0c15757a18573ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
176 <tr class="memitem:aba5871b3e4a65d057ec1c28fce8b00ba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">shape</a> () const override</td></tr>
177 <tr class="memdesc:aba5871b3e4a65d057ec1c28fce8b00ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shape of the tensor.  <a href="#aba5871b3e4a65d057ec1c28fce8b00ba">More...</a><br /></td></tr>
178 <tr class="separator:aba5871b3e4a65d057ec1c28fce8b00ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
179 <tr class="memitem:a62b67b578f684c4d516843c9dea86a23"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a62b67b578f684c4d516843c9dea86a23">element_size</a> () const override</td></tr>
180 <tr class="memdesc:a62b67b578f684c4d516843c9dea86a23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Size of each element in the tensor in bytes.  <a href="#a62b67b578f684c4d516843c9dea86a23">More...</a><br /></td></tr>
181 <tr class="separator:a62b67b578f684c4d516843c9dea86a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
182 <tr class="memitem:ad7701a09a964eab360a8e51fa7ad2c16"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ad7701a09a964eab360a8e51fa7ad2c16">size</a> () const override</td></tr>
183 <tr class="memdesc:ad7701a09a964eab360a8e51fa7ad2c16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total size of the tensor in bytes.  <a href="#ad7701a09a964eab360a8e51fa7ad2c16">More...</a><br /></td></tr>
184 <tr class="separator:ad7701a09a964eab360a8e51fa7ad2c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
185 <tr class="memitem:ac4b36cc1e56b0b7e579bb4b7196490db"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac4b36cc1e56b0b7e579bb4b7196490db">format</a> () const override</td></tr>
186 <tr class="memdesc:ac4b36cc1e56b0b7e579bb4b7196490db"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="struct_image.xhtml" title="Structure to hold Image information. ">Image</a> format of the tensor.  <a href="#ac4b36cc1e56b0b7e579bb4b7196490db">More...</a><br /></td></tr>
187 <tr class="separator:ac4b36cc1e56b0b7e579bb4b7196490db"><td class="memSeparator" colspan="2">&#160;</td></tr>
188 <tr class="memitem:a5f63b63606dbbbe54474e6e970a6738c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a5f63b63606dbbbe54474e6e970a6738c">data_layout</a> () const override</td></tr>
189 <tr class="memdesc:a5f63b63606dbbbe54474e6e970a6738c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data layout of the tensor.  <a href="#a5f63b63606dbbbe54474e6e970a6738c">More...</a><br /></td></tr>
190 <tr class="separator:a5f63b63606dbbbe54474e6e970a6738c"><td class="memSeparator" colspan="2">&#160;</td></tr>
191 <tr class="memitem:a9a3e72153aeb3ed212e9c3698774e881"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">data_type</a> () const override</td></tr>
192 <tr class="memdesc:a9a3e72153aeb3ed212e9c3698774e881"><td class="mdescLeft">&#160;</td><td class="mdescRight">Data type of the tensor.  <a href="#a9a3e72153aeb3ed212e9c3698774e881">More...</a><br /></td></tr>
193 <tr class="separator:a9a3e72153aeb3ed212e9c3698774e881"><td class="memSeparator" colspan="2">&#160;</td></tr>
194 <tr class="memitem:abdd3637f2bbde9d7d0cc0b7bbd8400bb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a> () const override</td></tr>
195 <tr class="memdesc:abdd3637f2bbde9d7d0cc0b7bbd8400bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of channels of the tensor.  <a href="#abdd3637f2bbde9d7d0cc0b7bbd8400bb">More...</a><br /></td></tr>
196 <tr class="separator:abdd3637f2bbde9d7d0cc0b7bbd8400bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
197 <tr class="memitem:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a> () const override</td></tr>
198 <tr class="memdesc:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of elements of the tensor.  <a href="#aedcfdd4c3b92fe0d63b5463c7ad1d21e">More...</a><br /></td></tr>
199 <tr class="separator:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="memSeparator" colspan="2">&#160;</td></tr>
200 <tr class="memitem:a79e20eacb1e963e24a21ebd7369effd7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">PaddingSize</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a79e20eacb1e963e24a21ebd7369effd7">padding</a> () const override</td></tr>
201 <tr class="memdesc:a79e20eacb1e963e24a21ebd7369effd7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Available padding around the tensor.  <a href="#a79e20eacb1e963e24a21ebd7369effd7">More...</a><br /></td></tr>
202 <tr class="separator:a79e20eacb1e963e24a21ebd7369effd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
203 <tr class="memitem:a35ccf2eb0c18a15feab2db98b307b78b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">fixed_point_position</a> () const override</td></tr>
204 <tr class="memdesc:a35ccf2eb0c18a15feab2db98b307b78b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Number of bits for the fractional part.  <a href="#a35ccf2eb0c18a15feab2db98b307b78b">More...</a><br /></td></tr>
205 <tr class="separator:a35ccf2eb0c18a15feab2db98b307b78b"><td class="memSeparator" colspan="2">&#160;</td></tr>
206 <tr class="memitem:ac74736e3863207232a23b7181c1d0f44"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac74736e3863207232a23b7181c1d0f44">quantization_info</a> () const override</td></tr>
207 <tr class="memdesc:ac74736e3863207232a23b7181c1d0f44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Quantization info in case of asymmetric quantized type.  <a href="#ac74736e3863207232a23b7181c1d0f44">More...</a><br /></td></tr>
208 <tr class="separator:ac74736e3863207232a23b7181c1d0f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
209 <tr class="memitem:a0c52a8f0085b55d907af7210ef2069d0"><td class="memItemLeft" align="right" valign="top">const T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a0c52a8f0085b55d907af7210ef2069d0">data</a> () const </td></tr>
210 <tr class="memdesc:a0c52a8f0085b55d907af7210ef2069d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constant pointer to the underlying buffer.  <a href="#a0c52a8f0085b55d907af7210ef2069d0">More...</a><br /></td></tr>
211 <tr class="separator:a0c52a8f0085b55d907af7210ef2069d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
212 <tr class="memitem:adc1e16b293a89a9ccc9541058b5ca560"><td class="memItemLeft" align="right" valign="top">T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#adc1e16b293a89a9ccc9541058b5ca560">data</a> ()</td></tr>
213 <tr class="memdesc:adc1e16b293a89a9ccc9541058b5ca560"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pointer to the underlying buffer.  <a href="#adc1e16b293a89a9ccc9541058b5ca560">More...</a><br /></td></tr>
214 <tr class="separator:adc1e16b293a89a9ccc9541058b5ca560"><td class="memSeparator" colspan="2">&#160;</td></tr>
215 <tr class="memitem:a39537b09ccc3ce3d17922f4ef49a123f"><td class="memItemLeft" align="right" valign="top">const void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a39537b09ccc3ce3d17922f4ef49a123f">operator()</a> (const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;coord) const override</td></tr>
216 <tr class="memdesc:a39537b09ccc3ce3d17922f4ef49a123f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read only access to the specified element.  <a href="#a39537b09ccc3ce3d17922f4ef49a123f">More...</a><br /></td></tr>
217 <tr class="separator:a39537b09ccc3ce3d17922f4ef49a123f"><td class="memSeparator" colspan="2">&#160;</td></tr>
218 <tr class="memitem:a2df95f7046b81e69a1265a42202ea068"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a2df95f7046b81e69a1265a42202ea068">operator()</a> (const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;coord) override</td></tr>
219 <tr class="memdesc:a2df95f7046b81e69a1265a42202ea068"><td class="mdescLeft">&#160;</td><td class="mdescRight">Access to the specified element.  <a href="#a2df95f7046b81e69a1265a42202ea068">More...</a><br /></td></tr>
220 <tr class="separator:a2df95f7046b81e69a1265a42202ea068"><td class="memSeparator" colspan="2">&#160;</td></tr>
221 <tr class="inherit_header pub_methods_classarm__compute_1_1test_1_1_i_accessor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarm__compute_1_1test_1_1_i_accessor')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml">IAccessor</a></td></tr>
222 <tr class="memitem:a04e5197de7318cec1ebfd3cea50f5de5 inherit pub_methods_classarm__compute_1_1test_1_1_i_accessor"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a04e5197de7318cec1ebfd3cea50f5de5">~IAccessor</a> ()=default</td></tr>
223 <tr class="memdesc:a04e5197de7318cec1ebfd3cea50f5de5 inherit pub_methods_classarm__compute_1_1test_1_1_i_accessor"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual destructor.  <a href="#a04e5197de7318cec1ebfd3cea50f5de5">More...</a><br /></td></tr>
224 <tr class="separator:a04e5197de7318cec1ebfd3cea50f5de5 inherit pub_methods_classarm__compute_1_1test_1_1_i_accessor"><td class="memSeparator" colspan="2">&#160;</td></tr>
225 </table><table class="memberdecls">
226 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
227 Friends</h2></td></tr>
228 <tr class="memitem:a467ad6d14558452f498777a7823fa252"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a467ad6d14558452f498777a7823fa252">RawTensor</a></td></tr>
229 <tr class="separator:a467ad6d14558452f498777a7823fa252"><td class="memSeparator" colspan="2">&#160;</td></tr>
230 <tr class="memitem:a51920d34b0fa5415e84891ad8e755224"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
231 <tr class="memitem:a51920d34b0fa5415e84891ad8e755224"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a> (<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;tensor1, <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;tensor2)</td></tr>
232 <tr class="memdesc:a51920d34b0fa5415e84891ad8e755224"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps the content of the provided tensors.  <a href="#a51920d34b0fa5415e84891ad8e755224">More...</a><br /></td></tr>
233 <tr class="separator:a51920d34b0fa5415e84891ad8e755224"><td class="memSeparator" colspan="2">&#160;</td></tr>
234 </table>
235 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
236 <div class="textblock"><h3>template&lt;typename T&gt;<br />
237 class arm_compute::test::SimpleTensor&lt; T &gt;</h3>
238
239 <p>Simple tensor object that stores elements in a consecutive chunk of memory. </p>
240 <p>It can be created by either loading an image from a file which also initialises the content of the tensor or by explcitly specifying the size. The latter leaves the content uninitialised.</p>
241 <p>Furthermore, the class provides methods to convert the tensor's values into different image format. </p>
242
243 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00059">59</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
244 </div><h2 class="groupheader">Member Typedef Documentation</h2>
245 <a class="anchor" id="acf18a24d1f21176e811e88cee2a70f1f"></a>
246 <div class="memitem">
247 <div class="memproto">
248       <table class="memname">
249         <tr>
250           <td class="memname">using <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#acf18a24d1f21176e811e88cee2a70f1f">Buffer</a> =  std::unique_ptr&lt;<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a>[]&gt;</td>
251         </tr>
252       </table>
253 </div><div class="memdoc">
254
255 <p><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> buffer pointer type. </p>
256
257 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00109">109</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
258
259 </div>
260 </div>
261 <a class="anchor" id="afb9ded5f49336ae503bb9f2035ea902b"></a>
262 <div class="memitem">
263 <div class="memproto">
264       <table class="memname">
265         <tr>
266           <td class="memname">using <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a> =  T</td>
267         </tr>
268       </table>
269 </div><div class="memdoc">
270
271 <p><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> value type. </p>
272
273 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00107">107</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
274
275 </div>
276 </div>
277 <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
278 <a class="anchor" id="a011bb65bd16aaf66b8efb3929692b2ce"></a>
279 <div class="memitem">
280 <div class="memproto">
281 <table class="mlabels">
282   <tr>
283   <td class="mlabels-left">
284       <table class="memname">
285         <tr>
286           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
287           <td>(</td>
288           <td class="paramname"></td><td>)</td>
289           <td></td>
290         </tr>
291       </table>
292   </td>
293   <td class="mlabels-right">
294 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
295   </tr>
296 </table>
297 </div><div class="memdoc">
298
299 <p>Create an uninitialised tensor. </p>
300
301 </div>
302 </div>
303 <a class="anchor" id="a9a1cd44d7621633f8ae04a3a16287673"></a>
304 <div class="memitem">
305 <div class="memproto">
306       <table class="memname">
307         <tr>
308           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
309           <td>(</td>
310           <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a>&#160;</td>
311           <td class="paramname"><em>shape</em>, </td>
312         </tr>
313         <tr>
314           <td class="paramkey"></td>
315           <td></td>
316           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a>&#160;</td>
317           <td class="paramname"><em>format</em>, </td>
318         </tr>
319         <tr>
320           <td class="paramkey"></td>
321           <td></td>
322           <td class="paramtype">int&#160;</td>
323           <td class="paramname"><em>fixed_point_position</em> = <code>0</code>&#160;</td>
324         </tr>
325         <tr>
326           <td></td>
327           <td>)</td>
328           <td></td><td></td>
329         </tr>
330       </table>
331 </div><div class="memdoc">
332
333 <p>Create an uninitialised tensor of the given <code>shape</code> and <code>format</code>. </p>
334 <dl class="params"><dt>Parameters</dt><dd>
335   <table class="params">
336     <tr><td class="paramdir">[in]</td><td class="paramname">shape</td><td>Shape of the new raw tensor. </td></tr>
337     <tr><td class="paramdir">[in]</td><td class="paramname">format</td><td>Format of the new raw tensor. </td></tr>
338     <tr><td class="paramdir">[in]</td><td class="paramname">fixed_point_position</td><td>(Optional) Number of bits for the fractional part of the fixed point numbers </td></tr>
339   </table>
340   </dd>
341 </dl>
342
343 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00233">233</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
344
345 <p>References <a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">arm_compute::NCHW</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
346 <div class="fragment"><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;      _shape(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">shape</a>),</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;      _format(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac4b36cc1e56b0b7e579bb4b7196490db">format</a>),</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;      _fixed_point_position(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">fixed_point_position</a>),</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;      _quantization_info(),</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;      _data_layout(<a class="code" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;{</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    _num_channels = <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>();</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    _buffer       = support::cpp14::make_unique&lt;T[]&gt;(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a>() * _num_channels);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_ac4b36cc1e56b0b7e579bb4b7196490db"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac4b36cc1e56b0b7e579bb4b7196490db">arm_compute::test::SimpleTensor::format</a></div><div class="ttdeci">Format format() const override</div><div class="ttdoc">Image format of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00325">SimpleTensor.h:325</a></div></div>
347 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_aba5871b3e4a65d057ec1c28fce8b00ba"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">arm_compute::test::SimpleTensor::shape</a></div><div class="ttdeci">TensorShape shape() const override</div><div class="ttdoc">Shape of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00294">SimpleTensor.h:294</a></div></div>
348 <div class="ttc" id="namespacearm__compute_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">arm_compute::DataLayout::NCHW</a></div><div class="ttdoc">Num samples, channels, height, width. </div></div>
349 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_abdd3637f2bbde9d7d0cc0b7bbd8400bb"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">arm_compute::test::SimpleTensor::num_channels</a></div><div class="ttdeci">int num_channels() const override</div><div class="ttdoc">Number of channels of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor.h:350</a></div></div>
350 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_aedcfdd4c3b92fe0d63b5463c7ad1d21e"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">arm_compute::test::SimpleTensor::num_elements</a></div><div class="ttdeci">int num_elements() const override</div><div class="ttdoc">Number of elements of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor.h:386</a></div></div>
351 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a35ccf2eb0c18a15feab2db98b307b78b"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">arm_compute::test::SimpleTensor::fixed_point_position</a></div><div class="ttdeci">int fixed_point_position() const override</div><div class="ttdoc">Number of bits for the fractional part. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00306">SimpleTensor.h:306</a></div></div>
352 </div><!-- fragment -->
353 </div>
354 </div>
355 <a class="anchor" id="a980f42d5fecf35d2cbce00041fbe4d3d"></a>
356 <div class="memitem">
357 <div class="memproto">
358       <table class="memname">
359         <tr>
360           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
361           <td>(</td>
362           <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a>&#160;</td>
363           <td class="paramname"><em>shape</em>, </td>
364         </tr>
365         <tr>
366           <td class="paramkey"></td>
367           <td></td>
368           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>&#160;</td>
369           <td class="paramname"><em>data_type</em>, </td>
370         </tr>
371         <tr>
372           <td class="paramkey"></td>
373           <td></td>
374           <td class="paramtype">int&#160;</td>
375           <td class="paramname"><em>num_channels</em> = <code>1</code>, </td>
376         </tr>
377         <tr>
378           <td class="paramkey"></td>
379           <td></td>
380           <td class="paramtype">int&#160;</td>
381           <td class="paramname"><em>fixed_point_position</em> = <code>0</code>, </td>
382         </tr>
383         <tr>
384           <td class="paramkey"></td>
385           <td></td>
386           <td class="paramtype"><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>&#160;</td>
387           <td class="paramname"><em>quantization_info</em> = <code><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>()</code>, </td>
388         </tr>
389         <tr>
390           <td class="paramkey"></td>
391           <td></td>
392           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a>&#160;</td>
393           <td class="paramname"><em>data_layout</em> = <code><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a></code>&#160;</td>
394         </tr>
395         <tr>
396           <td></td>
397           <td>)</td>
398           <td></td><td></td>
399         </tr>
400       </table>
401 </div><div class="memdoc">
402
403 <p>Create an uninitialised tensor of the given <code>shape</code> and <code>data</code> type. </p>
404 <dl class="params"><dt>Parameters</dt><dd>
405   <table class="params">
406     <tr><td class="paramdir">[in]</td><td class="paramname">shape</td><td>Shape of the new raw tensor. </td></tr>
407     <tr><td class="paramdir">[in]</td><td class="paramname">data_type</td><td>Data type of the new raw tensor. </td></tr>
408     <tr><td class="paramdir">[in]</td><td class="paramname">num_channels</td><td>(Optional) Number of channels (default = 1). </td></tr>
409     <tr><td class="paramdir">[in]</td><td class="paramname">fixed_point_position</td><td>(Optional) Number of bits for the fractional part of the fixed point numbers (default = 0). </td></tr>
410     <tr><td class="paramdir">[in]</td><td class="paramname">quantization_info</td><td>(Optional) Quantization info for asymmetric quantization (default = empty). </td></tr>
411     <tr><td class="paramdir">[in]</td><td class="paramname">data_layout</td><td>(Optional) Data layout of the tensor (default = NCHW). </td></tr>
412   </table>
413   </dd>
414 </dl>
415
416 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00246">246</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
417
418 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
419 <div class="fragment"><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;      _shape(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">shape</a>),</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;      _data_type(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">data_type</a>),</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;      _num_channels(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>),</div><div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;      _fixed_point_position(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">fixed_point_position</a>),</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;      _quantization_info(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac74736e3863207232a23b7181c1d0f44">quantization_info</a>),</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;      _data_layout(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a5f63b63606dbbbe54474e6e970a6738c">data_layout</a>)</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;{</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    _buffer = support::cpp14::make_unique&lt;T[]&gt;(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a>() * this-&gt;<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>());</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a9a3e72153aeb3ed212e9c3698774e881"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">arm_compute::test::SimpleTensor::data_type</a></div><div class="ttdeci">DataType data_type() const override</div><div class="ttdoc">Data type of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00337">SimpleTensor.h:337</a></div></div>
420 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_aba5871b3e4a65d057ec1c28fce8b00ba"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aba5871b3e4a65d057ec1c28fce8b00ba">arm_compute::test::SimpleTensor::shape</a></div><div class="ttdeci">TensorShape shape() const override</div><div class="ttdoc">Shape of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00294">SimpleTensor.h:294</a></div></div>
421 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a5f63b63606dbbbe54474e6e970a6738c"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a5f63b63606dbbbe54474e6e970a6738c">arm_compute::test::SimpleTensor::data_layout</a></div><div class="ttdeci">DataLayout data_layout() const override</div><div class="ttdoc">Data layout of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00331">SimpleTensor.h:331</a></div></div>
422 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_abdd3637f2bbde9d7d0cc0b7bbd8400bb"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">arm_compute::test::SimpleTensor::num_channels</a></div><div class="ttdeci">int num_channels() const override</div><div class="ttdoc">Number of channels of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor.h:350</a></div></div>
423 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_aedcfdd4c3b92fe0d63b5463c7ad1d21e"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">arm_compute::test::SimpleTensor::num_elements</a></div><div class="ttdeci">int num_elements() const override</div><div class="ttdoc">Number of elements of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor.h:386</a></div></div>
424 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_ac74736e3863207232a23b7181c1d0f44"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ac74736e3863207232a23b7181c1d0f44">arm_compute::test::SimpleTensor::quantization_info</a></div><div class="ttdeci">QuantizationInfo quantization_info() const override</div><div class="ttdoc">Quantization info in case of asymmetric quantized type. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00312">SimpleTensor.h:312</a></div></div>
425 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a35ccf2eb0c18a15feab2db98b307b78b"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a35ccf2eb0c18a15feab2db98b307b78b">arm_compute::test::SimpleTensor::fixed_point_position</a></div><div class="ttdeci">int fixed_point_position() const override</div><div class="ttdoc">Number of bits for the fractional part. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00306">SimpleTensor.h:306</a></div></div>
426 </div><!-- fragment -->
427 </div>
428 </div>
429 <a class="anchor" id="ae1769959044a4356fdc93cac2b03a5f6"></a>
430 <div class="memitem">
431 <div class="memproto">
432       <table class="memname">
433         <tr>
434           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
435           <td>(</td>
436           <td class="paramtype">const <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt; &amp;&#160;</td>
437           <td class="paramname"><em>tensor</em></td><td>)</td>
438           <td></td>
439         </tr>
440       </table>
441 </div><div class="memdoc">
442
443 <p>Create a deep copy of the given <code>tensor</code>. </p>
444 <dl class="params"><dt>Parameters</dt><dd>
445   <table class="params">
446     <tr><td class="paramdir">[in]</td><td class="paramname">tensor</td><td>To be copied tensor. </td></tr>
447   </table>
448   </dd>
449 </dl>
450
451 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00259">259</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
452
453 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00398">SimpleTensor&lt; T &gt;::data()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
454 <div class="fragment"><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;      _shape(tensor.shape()),</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;      _format(tensor.format()),</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;      _data_type(tensor.data_type()),</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;      _num_channels(tensor.num_channels()),</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;      _fixed_point_position(tensor.fixed_point_position()),</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;      _quantization_info(tensor.quantization_info()),</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;      _data_layout(tensor.data_layout())</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;{</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;    _buffer = support::cpp14::make_unique&lt;T[]&gt;(tensor.num_elements() * <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>());</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    std::copy_n(tensor.data(), <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">num_elements</a>() * <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>(), _buffer.get());</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_abdd3637f2bbde9d7d0cc0b7bbd8400bb"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">arm_compute::test::SimpleTensor::num_channels</a></div><div class="ttdeci">int num_channels() const override</div><div class="ttdoc">Number of channels of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor.h:350</a></div></div>
455 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_aedcfdd4c3b92fe0d63b5463c7ad1d21e"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#aedcfdd4c3b92fe0d63b5463c7ad1d21e">arm_compute::test::SimpleTensor::num_elements</a></div><div class="ttdeci">int num_elements() const override</div><div class="ttdoc">Number of elements of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00386">SimpleTensor.h:386</a></div></div>
456 </div><!-- fragment -->
457 </div>
458 </div>
459 <a class="anchor" id="a40eed42b5858849fb8570018760ba996"></a>
460 <div class="memitem">
461 <div class="memproto">
462 <table class="mlabels">
463   <tr>
464   <td class="mlabels-left">
465       <table class="memname">
466         <tr>
467           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
468           <td>(</td>
469           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt; &amp;&amp;&#160;</td>
470           <td class="paramname"></td><td>)</td>
471           <td></td>
472         </tr>
473       </table>
474   </td>
475   <td class="mlabels-right">
476 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
477   </tr>
478 </table>
479 </div><div class="memdoc">
480
481 <p>Allow instances of this class to be move constructed. </p>
482
483 </div>
484 </div>
485 <a class="anchor" id="a16d7ecd97f89cf9dc40b3fc7c9abe2cd"></a>
486 <div class="memitem">
487 <div class="memproto">
488 <table class="mlabels">
489   <tr>
490   <td class="mlabels-left">
491       <table class="memname">
492         <tr>
493           <td class="memname">~<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
494           <td>(</td>
495           <td class="paramname"></td><td>)</td>
496           <td></td>
497         </tr>
498       </table>
499   </td>
500   <td class="mlabels-right">
501 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
502   </tr>
503 </table>
504 </div><div class="memdoc">
505
506 <p>Default destructor. </p>
507
508 </div>
509 </div>
510 <h2 class="groupheader">Member Function Documentation</h2>
511 <a class="anchor" id="a0c52a8f0085b55d907af7210ef2069d0"></a>
512 <div class="memitem">
513 <div class="memproto">
514       <table class="memname">
515         <tr>
516           <td class="memname">const T * data </td>
517           <td>(</td>
518           <td class="paramname"></td><td>)</td>
519           <td> const</td>
520         </tr>
521       </table>
522 </div><div class="memdoc">
523
524 <p>Constant pointer to the underlying buffer. </p>
525 <dl class="section return"><dt>Returns</dt><dd>a constant pointer to the data. </dd></dl>
526
527 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00398">398</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
528
529 <p>Referenced by <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="_convolution3d_8h_source.xhtml#l00047">arm_compute::test::convolution_3d::detail::convolution3d()</a>, <a class="el" href="reference_2_copy_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::copy()</a>, <a class="el" href="reference_2_deconvolution_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::deconvolution_layer()</a>, <a class="el" href="validation_2reference_2_depth_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::depthconcatenate_layer()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00053">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="_assets_library_8cpp_source.xhtml#l00265">AssetsLibrary::fill()</a>, <a class="el" href="validation_2reference_2_flatten_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::flatten_layer()</a>, <a class="el" href="_g_e_m_m_interleave4x4_8h_source.xhtml#l00038">arm_compute::test::validation::reference::gemm_interleave_4x4()</a>, <a class="el" href="_g_e_m_m_transpose1x_w_8h_source.xhtml#l00038">arm_compute::test::validation::reference::gemm_transpose_1xW()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00200">arm_compute::test::validation::get_tile()</a>, <a class="el" href="validation_2reference_2_l2_normalize_layer_8cpp_source.xhtml#l00051">arm_compute::test::validation::reference::l2_normalize()</a>, <a class="el" href="validation_2reference_2_mean_std_dev_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::mean_and_standard_deviation()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00042">RawTensor::RawTensor()</a>, <a class="el" href="reference_2_reduction_operation_8cpp_source.xhtml#l00064">arm_compute::test::validation::reference::reduction_operation()</a>, <a class="el" href="validation_2reference_2_reshape_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::reshape_layer()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00259">SimpleTensor&lt; T &gt;::SimpleTensor()</a>, <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>, and <a class="el" href="reference_2_width_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::widthconcatenate_layer()</a>.</p>
530 <div class="fragment"><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;{</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;    <span class="keywordflow">return</span> _buffer.get();</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;}</div></div><!-- fragment -->
531 </div>
532 </div>
533 <a class="anchor" id="adc1e16b293a89a9ccc9541058b5ca560"></a>
534 <div class="memitem">
535 <div class="memproto">
536       <table class="memname">
537         <tr>
538           <td class="memname">T * data </td>
539           <td>(</td>
540           <td class="paramname"></td><td>)</td>
541           <td></td>
542         </tr>
543       </table>
544 </div><div class="memdoc">
545
546 <p>Pointer to the underlying buffer. </p>
547 <dl class="section return"><dt>Returns</dt><dd>a pointer to the data. </dd></dl>
548
549 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00404">404</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
550 <div class="fragment"><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;{</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    <span class="keywordflow">return</span> _buffer.get();</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;}</div></div><!-- fragment -->
551 </div>
552 </div>
553 <a class="anchor" id="a5f63b63606dbbbe54474e6e970a6738c"></a>
554 <div class="memitem">
555 <div class="memproto">
556 <table class="mlabels">
557   <tr>
558   <td class="mlabels-left">
559       <table class="memname">
560         <tr>
561           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> data_layout </td>
562           <td>(</td>
563           <td class="paramname"></td><td>)</td>
564           <td> const</td>
565         </tr>
566       </table>
567   </td>
568   <td class="mlabels-right">
569 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
570   </tr>
571 </table>
572 </div><div class="memdoc">
573
574 <p>Data layout of the tensor. </p>
575 <dl class="section return"><dt>Returns</dt><dd>the data layout of the tensor. </dd></dl>
576
577 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a367b5090ab432bc7de2c32369e087ab1">IAccessor</a>.</p>
578
579 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00331">331</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
580
581 <p>Referenced by <a class="el" href="_helpers_8cpp_source.xhtml#l00134">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00107">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00127">arm_compute::test::validation::reference::im2col()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::im2col_nchw()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00085">arm_compute::test::validation::reference::im2col_nhwc()</a>, <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00261">arm_compute::test::validation::reference::winograd_filter_transform()</a>, and <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00178">arm_compute::test::validation::reference::winograd_input_transform()</a>.</p>
582 <div class="fragment"><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;{</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    <span class="keywordflow">return</span> _data_layout;</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;}</div></div><!-- fragment -->
583 </div>
584 </div>
585 <a class="anchor" id="a9a3e72153aeb3ed212e9c3698774e881"></a>
586 <div class="memitem">
587 <div class="memproto">
588 <table class="mlabels">
589   <tr>
590   <td class="mlabels-left">
591       <table class="memname">
592         <tr>
593           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> data_type </td>
594           <td>(</td>
595           <td class="paramname"></td><td>)</td>
596           <td> const</td>
597         </tr>
598       </table>
599   </td>
600   <td class="mlabels-right">
601 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
602   </tr>
603 </table>
604 </div><div class="memdoc">
605
606 <p>Data type of the tensor. </p>
607 <dl class="section return"><dt>Returns</dt><dd>the data type of the tensor. </dd></dl>
608
609 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a7cfb31af63202568efef5214acfbf3ba">IAccessor</a>.</p>
610
611 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00337">337</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
612
613 <p>References <a class="el" href="arm__compute_2core_2_utils_8h_source.xhtml#l00213">arm_compute::data_type_from_format()</a>, and <a class="el" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::UNKNOWN</a>.</p>
614
615 <p>Referenced by <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::activation_layer()</a>, <a class="el" href="validation_2reference_2_batch_normalization_layer_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::batch_normalization_layer()</a>, <a class="el" href="reference_2_bitwise_and_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_and()</a>, <a class="el" href="reference_2_bitwise_not_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_not()</a>, <a class="el" href="reference_2_bitwise_or_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_or()</a>, <a class="el" href="reference_2_bitwise_xor_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_xor()</a>, <a class="el" href="reference_2_box3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::box3x3()</a>, <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="reference_2_convert_fully_connected_weights_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::convert_fully_connected_weights()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00107">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="reference_2_copy_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::copy()</a>, <a class="el" href="reference_2_deconvolution_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::deconvolution_layer()</a>, <a class="el" href="reference_2_depth_convert_layer_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::depth_convert()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00053">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="reference_2_dilate_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::dilate()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00300">SimpleTensor&lt; T &gt;::element_size()</a>, <a class="el" href="validation_2reference_2_equalize_histogram_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::equalize_histogram()</a>, <a class="el" href="reference_2_erode_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::erode()</a>, <a class="el" href="_assets_library_8h_source.xhtml#l00493">AssetsLibrary::fill()</a>, <a class="el" href="reference_2_fixed_point_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::fixed_point_operation()</a>, <a class="el" href="reference_2_fixed_point_pixel_wise_multiplication_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::fixed_point_pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_flatten_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::flatten_layer()</a>, <a class="el" href="validation_2reference_2_floor_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::floor_layer()</a>, <a class="el" href="validation_2reference_2_fully_connected_layer_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fully_connected_layer()</a>, <a class="el" href="reference_2_gaussian3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian3x3()</a>, <a class="el" href="reference_2_gaussian5x5_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian5x5()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gemm()</a>, <a class="el" href="_g_e_m_m_transpose1x_w_8h_source.xhtml#l00038">arm_compute::test::validation::reference::gemm_transpose_1xW()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::im2col_nchw()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00085">arm_compute::test::validation::reference::im2col_nhwc()</a>, <a class="el" href="validation_2reference_2_l2_normalize_layer_8cpp_source.xhtml#l00051">arm_compute::test::validation::reference::l2_normalize()</a>, <a class="el" href="reference_2_locally_connected_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::locally_connected()</a>, <a class="el" href="validation_2reference_2_magnitude_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::magnitude()</a>, <a class="el" href="validation_2reference_2_median3x3_8cpp_source.xhtml#l00044">arm_compute::test::validation::reference::median3x3()</a>, <a class="el" href="reference_2_non_linear_filter_8cpp_source.xhtml#l00036">arm_compute::test::validation::reference::non_linear_filter()</a>, <a class="el" href="_non_maxima_suppression_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::non_maxima_suppression()</a>, <a class="el" href="validation_2reference_2_normalization_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalization_layer()</a>, <a class="el" href="validation_2reference_2_normalize_planar_y_u_v_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalize_planar_yuv_layer()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, <a class="el" href="reference_2_pixel_wise_multiplication_8cpp_source.xhtml#l00131">arm_compute::test::validation::reference::pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00042">arm_compute::test::validation::reference::pooling_layer()</a>, <a class="el" href="reference_2_reduction_operation_8cpp_source.xhtml#l00064">arm_compute::test::validation::reference::reduction_operation()</a>, <a class="el" href="reference_2_remap_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::remap()</a>, <a class="el" href="validation_2reference_2_reshape_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::reshape_layer()</a>, <a class="el" href="validation_2reference_2_scale_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::scale()</a>, <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>, <a class="el" href="reference_2_table_lookup_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::table_lookup()</a>, <a class="el" href="reference_2_threshold_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::threshold()</a>, <a class="el" href="validation_2reference_2_transpose_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::transpose()</a>, <a class="el" href="tests_2validation_2reference_2_utils_8cpp_source.xhtml#l00069">arm_compute::test::validation::transpose()</a>, <a class="el" href="_validation_8h_source.xhtml#l00382">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00457">arm_compute::test::validation::validate_wrap()</a>, <a class="el" href="reference_2_warp_affine_8cpp_source.xhtml#l00050">arm_compute::test::validation::reference::warp_affine()</a>, <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>, <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00261">arm_compute::test::validation::reference::winograd_filter_transform()</a>, <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00178">arm_compute::test::validation::reference::winograd_input_transform()</a>, and <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00334">arm_compute::test::validation::reference::winograd_output_transform()</a>.</p>
616 <div class="fragment"><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;{</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    <span class="keywordflow">if</span>(_format != <a class="code" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">Format::UNKNOWN</a>)</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    {</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute.xhtml#a59846ef5ca75cd81cdb7e8a1ce08f9db">data_type_from_format</a>(_format);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    }</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    {</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="keywordflow">return</span> _data_type;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    }</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;}</div><div class="ttc" id="namespacearm__compute_xhtml_a59846ef5ca75cd81cdb7e8a1ce08f9db"><div class="ttname"><a href="namespacearm__compute.xhtml#a59846ef5ca75cd81cdb7e8a1ce08f9db">arm_compute::data_type_from_format</a></div><div class="ttdeci">DataType data_type_from_format(Format format)</div><div class="ttdoc">Return the data type used by a given single-planar pixel format. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_utils_8h_source.xhtml#l00213">Utils.h:213</a></div></div>
617 <div class="ttc" id="namespacearm__compute_xhtml_a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3"><div class="ttname"><a href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::CLVersion::UNKNOWN</a></div></div>
618 </div><!-- fragment -->
619 </div>
620 </div>
621 <a class="anchor" id="a62b67b578f684c4d516843c9dea86a23"></a>
622 <div class="memitem">
623 <div class="memproto">
624 <table class="mlabels">
625   <tr>
626   <td class="mlabels-left">
627       <table class="memname">
628         <tr>
629           <td class="memname">size_t element_size </td>
630           <td>(</td>
631           <td class="paramname"></td><td>)</td>
632           <td> const</td>
633         </tr>
634       </table>
635   </td>
636   <td class="mlabels-right">
637 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
638   </tr>
639 </table>
640 </div><div class="memdoc">
641
642 <p>Size of each element in the tensor in bytes. </p>
643 <dl class="section return"><dt>Returns</dt><dd>the size of each element in the tensor in bytes. </dd></dl>
644
645 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#aa459796b5489eca8a9160cb5dcf1a103">IAccessor</a>.</p>
646
647 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00300">300</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
648
649 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00337">SimpleTensor&lt; T &gt;::data_type()</a>, <a class="el" href="arm__compute_2core_2_utils_8h_source.xhtml#l00182">arm_compute::element_size_from_data_type()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor&lt; T &gt;::num_channels()</a>.</p>
650
651 <p>Referenced by <a class="el" href="_assets_library_8h_source.xhtml#l00493">AssetsLibrary::fill()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00030">RawTensor::RawTensor()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00318">SimpleTensor&lt; T &gt;::size()</a>, <a class="el" href="tests_2validation_2reference_2_utils_8cpp_source.xhtml#l00069">arm_compute::test::validation::transpose()</a>, <a class="el" href="_validation_8h_source.xhtml#l00382">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00457">arm_compute::test::validation::validate_wrap()</a>.</p>
652 <div class="fragment"><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;{</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">num_channels</a>() * <a class="code" href="namespacearm__compute.xhtml#a34b06c0cd94808a77b697e79880b84b0">element_size_from_data_type</a>(<a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">data_type</a>());</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;}</div><div class="ttc" id="namespacearm__compute_xhtml_a34b06c0cd94808a77b697e79880b84b0"><div class="ttname"><a href="namespacearm__compute.xhtml#a34b06c0cd94808a77b697e79880b84b0">arm_compute::element_size_from_data_type</a></div><div class="ttdeci">size_t element_size_from_data_type(DataType dt)</div><div class="ttdoc">The size in bytes of the data type. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_utils_8h_source.xhtml#l00182">Utils.h:182</a></div></div>
653 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a9a3e72153aeb3ed212e9c3698774e881"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a9a3e72153aeb3ed212e9c3698774e881">arm_compute::test::SimpleTensor::data_type</a></div><div class="ttdeci">DataType data_type() const override</div><div class="ttdoc">Data type of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00337">SimpleTensor.h:337</a></div></div>
654 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_abdd3637f2bbde9d7d0cc0b7bbd8400bb"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#abdd3637f2bbde9d7d0cc0b7bbd8400bb">arm_compute::test::SimpleTensor::num_channels</a></div><div class="ttdeci">int num_channels() const override</div><div class="ttdoc">Number of channels of the tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00350">SimpleTensor.h:350</a></div></div>
655 </div><!-- fragment -->
656 </div>
657 </div>
658 <a class="anchor" id="a35ccf2eb0c18a15feab2db98b307b78b"></a>
659 <div class="memitem">
660 <div class="memproto">
661 <table class="mlabels">
662   <tr>
663   <td class="mlabels-left">
664       <table class="memname">
665         <tr>
666           <td class="memname">int fixed_point_position </td>
667           <td>(</td>
668           <td class="paramname"></td><td>)</td>
669           <td> const</td>
670         </tr>
671       </table>
672   </td>
673   <td class="mlabels-right">
674 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
675   </tr>
676 </table>
677 </div><div class="memdoc">
678
679 <p>Number of bits for the fractional part. </p>
680 <dl class="section return"><dt>Returns</dt><dd>the number of bits for the fractional part. </dd></dl>
681
682 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#ab21a362740e892b6e913bd8db03b0e67">IAccessor</a>.</p>
683
684 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00306">306</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
685
686 <p>Referenced by <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::activation_layer()</a>, <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="_convolution3d_8h_source.xhtml#l00047">arm_compute::test::convolution_3d::detail::convolution3d()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00107">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="reference_2_deconvolution_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::deconvolution_layer()</a>, <a class="el" href="reference_2_depth_convert_layer_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::depth_convert()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00053">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="reference_2_fixed_point_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::fixed_point_operation()</a>, <a class="el" href="reference_2_fixed_point_pixel_wise_multiplication_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::fixed_point_pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_flatten_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::flatten_layer()</a>, <a class="el" href="validation_2reference_2_fully_connected_layer_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fully_connected_layer()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gemm()</a>, <a class="el" href="reference_2_locally_connected_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::locally_connected()</a>, <a class="el" href="validation_2reference_2_normalization_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalization_layer()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00042">arm_compute::test::validation::reference::pooling_layer()</a>, and <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>.</p>
687 <div class="fragment"><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;{</div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="keywordflow">return</span> _fixed_point_position;</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;}</div></div><!-- fragment -->
688 </div>
689 </div>
690 <a class="anchor" id="ac4b36cc1e56b0b7e579bb4b7196490db"></a>
691 <div class="memitem">
692 <div class="memproto">
693 <table class="mlabels">
694   <tr>
695   <td class="mlabels-left">
696       <table class="memname">
697         <tr>
698           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a> format </td>
699           <td>(</td>
700           <td class="paramname"></td><td>)</td>
701           <td> const</td>
702         </tr>
703       </table>
704   </td>
705   <td class="mlabels-right">
706 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
707   </tr>
708 </table>
709 </div><div class="memdoc">
710
711 <p><a class="el" href="struct_image.xhtml" title="Structure to hold Image information. ">Image</a> format of the tensor. </p>
712 <dl class="section return"><dt>Returns</dt><dd>the format of the tensor. </dd></dl>
713
714 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a57360dd9ca408834c0ea1a8ef70a11f4">IAccessor</a>.</p>
715
716 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00325">325</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
717
718 <p>Referenced by <a class="el" href="_assets_library_8cpp_source.xhtml#l00276">AssetsLibrary::fill()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00042">RawTensor::RawTensor()</a>, <a class="el" href="_validation_8h_source.xhtml#l00382">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00457">arm_compute::test::validation::validate_wrap()</a>.</p>
719 <div class="fragment"><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;{</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    <span class="keywordflow">return</span> _format;</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;}</div></div><!-- fragment -->
720 </div>
721 </div>
722 <a class="anchor" id="abdd3637f2bbde9d7d0cc0b7bbd8400bb"></a>
723 <div class="memitem">
724 <div class="memproto">
725 <table class="mlabels">
726   <tr>
727   <td class="mlabels-left">
728       <table class="memname">
729         <tr>
730           <td class="memname">int num_channels </td>
731           <td>(</td>
732           <td class="paramname"></td><td>)</td>
733           <td> const</td>
734         </tr>
735       </table>
736   </td>
737   <td class="mlabels-right">
738 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
739   </tr>
740 </table>
741 </div><div class="memdoc">
742
743 <p>Number of channels of the tensor. </p>
744 <dl class="section return"><dt>Returns</dt><dd>the number of channels of the tensor. </dd></dl>
745
746 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#ac492280ef2d7889f1226d34743b74459">IAccessor</a>.</p>
747
748 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00350">350</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
749
750 <p>References <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">arm_compute::F16</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">arm_compute::F32</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ab08f0cb36474118c5bbc03b3a172a778">arm_compute::IYUV</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a202f5d8c2c70d31048154d8b8b28e755">arm_compute::NV12</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a8e9f6aa1af7e0abbc7e64521e6ffe1b4">arm_compute::NV21</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a30ff380a3be74628024063a99fba10f0">arm_compute::RGB888</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a165f06116e7b8d9b2481dfc805db4619">arm_compute::RGBA8888</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">arm_compute::S16</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aa1e28eee0339658d39a8b4d325b56e9c">arm_compute::S32</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aef9ef3ebca4d2b64b6ec83808bafa5f2">arm_compute::U16</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ac8bd5bedff8ef192d39a962afc0e19ee">arm_compute::U32</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6669348b484e3008dca2bfa8e85e40b5">arm_compute::U8</a>, <a class="el" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::UNKNOWN</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a079eb95759d2ad31254f659d63651825">arm_compute::UV88</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58af557448a61ad2927194f63442e131dfa">arm_compute::UYVY422</a>, <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a11cfa56ee0ddbbc30a2fd189d7475f4c">arm_compute::YUV444</a>, and <a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a481e7a6945eb9f23e87f2de780b2e164">arm_compute::YUYV422</a>.</p>
751
752 <p>Referenced by <a class="el" href="reference_2_channel_combine_8cpp_source.xhtml#l00092">arm_compute::test::validation::reference::channel_combine()</a>, <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="reference_2_derivative_8cpp_source.xhtml#l00055">arm_compute::test::validation::reference::derivative()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00300">SimpleTensor&lt; T &gt;::element_size()</a>, <a class="el" href="reference_2_h_o_g_detector_8cpp_source.xhtml#l00048">arm_compute::test::validation::reference::hog_detector()</a>, <a class="el" href="_non_maxima_suppression_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::non_maxima_suppression()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00030">RawTensor::RawTensor()</a>, <a class="el" href="reference_2_scharr_8cpp_source.xhtml#l00062">arm_compute::test::validation::reference::scharr()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00233">SimpleTensor&lt; T &gt;::SimpleTensor()</a>, <a class="el" href="reference_2_sobel_8cpp_source.xhtml#l00106">arm_compute::test::validation::reference::sobel()</a>, <a class="el" href="_validation_8h_source.xhtml#l00382">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00457">arm_compute::test::validation::validate_wrap()</a>.</p>
753 <div class="fragment"><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;{</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    <span class="keywordflow">switch</span>(_format)</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6669348b484e3008dca2bfa8e85e40b5">Format::U8</a>:</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aef9ef3ebca4d2b64b6ec83808bafa5f2">Format::U16</a>:</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">Format::S16</a>:</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ac8bd5bedff8ef192d39a962afc0e19ee">Format::U32</a>:</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aa1e28eee0339658d39a8b4d325b56e9c">Format::S32</a>:</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">Format::F16</a>:</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">Format::F32</a>:</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        <span class="comment">// Because the U and V channels are subsampled</span></div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;        <span class="comment">// these formats appear like having only 2 channels:</span></div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a481e7a6945eb9f23e87f2de780b2e164">Format::YUYV422</a>:</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58af557448a61ad2927194f63442e131dfa">Format::UYVY422</a>:</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a079eb95759d2ad31254f659d63651825">Format::UV88</a>:</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a30ff380a3be74628024063a99fba10f0">Format::RGB888</a>:</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <span class="keywordflow">return</span> 3;</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a165f06116e7b8d9b2481dfc805db4619">Format::RGBA8888</a>:</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;            <span class="keywordflow">return</span> 4;</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">Format::UNKNOWN</a>:</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            <span class="keywordflow">return</span> _num_channels;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        <span class="comment">//Doesn&#39;t make sense for planar formats:</span></div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a202f5d8c2c70d31048154d8b8b28e755">Format::NV12</a>:</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a8e9f6aa1af7e0abbc7e64521e6ffe1b4">Format::NV21</a>:</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ab08f0cb36474118c5bbc03b3a172a778">Format::IYUV</a>:</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a11cfa56ee0ddbbc30a2fd189d7475f4c">Format::YUV444</a>:</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        <span class="keywordflow">default</span>:</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    }</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;}</div><div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58af557448a61ad2927194f63442e131dfa"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58af557448a61ad2927194f63442e131dfa">arm_compute::Format::UYVY422</a></div><div class="ttdoc">A single plane of 32-bit macro pixel of U0, Y0, V0, Y1 byte. </div></div>
754 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a6669348b484e3008dca2bfa8e85e40b5"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6669348b484e3008dca2bfa8e85e40b5">arm_compute::Format::U8</a></div><div class="ttdoc">1 channel, 1 U8 per channel </div></div>
755 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">arm_compute::Format::F32</a></div><div class="ttdoc">1 channel, 1 F32 per channel </div></div>
756 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a202f5d8c2c70d31048154d8b8b28e755"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a202f5d8c2c70d31048154d8b8b28e755">arm_compute::Format::NV12</a></div><div class="ttdoc">A 2 plane YUV format of Luma (Y) and interleaved UV data at 4:2:0 sampling. </div></div>
757 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58aef9ef3ebca4d2b64b6ec83808bafa5f2"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aef9ef3ebca4d2b64b6ec83808bafa5f2">arm_compute::Format::U16</a></div><div class="ttdoc">1 channel, 1 U16 per channel </div></div>
758 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a8e9f6aa1af7e0abbc7e64521e6ffe1b4"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a8e9f6aa1af7e0abbc7e64521e6ffe1b4">arm_compute::Format::NV21</a></div><div class="ttdoc">A 2 plane YUV format of Luma (Y) and interleaved VU data at 4:2:0 sampling. </div></div>
759 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">arm_compute::Format::F16</a></div><div class="ttdoc">1 channel, 1 F16 per channel </div></div>
760 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58aa1e28eee0339658d39a8b4d325b56e9c"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aa1e28eee0339658d39a8b4d325b56e9c">arm_compute::Format::S32</a></div><div class="ttdoc">1 channel, 1 S32 per channel </div></div>
761 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a30ff380a3be74628024063a99fba10f0"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a30ff380a3be74628024063a99fba10f0">arm_compute::Format::RGB888</a></div><div class="ttdoc">3 channels, 1 U8 per channel </div></div>
762 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58ac8bd5bedff8ef192d39a962afc0e19ee"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ac8bd5bedff8ef192d39a962afc0e19ee">arm_compute::Format::U32</a></div><div class="ttdoc">1 channel, 1 U32 per channel </div></div>
763 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a11cfa56ee0ddbbc30a2fd189d7475f4c"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a11cfa56ee0ddbbc30a2fd189d7475f4c">arm_compute::Format::YUV444</a></div><div class="ttdoc">A 3 plane of 8 bit 4:4:4 sampled Y, U, V planes. </div></div>
764 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">arm_compute::Format::S16</a></div><div class="ttdoc">1 channel, 1 S16 per channel </div></div>
765 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58ab08f0cb36474118c5bbc03b3a172a778"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ab08f0cb36474118c5bbc03b3a172a778">arm_compute::Format::IYUV</a></div><div class="ttdoc">A 3 plane of 8-bit 4:2:0 sampled Y, U, V planes. </div></div>
766 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a165f06116e7b8d9b2481dfc805db4619"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a165f06116e7b8d9b2481dfc805db4619">arm_compute::Format::RGBA8888</a></div><div class="ttdoc">4 channels, 1 U8 per channel </div></div>
767 <div class="ttc" id="namespacearm__compute_xhtml_a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3"><div class="ttname"><a href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::CLVersion::UNKNOWN</a></div></div>
768 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a079eb95759d2ad31254f659d63651825"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a079eb95759d2ad31254f659d63651825">arm_compute::Format::UV88</a></div><div class="ttdoc">2 channel, 1 U8 per channel </div></div>
769 <div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a481e7a6945eb9f23e87f2de780b2e164"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a481e7a6945eb9f23e87f2de780b2e164">arm_compute::Format::YUYV422</a></div><div class="ttdoc">A single plane of 32-bit macro pixel of Y0, U0, Y1, V0 bytes. </div></div>
770 </div><!-- fragment -->
771 </div>
772 </div>
773 <a class="anchor" id="aedcfdd4c3b92fe0d63b5463c7ad1d21e"></a>
774 <div class="memitem">
775 <div class="memproto">
776 <table class="mlabels">
777   <tr>
778   <td class="mlabels-left">
779       <table class="memname">
780         <tr>
781           <td class="memname">int num_elements </td>
782           <td>(</td>
783           <td class="paramname"></td><td>)</td>
784           <td> const</td>
785         </tr>
786       </table>
787   </td>
788   <td class="mlabels-right">
789 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
790   </tr>
791 </table>
792 </div><div class="memdoc">
793
794 <p>Number of elements of the tensor. </p>
795 <dl class="section return"><dt>Returns</dt><dd>the number of elements of the tensor. </dd></dl>
796
797 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a7596bc2928432a0ac2271bc9184d692e">IAccessor</a>.</p>
798
799 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00386">386</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
800
801 <p>References <a class="el" href="_tensor_shape_8h_source.xhtml#l00157">TensorShape::total_size()</a>.</p>
802
803 <p>Referenced by <a class="el" href="reference_2_absolute_difference_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::absolute_difference()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::accumulate()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00077">arm_compute::test::validation::reference::accumulate_squared()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00057">arm_compute::test::validation::reference::accumulate_weighted()</a>, <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::activation_layer()</a>, <a class="el" href="reference_2_arithmetic_subtraction_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::arithmetic_subtraction()</a>, <a class="el" href="reference_2_bitwise_and_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_and()</a>, <a class="el" href="reference_2_bitwise_not_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_not()</a>, <a class="el" href="reference_2_bitwise_or_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_or()</a>, <a class="el" href="reference_2_bitwise_xor_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_xor()</a>, <a class="el" href="reference_2_box3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::box3x3()</a>, <a class="el" href="reference_2_channel_combine_8cpp_source.xhtml#l00092">arm_compute::test::validation::reference::channel_combine()</a>, <a class="el" href="validation_2reference_2_min_max_location_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::compute_min_max()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00134">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="reference_2_convert_fully_connected_weights_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::convert_fully_connected_weights()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00146">arm_compute::test::validation::convert_to_asymmetric()</a>, <a class="el" href="reference_2_convolution_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::convolution()</a>, <a class="el" href="reference_2_copy_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::copy()</a>, <a class="el" href="reference_2_depth_convert_layer_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::depth_convert()</a>, <a class="el" href="validation_2reference_2_depth_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::depthconcatenate_layer()</a>, <a class="el" href="reference_2_derivative_8cpp_source.xhtml#l00055">arm_compute::test::validation::reference::derivative()</a>, <a class="el" href="reference_2_dilate_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::dilate()</a>, <a class="el" href="validation_2reference_2_equalize_histogram_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::equalize_histogram()</a>, <a class="el" href="reference_2_erode_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::erode()</a>, <a class="el" href="reference_2_fast_corners_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fast_corners()</a>, <a class="el" href="reference_2_fixed_point_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::fixed_point_operation()</a>, <a class="el" href="reference_2_fixed_point_pixel_wise_multiplication_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::fixed_point_pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_flatten_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::flatten_layer()</a>, <a class="el" href="validation_2reference_2_floor_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::floor_layer()</a>, <a class="el" href="reference_2_gaussian3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian3x3()</a>, <a class="el" href="reference_2_gaussian5x5_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian5x5()</a>, <a class="el" href="validation_2reference_2_histogram_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::histogram()</a>, <a class="el" href="validation_2reference_2_magnitude_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::magnitude()</a>, <a class="el" href="validation_2reference_2_mean_std_dev_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::mean_and_standard_deviation()</a>, <a class="el" href="validation_2reference_2_median3x3_8cpp_source.xhtml#l00044">arm_compute::test::validation::reference::median3x3()</a>, <a class="el" href="reference_2_non_linear_filter_8cpp_source.xhtml#l00036">arm_compute::test::validation::reference::non_linear_filter()</a>, <a class="el" href="_non_maxima_suppression_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::non_maxima_suppression()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, <a class="el" href="validation_2reference_2_phase_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::phase()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00030">RawTensor::RawTensor()</a>, <a class="el" href="reference_2_remap_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::remap()</a>, <a class="el" href="validation_2reference_2_reshape_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::reshape_layer()</a>, <a class="el" href="reference_2_scharr_8cpp_source.xhtml#l00062">arm_compute::test::validation::reference::scharr()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00233">SimpleTensor&lt; T &gt;::SimpleTensor()</a>, <a class="el" href="reference_2_sobel_8cpp_source.xhtml#l00106">arm_compute::test::validation::reference::sobel()</a>, <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>, <a class="el" href="reference_2_table_lookup_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::table_lookup()</a>, <a class="el" href="reference_2_threshold_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::threshold()</a>, <a class="el" href="validation_2reference_2_transpose_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::transpose()</a>, <a class="el" href="_validation_8h_source.xhtml#l00382">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00457">arm_compute::test::validation::validate_wrap()</a>, <a class="el" href="reference_2_warp_affine_8cpp_source.xhtml#l00050">arm_compute::test::validation::reference::warp_affine()</a>, <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>, and <a class="el" href="reference_2_width_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::widthconcatenate_layer()</a>.</p>
804 <div class="fragment"><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;{</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;    <span class="keywordflow">return</span> _shape.<a class="code" href="classarm__compute_1_1_tensor_shape.xhtml#a4eaec01ba2c12093db609d1034ad0bc1">total_size</a>();</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_tensor_shape_xhtml_a4eaec01ba2c12093db609d1034ad0bc1"><div class="ttname"><a href="classarm__compute_1_1_tensor_shape.xhtml#a4eaec01ba2c12093db609d1034ad0bc1">arm_compute::TensorShape::total_size</a></div><div class="ttdeci">size_t total_size() const </div><div class="ttdoc">Collapses all dimensions to a single linear total size. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_shape_8h_source.xhtml#l00157">TensorShape.h:157</a></div></div>
805 </div><!-- fragment -->
806 </div>
807 </div>
808 <a class="anchor" id="a39537b09ccc3ce3d17922f4ef49a123f"></a>
809 <div class="memitem">
810 <div class="memproto">
811 <table class="mlabels">
812   <tr>
813   <td class="mlabels-left">
814       <table class="memname">
815         <tr>
816           <td class="memname">const void * operator() </td>
817           <td>(</td>
818           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;&#160;</td>
819           <td class="paramname"><em>coord</em></td><td>)</td>
820           <td> const</td>
821         </tr>
822       </table>
823   </td>
824   <td class="mlabels-right">
825 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
826   </tr>
827 </table>
828 </div><div class="memdoc">
829
830 <p>Read only access to the specified element. </p>
831 <dl class="params"><dt>Parameters</dt><dd>
832   <table class="params">
833     <tr><td class="paramdir">[in]</td><td class="paramname">coord</td><td><a class="el" href="classarm__compute_1_1_coordinates.xhtml" title="Coordinates of an item. ">Coordinates</a> of the desired element.</td></tr>
834   </table>
835   </dd>
836 </dl>
837 <dl class="section return"><dt>Returns</dt><dd>A pointer to the desired element. </dd></dl>
838
839 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a583a35e4fd72f072a6b76ce58c2e3998">IAccessor</a>.</p>
840
841 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00410">410</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
842
843 <p>References <a class="el" href="tests_2_utils_8h_source.xhtml#l00448">arm_compute::test::coord2index()</a>.</p>
844 <div class="fragment"><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;{</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keywordflow">return</span> _buffer.get() + <a class="code" href="namespacearm__compute_1_1test.xhtml#a9be4cb7e6ee20063a4a10bc3abb750b9">coord2index</a>(_shape, coord) * _num_channels;</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1test_xhtml_a9be4cb7e6ee20063a4a10bc3abb750b9"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a9be4cb7e6ee20063a4a10bc3abb750b9">arm_compute::test::coord2index</a></div><div class="ttdeci">int coord2index(const TensorShape &amp;shape, const Coordinates &amp;coord)</div><div class="ttdoc">Linearise the given coordinate. </div><div class="ttdef"><b>Definition:</b> <a href="tests_2_utils_8h_source.xhtml#l00448">Utils.h:448</a></div></div>
845 </div><!-- fragment -->
846 </div>
847 </div>
848 <a class="anchor" id="a2df95f7046b81e69a1265a42202ea068"></a>
849 <div class="memitem">
850 <div class="memproto">
851 <table class="mlabels">
852   <tr>
853   <td class="mlabels-left">
854       <table class="memname">
855         <tr>
856           <td class="memname">void * operator() </td>
857           <td>(</td>
858           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;&#160;</td>
859           <td class="paramname"><em>coord</em></td><td>)</td>
860           <td></td>
861         </tr>
862       </table>
863   </td>
864   <td class="mlabels-right">
865 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
866   </tr>
867 </table>
868 </div><div class="memdoc">
869
870 <p>Access to the specified element. </p>
871 <dl class="params"><dt>Parameters</dt><dd>
872   <table class="params">
873     <tr><td class="paramdir">[in]</td><td class="paramname">coord</td><td><a class="el" href="classarm__compute_1_1_coordinates.xhtml" title="Coordinates of an item. ">Coordinates</a> of the desired element.</td></tr>
874   </table>
875   </dd>
876 </dl>
877 <dl class="section return"><dt>Returns</dt><dd>A pointer to the desired element. </dd></dl>
878
879 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a9fd1359f2b5ea45a31bd79b381281eb4">IAccessor</a>.</p>
880
881 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00416">416</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
882
883 <p>References <a class="el" href="tests_2_utils_8h_source.xhtml#l00448">arm_compute::test::coord2index()</a>.</p>
884 <div class="fragment"><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;{</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;    <span class="keywordflow">return</span> _buffer.get() + <a class="code" href="namespacearm__compute_1_1test.xhtml#a9be4cb7e6ee20063a4a10bc3abb750b9">coord2index</a>(_shape, coord) * _num_channels;</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1test_xhtml_a9be4cb7e6ee20063a4a10bc3abb750b9"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a9be4cb7e6ee20063a4a10bc3abb750b9">arm_compute::test::coord2index</a></div><div class="ttdeci">int coord2index(const TensorShape &amp;shape, const Coordinates &amp;coord)</div><div class="ttdoc">Linearise the given coordinate. </div><div class="ttdef"><b>Definition:</b> <a href="tests_2_utils_8h_source.xhtml#l00448">Utils.h:448</a></div></div>
885 </div><!-- fragment -->
886 </div>
887 </div>
888 <a class="anchor" id="ad4622eda610d53fb6852209f0213aeed"></a>
889 <div class="memitem">
890 <div class="memproto">
891       <table class="memname">
892         <tr>
893           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt; &amp; operator= </td>
894           <td>(</td>
895           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt;&#160;</td>
896           <td class="paramname"><em>tensor</em></td><td>)</td>
897           <td></td>
898         </tr>
899       </table>
900 </div><div class="memdoc">
901
902 <p>Create a deep copy of the given <code>tensor</code>. </p>
903 <dl class="params"><dt>Parameters</dt><dd>
904   <table class="params">
905     <tr><td class="paramdir">[in]</td><td class="paramname">tensor</td><td>To be copied tensor.</td></tr>
906   </table>
907   </dd>
908 </dl>
909 <dl class="section return"><dt>Returns</dt><dd>a copy of the given tensor. </dd></dl>
910
911 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00274">274</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
912
913 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00422">SimpleTensor&lt; T &gt;::swap</a>.</p>
914 <div class="fragment"><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;{</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(*<span class="keyword">this</span>, tensor);</div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a51920d34b0fa5415e84891ad8e755224"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">arm_compute::test::SimpleTensor::swap</a></div><div class="ttdeci">friend void swap(SimpleTensor&lt; U &gt; &amp;tensor1, SimpleTensor&lt; U &gt; &amp;tensor2)</div><div class="ttdoc">Swaps the content of the provided tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00422">SimpleTensor.h:422</a></div></div>
915 </div><!-- fragment -->
916 </div>
917 </div>
918 <a class="anchor" id="af6124c81d1e81f182d64ae76caa3fa52"></a>
919 <div class="memitem">
920 <div class="memproto">
921       <table class="memname">
922         <tr>
923           <td class="memname">T &amp; operator[] </td>
924           <td>(</td>
925           <td class="paramtype">size_t&#160;</td>
926           <td class="paramname"><em>offset</em></td><td>)</td>
927           <td></td>
928         </tr>
929       </table>
930 </div><div class="memdoc">
931
932 <p>Return value at <code>offset</code> in the buffer. </p>
933 <dl class="params"><dt>Parameters</dt><dd>
934   <table class="params">
935     <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset within the buffer.</td></tr>
936   </table>
937   </dd>
938 </dl>
939 <dl class="section return"><dt>Returns</dt><dd>value in the buffer. </dd></dl>
940
941 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00282">282</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
942
943 <p>References <a class="el" href="helpers_8h_source.xhtml#l00303">offset()</a>.</p>
944 <div class="fragment"><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;{</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;    <span class="keywordflow">return</span> _buffer[<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>];</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
945 </div><!-- fragment -->
946 </div>
947 </div>
948 <a class="anchor" id="a73aecdf45b3f257e0c15757a18573ea4"></a>
949 <div class="memitem">
950 <div class="memproto">
951       <table class="memname">
952         <tr>
953           <td class="memname">const T &amp; operator[] </td>
954           <td>(</td>
955           <td class="paramtype">size_t&#160;</td>
956           <td class="paramname"><em>offset</em></td><td>)</td>
957           <td> const</td>
958         </tr>
959       </table>
960 </div><div class="memdoc">
961
962 <p>Return constant value at <code>offset</code> in the buffer. </p>
963 <dl class="params"><dt>Parameters</dt><dd>
964   <table class="params">
965     <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset within the buffer.</td></tr>
966   </table>
967   </dd>
968 </dl>
969 <dl class="section return"><dt>Returns</dt><dd>constant value in the buffer. </dd></dl>
970
971 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00288">288</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
972
973 <p>References <a class="el" href="helpers_8h_source.xhtml#l00303">offset()</a>.</p>
974 <div class="fragment"><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;{</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;    <span class="keywordflow">return</span> _buffer[<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>];</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;}</div><div class="ttc" id="helpers_8h_xhtml_a009469e4d9b8fce3b6d5e97d2077827d"><div class="ttname"><a href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a></div><div class="ttdeci">__global uchar * offset(const Image *img, int x, int y)</div><div class="ttdoc">Get the pointer position of a Image. </div><div class="ttdef"><b>Definition:</b> <a href="helpers_8h_source.xhtml#l00303">helpers.h:303</a></div></div>
975 </div><!-- fragment -->
976 </div>
977 </div>
978 <a class="anchor" id="a79e20eacb1e963e24a21ebd7369effd7"></a>
979 <div class="memitem">
980 <div class="memproto">
981 <table class="mlabels">
982   <tr>
983   <td class="mlabels-left">
984       <table class="memname">
985         <tr>
986           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">PaddingSize</a> padding </td>
987           <td>(</td>
988           <td class="paramname"></td><td>)</td>
989           <td> const</td>
990         </tr>
991       </table>
992   </td>
993   <td class="mlabels-right">
994 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
995   </tr>
996 </table>
997 </div><div class="memdoc">
998
999 <p>Available padding around the tensor. </p>
1000 <dl class="section return"><dt>Returns</dt><dd>the available padding around the tensor. </dd></dl>
1001
1002 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a07b929c34ad1dc823d8315876aa403ce">IAccessor</a>.</p>
1003
1004 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00392">392</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1005 <div class="fragment"><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;{</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">PaddingSize</a>(0);</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;}</div><div class="ttc" id="namespacearm__compute_xhtml_a4467b302fc9ec312c40580336ab783da"><div class="ttname"><a href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">arm_compute::PaddingSize</a></div><div class="ttdeci">BorderSize PaddingSize</div><div class="ttdoc">Container for 2D padding size. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_types_8h_source.xhtml#l00378">Types.h:378</a></div></div>
1006 </div><!-- fragment -->
1007 </div>
1008 </div>
1009 <a class="anchor" id="ac74736e3863207232a23b7181c1d0f44"></a>
1010 <div class="memitem">
1011 <div class="memproto">
1012 <table class="mlabels">
1013   <tr>
1014   <td class="mlabels-left">
1015       <table class="memname">
1016         <tr>
1017           <td class="memname"><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> quantization_info </td>
1018           <td>(</td>
1019           <td class="paramname"></td><td>)</td>
1020           <td> const</td>
1021         </tr>
1022       </table>
1023   </td>
1024   <td class="mlabels-right">
1025 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
1026   </tr>
1027 </table>
1028 </div><div class="memdoc">
1029
1030 <p>Quantization info in case of asymmetric quantized type. </p>
1031 <dl class="section return"><dt>Returns</dt><dd></dd></dl>
1032
1033 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a3f3e1a3200223e6a304a533b1016e749">IAccessor</a>.</p>
1034
1035 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00312">312</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1036
1037 <p>Referenced by <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00158">arm_compute::test::validation::reference::activation_layer&lt; uint8_t &gt;()</a>, <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00134">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="_convolution3d_8h_source.xhtml#l00154">arm_compute::test::convolution_3d::detail::convolution3d()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00107">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00122">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="validation_2reference_2_fully_connected_layer_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fully_connected_layer()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::im2col_nchw()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00085">arm_compute::test::validation::reference::im2col_nhwc()</a>, <a class="el" href="reference_2_locally_connected_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::locally_connected()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, and <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00278">arm_compute::test::validation::reference::pooling_layer&lt; uint8_t &gt;()</a>.</p>
1038 <div class="fragment"><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;{</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;    <span class="keywordflow">return</span> _quantization_info;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;}</div></div><!-- fragment -->
1039 </div>
1040 </div>
1041 <a class="anchor" id="aba5871b3e4a65d057ec1c28fce8b00ba"></a>
1042 <div class="memitem">
1043 <div class="memproto">
1044 <table class="mlabels">
1045   <tr>
1046   <td class="mlabels-left">
1047       <table class="memname">
1048         <tr>
1049           <td class="memname"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> shape </td>
1050           <td>(</td>
1051           <td class="paramname"></td><td>)</td>
1052           <td> const</td>
1053         </tr>
1054       </table>
1055   </td>
1056   <td class="mlabels-right">
1057 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
1058   </tr>
1059 </table>
1060 </div><div class="memdoc">
1061
1062 <p>Shape of the tensor. </p>
1063 <dl class="section return"><dt>Returns</dt><dd>the shape of the tensor. </dd></dl>
1064
1065 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a1c5e120ea2712b21296aa8f62421d3c1">IAccessor</a>.</p>
1066
1067 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00294">294</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1068
1069 <p>Referenced by <a class="el" href="reference_2_absolute_difference_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::absolute_difference()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::accumulate()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00077">arm_compute::test::validation::reference::accumulate_squared()</a>, <a class="el" href="reference_2_accumulate_8cpp_source.xhtml#l00057">arm_compute::test::validation::reference::accumulate_weighted()</a>, <a class="el" href="validation_2reference_2_activation_layer_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::activation_layer()</a>, <a class="el" href="tests_2validation_2reference_2_utils_8h_source.xhtml#l00098">arm_compute::test::validation::apply_2d_spatial_filter()</a>, <a class="el" href="reference_2_arithmetic_addition_8cpp_source.xhtml#l00089">arm_compute::test::validation::reference::arithmetic_addition()</a>, <a class="el" href="reference_2_arithmetic_subtraction_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::arithmetic_subtraction()</a>, <a class="el" href="validation_2reference_2_batch_normalization_layer_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::batch_normalization_layer()</a>, <a class="el" href="reference_2_bitwise_and_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_and()</a>, <a class="el" href="reference_2_bitwise_not_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_not()</a>, <a class="el" href="reference_2_bitwise_or_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_or()</a>, <a class="el" href="reference_2_bitwise_xor_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::bitwise_xor()</a>, <a class="el" href="reference_2_box3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::box3x3()</a>, <a class="el" href="reference_2_channel_combine_8cpp_source.xhtml#l00092">arm_compute::test::validation::reference::channel_combine()</a>, <a class="el" href="reference_2_channel_shuffle_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::channel_shuffle()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00134">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="reference_2_convert_fully_connected_weights_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::convert_fully_connected_weights()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00146">arm_compute::test::validation::convert_to_asymmetric()</a>, <a class="el" href="reference_2_convolution_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::convolution()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00050">arm_compute::test::validation::reference::convolution_layer_nchw()</a>, <a class="el" href="reference_2_copy_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::copy()</a>, <a class="el" href="_g_l_e_s___c_o_m_p_u_t_e_2_helper_8h_source.xhtml#l00062">arm_compute::test::create_tensor()</a>, <a class="el" href="reference_2_deconvolution_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::deconvolution_layer()</a>, <a class="el" href="reference_2_depth_convert_layer_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::depth_convert()</a>, <a class="el" href="validation_2reference_2_depth_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::depthconcatenate_layer()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00053">arm_compute::test::validation::reference::depthwise_convolution()</a>, <a class="el" href="validation_2reference_2_dequantization_layer_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::dequantization_layer()</a>, <a class="el" href="reference_2_derivative_8cpp_source.xhtml#l00055">arm_compute::test::validation::reference::derivative()</a>, <a class="el" href="reference_2_dilate_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::dilate()</a>, <a class="el" href="validation_2reference_2_equalize_histogram_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::equalize_histogram()</a>, <a class="el" href="reference_2_erode_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::erode()</a>, <a class="el" href="reference_2_fast_corners_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fast_corners()</a>, <a class="el" href="_assets_library_8cpp_source.xhtml#l00276">AssetsLibrary::fill()</a>, <a class="el" href="reference_2_fixed_point_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::fixed_point_operation()</a>, <a class="el" href="reference_2_fixed_point_pixel_wise_multiplication_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::fixed_point_pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_floor_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::floor_layer()</a>, <a class="el" href="validation_2reference_2_fully_connected_layer_8cpp_source.xhtml#l00152">arm_compute::test::validation::reference::fully_connected_layer()</a>, <a class="el" href="reference_2_gaussian3x3_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian3x3()</a>, <a class="el" href="reference_2_gaussian5x5_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gaussian5x5()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::gemm()</a>, <a class="el" href="_g_e_m_m_interleave4x4_8h_source.xhtml#l00038">arm_compute::test::validation::reference::gemm_interleave_4x4()</a>, <a class="el" href="_g_e_m_m_interleave_blocked_8h_source.xhtml#l00051">arm_compute::test::validation::reference::gemm_interleave_blocked()</a>, <a class="el" href="_g_e_m_m_transpose1x_w_8h_source.xhtml#l00038">arm_compute::test::validation::reference::gemm_transpose_1xW()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_lowp_8cpp_source.xhtml#l00101">arm_compute::test::validation::reference::gemmlowp_matrix_multiply_core()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_lowp_8cpp_source.xhtml#l00150">arm_compute::test::validation::reference::gemmlowp_quantize_down_int32_to_uint8_scale()</a>, <a class="el" href="validation_2reference_2_g_e_m_m_lowp_8cpp_source.xhtml#l00171">arm_compute::test::validation::reference::gemmlowp_quantize_down_int32_to_uint8_scale_by_fixedpoint()</a>, <a class="el" href="_assets_library_8cpp_source.xhtml#l00473">AssetsLibrary::get()</a>, <a class="el" href="_assets_library_8cpp_source.xhtml#l00458">AssetsLibrary::get_image_shape()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00200">arm_compute::test::validation::get_tile()</a>, <a class="el" href="validation_2reference_2_h_o_g_descriptor_8cpp_source.xhtml#l00174">arm_compute::test::validation::reference::hog_block_normalization()</a>, <a class="el" href="validation_2reference_2_h_o_g_descriptor_8cpp_source.xhtml#l00226">arm_compute::test::validation::reference::hog_descriptor()</a>, <a class="el" href="reference_2_h_o_g_detector_8cpp_source.xhtml#l00048">arm_compute::test::validation::reference::hog_detector()</a>, <a class="el" href="reference_2_h_o_g_multi_detection_8cpp_source.xhtml#l00138">arm_compute::test::validation::reference::hog_multi_detection()</a>, <a class="el" href="validation_2reference_2_h_o_g_descriptor_8cpp_source.xhtml#l00117">arm_compute::test::validation::reference::hog_orientation_binning()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::im2col_nchw()</a>, <a class="el" href="reference_2_im2_col_8cpp_source.xhtml#l00085">arm_compute::test::validation::reference::im2col_nhwc()</a>, <a class="el" href="validation_2reference_2_integral_image_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::integral_image()</a>, <a class="el" href="validation_2reference_2_l2_normalize_layer_8cpp_source.xhtml#l00051">arm_compute::test::validation::reference::l2_normalize()</a>, <a class="el" href="reference_2_locally_connected_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::locally_connected()</a>, <a class="el" href="validation_2reference_2_magnitude_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::magnitude()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00156">arm_compute::test::validation::matrix_multiply()</a>, <a class="el" href="validation_2reference_2_median3x3_8cpp_source.xhtml#l00044">arm_compute::test::validation::reference::median3x3()</a>, <a class="el" href="validation_2reference_2_min_max_location_8cpp_source.xhtml#l00058">arm_compute::test::validation::reference::min_max_location()</a>, <a class="el" href="reference_2_non_linear_filter_8cpp_source.xhtml#l00036">arm_compute::test::validation::reference::non_linear_filter()</a>, <a class="el" href="_non_maxima_suppression_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::non_maxima_suppression()</a>, <a class="el" href="validation_2reference_2_normalization_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalization_layer()</a>, <a class="el" href="validation_2reference_2_normalize_planar_y_u_v_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalize_planar_yuv_layer()</a>, <a class="el" href="reference_2_permute_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::permute()</a>, <a class="el" href="validation_2reference_2_phase_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::phase()</a>, <a class="el" href="reference_2_pixel_wise_multiplication_8cpp_source.xhtml#l00131">arm_compute::test::validation::reference::pixel_wise_multiplication()</a>, <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00042">arm_compute::test::validation::reference::pooling_layer()</a>, <a class="el" href="validation_2reference_2_quantization_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::quantization_layer()</a>, <a class="el" href="reference_2_reduction_operation_8cpp_source.xhtml#l00064">arm_compute::test::validation::reference::reduction_operation()</a>, <a class="el" href="reference_2_remap_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::remap()</a>, <a class="el" href="validation_2reference_2_reshape_layer_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::reshape_layer()</a>, <a class="el" href="_g_e_m_m_interleave_blocked_8h_source.xhtml#l00038">arm_compute::test::validation::reference::safe_read()</a>, <a class="el" href="validation_2reference_2_scale_8cpp_source.xhtml#l00040">arm_compute::test::validation::reference::scale()</a>, <a class="el" href="reference_2_scharr_8cpp_source.xhtml#l00062">arm_compute::test::validation::reference::scharr()</a>, <a class="el" href="reference_2_sobel_8cpp_source.xhtml#l00106">arm_compute::test::validation::reference::sobel()</a>, <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>, <a class="el" href="reference_2_table_lookup_8cpp_source.xhtml#l00037">arm_compute::test::validation::reference::table_lookup()</a>, <a class="el" href="tests_2validation_2reference_2_utils_8h_source.xhtml#l00061">arm_compute::test::validation::tensor_elem_at()</a>, <a class="el" href="reference_2_threshold_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::threshold()</a>, <a class="el" href="validation_2reference_2_transpose_8cpp_source.xhtml#l00039">arm_compute::test::validation::reference::transpose()</a>, <a class="el" href="tests_2validation_2reference_2_utils_8cpp_source.xhtml#l00069">arm_compute::test::validation::transpose()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00181">arm_compute::test::validation::transpose_matrix()</a>, <a class="el" href="_validation_8h_source.xhtml#l00368">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00375">arm_compute::test::validation::validate_wrap()</a>, <a class="el" href="reference_2_warp_affine_8cpp_source.xhtml#l00050">arm_compute::test::validation::reference::warp_affine()</a>, <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>, <a class="el" href="reference_2_width_concatenate_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::widthconcatenate_layer()</a>, <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00261">arm_compute::test::validation::reference::winograd_filter_transform()</a>, <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00178">arm_compute::test::validation::reference::winograd_input_transform()</a>, and <a class="el" href="reference_2_winograd_8cpp_source.xhtml#l00334">arm_compute::test::validation::reference::winograd_output_transform()</a>.</p>
1070 <div class="fragment"><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;{</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keywordflow">return</span> _shape;</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;}</div></div><!-- fragment -->
1071 </div>
1072 </div>
1073 <a class="anchor" id="ad7701a09a964eab360a8e51fa7ad2c16"></a>
1074 <div class="memitem">
1075 <div class="memproto">
1076 <table class="mlabels">
1077   <tr>
1078   <td class="mlabels-left">
1079       <table class="memname">
1080         <tr>
1081           <td class="memname">size_t size </td>
1082           <td>(</td>
1083           <td class="paramname"></td><td>)</td>
1084           <td> const</td>
1085         </tr>
1086       </table>
1087   </td>
1088   <td class="mlabels-right">
1089 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
1090   </tr>
1091 </table>
1092 </div><div class="memdoc">
1093
1094 <p>Total size of the tensor in bytes. </p>
1095 <dl class="section return"><dt>Returns</dt><dd>the total size of the tensor in bytes. </dd></dl>
1096
1097 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#aa983ddaeded5756189f46428be79c631">IAccessor</a>.</p>
1098
1099 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00318">318</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1100
1101 <p>References <a class="el" href="accumulate_8cl_source.xhtml#l00041">accumulate()</a>, <a class="el" href="_dimensions_8h_source.xhtml#l00189">Dimensions&lt; T &gt;::cbegin()</a>, <a class="el" href="_dimensions_8h_source.xhtml#l00213">Dimensions&lt; T &gt;::cend()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00300">SimpleTensor&lt; T &gt;::element_size()</a>.</p>
1102
1103 <p>Referenced by <a class="el" href="_assets_library_8cpp_source.xhtml#l00265">AssetsLibrary::fill()</a>.</p>
1104 <div class="fragment"><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;{</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">size_t</span> <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ad7701a09a964eab360a8e51fa7ad2c16">size</a> = <a class="code" href="accumulate_8cl.xhtml#a00e540076dd545ad59ac7482f8cdf514">std::accumulate</a>(_shape.<a class="code" href="classarm__compute_1_1_dimensions.xhtml#a4498730adaf901d945c12841df994bba">cbegin</a>(), _shape.<a class="code" href="classarm__compute_1_1_dimensions.xhtml#adf9b6d55d708c285d58511a780e937fc">cend</a>(), 1, std::multiplies&lt;size_t&gt;());</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="keywordflow">return</span> size * <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a62b67b578f684c4d516843c9dea86a23">element_size</a>();</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_dimensions_xhtml_a4498730adaf901d945c12841df994bba"><div class="ttname"><a href="classarm__compute_1_1_dimensions.xhtml#a4498730adaf901d945c12841df994bba">arm_compute::Dimensions::cbegin</a></div><div class="ttdeci">std::array&lt; T, num_max_dimensions &gt;::const_iterator cbegin() const </div><div class="ttdoc">Returns a read-only (constant) iterator that points to the first element in the dimension array...</div><div class="ttdef"><b>Definition:</b> <a href="_dimensions_8h_source.xhtml#l00189">Dimensions.h:189</a></div></div>
1105 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a62b67b578f684c4d516843c9dea86a23"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a62b67b578f684c4d516843c9dea86a23">arm_compute::test::SimpleTensor::element_size</a></div><div class="ttdeci">size_t element_size() const override</div><div class="ttdoc">Size of each element in the tensor in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00300">SimpleTensor.h:300</a></div></div>
1106 <div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_ad7701a09a964eab360a8e51fa7ad2c16"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#ad7701a09a964eab360a8e51fa7ad2c16">arm_compute::test::SimpleTensor::size</a></div><div class="ttdeci">size_t size() const override</div><div class="ttdoc">Total size of the tensor in bytes. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00318">SimpleTensor.h:318</a></div></div>
1107 <div class="ttc" id="classarm__compute_1_1_dimensions_xhtml_adf9b6d55d708c285d58511a780e937fc"><div class="ttname"><a href="classarm__compute_1_1_dimensions.xhtml#adf9b6d55d708c285d58511a780e937fc">arm_compute::Dimensions::cend</a></div><div class="ttdeci">std::array&lt; T, num_max_dimensions &gt;::const_iterator cend() const </div><div class="ttdoc">Returns a read-only (constant) iterator that points one past the last element in the dimension array...</div><div class="ttdef"><b>Definition:</b> <a href="_dimensions_8h_source.xhtml#l00213">Dimensions.h:213</a></div></div>
1108 <div class="ttc" id="accumulate_8cl_xhtml_a00e540076dd545ad59ac7482f8cdf514"><div class="ttname"><a href="accumulate_8cl.xhtml#a00e540076dd545ad59ac7482f8cdf514">accumulate</a></div><div class="ttdeci">__kernel void accumulate(__global uchar *input_ptr, uint input_stride_x, uint input_step_x, uint input_stride_y, uint input_step_y, uint input_offset_first_element_in_bytes, __global uchar *accu_ptr, uint accu_stride_x, uint accu_step_x, uint accu_stride_y, uint accu_step_y, uint accu_offset_first_element_in_bytes)</div><div class="ttdoc">This function accumulates an input image into output image. </div><div class="ttdef"><b>Definition:</b> <a href="accumulate_8cl_source.xhtml#l00041">accumulate.cl:41</a></div></div>
1109 </div><!-- fragment -->
1110 </div>
1111 </div>
1112 <h2 class="groupheader">Friends And Related Function Documentation</h2>
1113 <a class="anchor" id="a467ad6d14558452f498777a7823fa252"></a>
1114 <div class="memitem">
1115 <div class="memproto">
1116 <table class="mlabels">
1117   <tr>
1118   <td class="mlabels-left">
1119       <table class="memname">
1120         <tr>
1121           <td class="memname">friend class <a class="el" href="classarm__compute_1_1test_1_1_raw_tensor.xhtml">RawTensor</a></td>
1122         </tr>
1123       </table>
1124   </td>
1125   <td class="mlabels-right">
1126 <span class="mlabels"><span class="mlabel">friend</span></span>  </td>
1127   </tr>
1128 </table>
1129 </div><div class="memdoc">
1130
1131 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00111">111</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1132
1133 </div>
1134 </div>
1135 <a class="anchor" id="a51920d34b0fa5415e84891ad8e755224"></a>
1136 <div class="memitem">
1137 <div class="memproto">
1138 <table class="mlabels">
1139   <tr>
1140   <td class="mlabels-left">
1141       <table class="memname">
1142         <tr>
1143           <td class="memname">void swap </td>
1144           <td>(</td>
1145           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;&#160;</td>
1146           <td class="paramname"><em>tensor1</em>, </td>
1147         </tr>
1148         <tr>
1149           <td class="paramkey"></td>
1150           <td></td>
1151           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;&#160;</td>
1152           <td class="paramname"><em>tensor2</em>&#160;</td>
1153         </tr>
1154         <tr>
1155           <td></td>
1156           <td>)</td>
1157           <td></td><td></td>
1158         </tr>
1159       </table>
1160   </td>
1161   <td class="mlabels-right">
1162 <span class="mlabels"><span class="mlabel">friend</span></span>  </td>
1163   </tr>
1164 </table>
1165 </div><div class="memdoc">
1166
1167 <p>Swaps the content of the provided tensors. </p>
1168 <dl class="params"><dt>Parameters</dt><dd>
1169   <table class="params">
1170     <tr><td class="paramdir">[in,out]</td><td class="paramname">tensor1</td><td><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> to be swapped. </td></tr>
1171     <tr><td class="paramdir">[in,out]</td><td class="paramname">tensor2</td><td><a class="el" href="classarm__compute_1_1_tensor.xhtml" title="Basic implementation of the tensor interface. ">Tensor</a> to be swapped. </td></tr>
1172   </table>
1173   </dd>
1174 </dl>
1175
1176 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00422">422</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1177
1178 <p>Referenced by <a class="el" href="_simple_tensor_8h_source.xhtml#l00274">SimpleTensor&lt; T &gt;::operator=()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00422">arm_compute::test::swap()</a>.</p>
1179 <div class="fragment"><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;{</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;    <span class="comment">// Use unqualified call to swap to enable ADL. But make std::swap available</span></div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="comment">// as backup.</span></div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <span class="keyword">using</span> <a class="code" href="namespacearm__compute_1_1test.xhtml#a28edc8880596d14c099f3c2509efc8b3">std::swap</a>;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._shape, tensor2._shape);</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._format, tensor2._format);</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._data_type, tensor2._data_type);</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._num_channels, tensor2._num_channels);</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._fixed_point_position, tensor2._fixed_point_position);</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._quantization_info, tensor2._quantization_info);</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    <a class="code" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">swap</a>(tensor1._buffer, tensor2._buffer);</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1_simple_tensor_xhtml_a51920d34b0fa5415e84891ad8e755224"><div class="ttname"><a href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#a51920d34b0fa5415e84891ad8e755224">arm_compute::test::SimpleTensor::swap</a></div><div class="ttdeci">friend void swap(SimpleTensor&lt; U &gt; &amp;tensor1, SimpleTensor&lt; U &gt; &amp;tensor2)</div><div class="ttdoc">Swaps the content of the provided tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00422">SimpleTensor.h:422</a></div></div>
1180 <div class="ttc" id="namespacearm__compute_1_1test_xhtml_a28edc8880596d14c099f3c2509efc8b3"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a28edc8880596d14c099f3c2509efc8b3">arm_compute::test::swap</a></div><div class="ttdeci">void swap(SimpleTensor&lt; U &gt; &amp;tensor1, SimpleTensor&lt; U &gt; &amp;tensor2)</div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00422">SimpleTensor.h:422</a></div></div>
1181 </div><!-- fragment -->
1182 </div>
1183 </div>
1184 <hr/>The documentation for this class was generated from the following file:<ul>
1185 <li>tests/<a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a></li>
1186 </ul>
1187 </div><!-- contents -->
1188 </div><!-- doc-content -->
1189 <!-- start footer part -->
1190 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1191   <ul>
1192     <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1test.xhtml">test</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a></li>
1193     <li class="footer">Generated on Wed May 23 2018 11:36:44 for Compute Library by
1194     <a href="http://www.doxygen.org/index.html">
1195     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
1196   </ul>
1197 </div>
1198 </body>
1199 </html>