b885afc1ad63f0532c0311553ba8bea511c5f7c3
[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.02</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="separator:afb9ded5f49336ae503bb9f2035ea902b"><td class="memSeparator" colspan="2">&#160;</td></tr>
142 <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>
143 <tr class="separator:acf18a24d1f21176e811e88cee2a70f1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
144 </table><table class="memberdecls">
145 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
146 Public Member Functions</h2></td></tr>
147 <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>
148 <tr class="memdesc:a011bb65bd16aaf66b8efb3929692b2ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an uninitialised tensor.  <a href="#a011bb65bd16aaf66b8efb3929692b2ce">More...</a><br /></td></tr>
149 <tr class="separator:a011bb65bd16aaf66b8efb3929692b2ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
150 <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>
151 <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>
152 <tr class="separator:a9a1cd44d7621633f8ae04a3a16287673"><td class="memSeparator" colspan="2">&#160;</td></tr>
153 <tr class="memitem:a595bc6006e098a6564cbc270eaac9667"><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#a595bc6006e098a6564cbc270eaac9667">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>())</td></tr>
154 <tr class="memdesc:a595bc6006e098a6564cbc270eaac9667"><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="#a595bc6006e098a6564cbc270eaac9667">More...</a><br /></td></tr>
155 <tr class="separator:a595bc6006e098a6564cbc270eaac9667"><td class="memSeparator" colspan="2">&#160;</td></tr>
156 <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>
157 <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>
158 <tr class="separator:ae1769959044a4356fdc93cac2b03a5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
159 <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>
160 <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>
161 <tr class="separator:ad4622eda610d53fb6852209f0213aeed"><td class="memSeparator" colspan="2">&#160;</td></tr>
162 <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>
163 <tr class="separator:a40eed42b5858849fb8570018760ba996"><td class="memSeparator" colspan="2">&#160;</td></tr>
164 <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>
165 <tr class="separator:a16d7ecd97f89cf9dc40b3fc7c9abe2cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
166 <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>
167 <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>
168 <tr class="separator:af6124c81d1e81f182d64ae76caa3fa52"><td class="memSeparator" colspan="2">&#160;</td></tr>
169 <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>
170 <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>
171 <tr class="separator:a73aecdf45b3f257e0c15757a18573ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
172 <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>
173 <tr class="memdesc:aba5871b3e4a65d057ec1c28fce8b00ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shape of the tensor.  <a href="#aba5871b3e4a65d057ec1c28fce8b00ba">More...</a><br /></td></tr>
174 <tr class="separator:aba5871b3e4a65d057ec1c28fce8b00ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
175 <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>
176 <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>
177 <tr class="separator:a62b67b578f684c4d516843c9dea86a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
178 <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>
179 <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>
180 <tr class="separator:ad7701a09a964eab360a8e51fa7ad2c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
181 <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>
182 <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>
183 <tr class="separator:ac4b36cc1e56b0b7e579bb4b7196490db"><td class="memSeparator" colspan="2">&#160;</td></tr>
184 <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>
185 <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>
186 <tr class="separator:a9a3e72153aeb3ed212e9c3698774e881"><td class="memSeparator" colspan="2">&#160;</td></tr>
187 <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>
188 <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>
189 <tr class="separator:abdd3637f2bbde9d7d0cc0b7bbd8400bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
190 <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>
191 <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>
192 <tr class="separator:aedcfdd4c3b92fe0d63b5463c7ad1d21e"><td class="memSeparator" colspan="2">&#160;</td></tr>
193 <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>
194 <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>
195 <tr class="separator:a79e20eacb1e963e24a21ebd7369effd7"><td class="memSeparator" colspan="2">&#160;</td></tr>
196 <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>
197 <tr class="memdesc:a35ccf2eb0c18a15feab2db98b307b78b"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of bits for the fractional part of the fixed point numbers.  <a href="#a35ccf2eb0c18a15feab2db98b307b78b">More...</a><br /></td></tr>
198 <tr class="separator:a35ccf2eb0c18a15feab2db98b307b78b"><td class="memSeparator" colspan="2">&#160;</td></tr>
199 <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>
200 <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>
201 <tr class="separator:ac74736e3863207232a23b7181c1d0f44"><td class="memSeparator" colspan="2">&#160;</td></tr>
202 <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>
203 <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>
204 <tr class="separator:a0c52a8f0085b55d907af7210ef2069d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
205 <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>
206 <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>
207 <tr class="separator:adc1e16b293a89a9ccc9541058b5ca560"><td class="memSeparator" colspan="2">&#160;</td></tr>
208 <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>
209 <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>
210 <tr class="separator:a39537b09ccc3ce3d17922f4ef49a123f"><td class="memSeparator" colspan="2">&#160;</td></tr>
211 <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>
212 <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>
213 <tr class="separator:a2df95f7046b81e69a1265a42202ea068"><td class="memSeparator" colspan="2">&#160;</td></tr>
214 <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>
215 <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>
216 <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>
217 <tr class="separator:a04e5197de7318cec1ebfd3cea50f5de5 inherit pub_methods_classarm__compute_1_1test_1_1_i_accessor"><td class="memSeparator" colspan="2">&#160;</td></tr>
218 </table><table class="memberdecls">
219 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
220 Friends</h2></td></tr>
221 <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>
222 <tr class="separator:a467ad6d14558452f498777a7823fa252"><td class="memSeparator" colspan="2">&#160;</td></tr>
223 <tr class="memitem:a51920d34b0fa5415e84891ad8e755224"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
224 <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>
225 <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>
226 <tr class="separator:a51920d34b0fa5415e84891ad8e755224"><td class="memSeparator" colspan="2">&#160;</td></tr>
227 </table>
228 <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
229 <div class="textblock"><h3>template&lt;typename T&gt;<br />
230 class arm_compute::test::SimpleTensor&lt; T &gt;</h3>
231
232 <p>Simple tensor object that stores elements in a consecutive chunk of memory. </p>
233 <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>
234 <p>Furthermore, the class provides methods to convert the tensor's values into different image format. </p>
235
236 <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>
237 </div><h2 class="groupheader">Member Typedef Documentation</h2>
238 <a class="anchor" id="acf18a24d1f21176e811e88cee2a70f1f"></a>
239 <div class="memitem">
240 <div class="memproto">
241       <table class="memname">
242         <tr>
243           <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>
244         </tr>
245       </table>
246 </div><div class="memdoc">
247
248 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00100">100</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
249
250 </div>
251 </div>
252 <a class="anchor" id="afb9ded5f49336ae503bb9f2035ea902b"></a>
253 <div class="memitem">
254 <div class="memproto">
255       <table class="memname">
256         <tr>
257           <td class="memname">using <a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml#afb9ded5f49336ae503bb9f2035ea902b">value_type</a> =  T</td>
258         </tr>
259       </table>
260 </div><div class="memdoc">
261
262 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00099">99</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
263
264 </div>
265 </div>
266 <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
267 <a class="anchor" id="a011bb65bd16aaf66b8efb3929692b2ce"></a>
268 <div class="memitem">
269 <div class="memproto">
270 <table class="mlabels">
271   <tr>
272   <td class="mlabels-left">
273       <table class="memname">
274         <tr>
275           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
276           <td>(</td>
277           <td class="paramname"></td><td>)</td>
278           <td></td>
279         </tr>
280       </table>
281   </td>
282   <td class="mlabels-right">
283 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
284   </tr>
285 </table>
286 </div><div class="memdoc">
287
288 <p>Create an uninitialised tensor. </p>
289
290 </div>
291 </div>
292 <a class="anchor" id="a9a1cd44d7621633f8ae04a3a16287673"></a>
293 <div class="memitem">
294 <div class="memproto">
295       <table class="memname">
296         <tr>
297           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
298           <td>(</td>
299           <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a>&#160;</td>
300           <td class="paramname"><em>shape</em>, </td>
301         </tr>
302         <tr>
303           <td class="paramkey"></td>
304           <td></td>
305           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a>&#160;</td>
306           <td class="paramname"><em>format</em>, </td>
307         </tr>
308         <tr>
309           <td class="paramkey"></td>
310           <td></td>
311           <td class="paramtype">int&#160;</td>
312           <td class="paramname"><em>fixed_point_position</em> = <code>0</code>&#160;</td>
313         </tr>
314         <tr>
315           <td></td>
316           <td>)</td>
317           <td></td><td></td>
318         </tr>
319       </table>
320 </div><div class="memdoc">
321
322 <p>Create an uninitialised tensor of the given <code>shape</code> and <code>format</code>. </p>
323 <dl class="params"><dt>Parameters</dt><dd>
324   <table class="params">
325     <tr><td class="paramdir">[in]</td><td class="paramname">shape</td><td>Shape of the new raw tensor. </td></tr>
326     <tr><td class="paramdir">[in]</td><td class="paramname">format</td><td>Format of the new raw tensor. </td></tr>
327     <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>
328   </table>
329   </dd>
330 </dl>
331
332 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00187">187</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
333
334 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00295">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00331">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
335 <div class="fragment"><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00189"></a><span class="lineno">  189</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="l00190"></a><span class="lineno">  190</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="l00191"></a><span class="lineno">  191</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="l00192"></a><span class="lineno">  192</span>&#160;      _quantization_info()</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;{</div><div class="line"><a name="l00194"></a><span class="lineno">  194</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="l00195"></a><span class="lineno">  195</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="l00196"></a><span class="lineno">  196</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#l00276">SimpleTensor.h:276</a></div></div>
336 <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#l00245">SimpleTensor.h:245</a></div></div>
337 <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#l00295">SimpleTensor.h:295</a></div></div>
338 <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#l00331">SimpleTensor.h:331</a></div></div>
339 <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">The number of bits for the fractional part of the fixed point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00257">SimpleTensor.h:257</a></div></div>
340 </div><!-- fragment -->
341 </div>
342 </div>
343 <a class="anchor" id="a595bc6006e098a6564cbc270eaac9667"></a>
344 <div class="memitem">
345 <div class="memproto">
346       <table class="memname">
347         <tr>
348           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
349           <td>(</td>
350           <td class="paramtype"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a>&#160;</td>
351           <td class="paramname"><em>shape</em>, </td>
352         </tr>
353         <tr>
354           <td class="paramkey"></td>
355           <td></td>
356           <td class="paramtype"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>&#160;</td>
357           <td class="paramname"><em>data_type</em>, </td>
358         </tr>
359         <tr>
360           <td class="paramkey"></td>
361           <td></td>
362           <td class="paramtype">int&#160;</td>
363           <td class="paramname"><em>num_channels</em> = <code>1</code>, </td>
364         </tr>
365         <tr>
366           <td class="paramkey"></td>
367           <td></td>
368           <td class="paramtype">int&#160;</td>
369           <td class="paramname"><em>fixed_point_position</em> = <code>0</code>, </td>
370         </tr>
371         <tr>
372           <td class="paramkey"></td>
373           <td></td>
374           <td class="paramtype"><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>&#160;</td>
375           <td class="paramname"><em>quantization_info</em> = <code><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a>()</code>&#160;</td>
376         </tr>
377         <tr>
378           <td></td>
379           <td>)</td>
380           <td></td><td></td>
381         </tr>
382       </table>
383 </div><div class="memdoc">
384
385 <p>Create an uninitialised tensor of the given <code>shape</code> and <code>data</code> type. </p>
386 <dl class="params"><dt>Parameters</dt><dd>
387   <table class="params">
388     <tr><td class="paramdir">[in]</td><td class="paramname">shape</td><td>Shape of the new raw tensor. </td></tr>
389     <tr><td class="paramdir">[in]</td><td class="paramname">data_type</td><td>Data type of the new raw tensor. </td></tr>
390     <tr><td class="paramdir">[in]</td><td class="paramname">num_channels</td><td>(Optional) Number of channels (default = 1). </td></tr>
391     <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>
392     <tr><td class="paramdir">[in]</td><td class="paramname">quantization_info</td><td>(Optional) Quantization info for asymmetric quantization (default = empty). </td></tr>
393   </table>
394   </dd>
395 </dl>
396
397 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00199">199</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
398
399 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00295">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00331">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
400 <div class="fragment"><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00201"></a><span class="lineno">  201</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="l00202"></a><span class="lineno">  202</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="l00203"></a><span class="lineno">  203</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="l00204"></a><span class="lineno">  204</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="l00205"></a><span class="lineno">  205</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="l00206"></a><span class="lineno">  206</span>&#160;{</div><div class="line"><a name="l00207"></a><span class="lineno">  207</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="l00208"></a><span class="lineno">  208</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#l00282">SimpleTensor.h:282</a></div></div>
401 <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#l00245">SimpleTensor.h:245</a></div></div>
402 <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#l00295">SimpleTensor.h:295</a></div></div>
403 <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#l00331">SimpleTensor.h:331</a></div></div>
404 <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#l00263">SimpleTensor.h:263</a></div></div>
405 <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">The number of bits for the fractional part of the fixed point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="_simple_tensor_8h_source.xhtml#l00257">SimpleTensor.h:257</a></div></div>
406 </div><!-- fragment -->
407 </div>
408 </div>
409 <a class="anchor" id="ae1769959044a4356fdc93cac2b03a5f6"></a>
410 <div class="memitem">
411 <div class="memproto">
412       <table class="memname">
413         <tr>
414           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
415           <td>(</td>
416           <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>
417           <td class="paramname"><em>tensor</em></td><td>)</td>
418           <td></td>
419         </tr>
420       </table>
421 </div><div class="memdoc">
422
423 <p>Create a deep copy of the given <code>tensor</code>. </p>
424 <dl class="params"><dt>Parameters</dt><dd>
425   <table class="params">
426     <tr><td class="paramdir">[in]</td><td class="paramname">tensor</td><td>To be copied tensor. </td></tr>
427   </table>
428   </dd>
429 </dl>
430
431 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00211">211</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
432
433 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00343">SimpleTensor&lt; T &gt;::data()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00295">SimpleTensor&lt; T &gt;::num_channels()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00331">SimpleTensor&lt; T &gt;::num_elements()</a>.</p>
434 <div class="fragment"><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    : _buffer(<span class="keyword">nullptr</span>),</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;      _shape(tensor.shape()),</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;      _format(tensor.format()),</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;      _data_type(tensor.data_type()),</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;      _num_channels(tensor.num_channels()),</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;      _fixed_point_position(tensor.fixed_point_position()),</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;      _quantization_info(tensor.quantization_info())</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;{</div><div class="line"><a name="l00220"></a><span class="lineno">  220</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="l00221"></a><span class="lineno">  221</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="l00222"></a><span class="lineno">  222</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#l00295">SimpleTensor.h:295</a></div></div>
435 <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#l00331">SimpleTensor.h:331</a></div></div>
436 </div><!-- fragment -->
437 </div>
438 </div>
439 <a class="anchor" id="a40eed42b5858849fb8570018760ba996"></a>
440 <div class="memitem">
441 <div class="memproto">
442 <table class="mlabels">
443   <tr>
444   <td class="mlabels-left">
445       <table class="memname">
446         <tr>
447           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
448           <td>(</td>
449           <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>
450           <td class="paramname"></td><td>)</td>
451           <td></td>
452         </tr>
453       </table>
454   </td>
455   <td class="mlabels-right">
456 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
457   </tr>
458 </table>
459 </div><div class="memdoc">
460
461 </div>
462 </div>
463 <a class="anchor" id="a16d7ecd97f89cf9dc40b3fc7c9abe2cd"></a>
464 <div class="memitem">
465 <div class="memproto">
466 <table class="mlabels">
467   <tr>
468   <td class="mlabels-left">
469       <table class="memname">
470         <tr>
471           <td class="memname">~<a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a> </td>
472           <td>(</td>
473           <td class="paramname"></td><td>)</td>
474           <td></td>
475         </tr>
476       </table>
477   </td>
478   <td class="mlabels-right">
479 <span class="mlabels"><span class="mlabel">default</span></span>  </td>
480   </tr>
481 </table>
482 </div><div class="memdoc">
483
484 </div>
485 </div>
486 <h2 class="groupheader">Member Function Documentation</h2>
487 <a class="anchor" id="a0c52a8f0085b55d907af7210ef2069d0"></a>
488 <div class="memitem">
489 <div class="memproto">
490       <table class="memname">
491         <tr>
492           <td class="memname">const T * data </td>
493           <td>(</td>
494           <td class="paramname"></td><td>)</td>
495           <td> const</td>
496         </tr>
497       </table>
498 </div><div class="memdoc">
499
500 <p>Constant pointer to the underlying buffer. </p>
501
502 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00343">343</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
503
504 <p>Referenced by <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#l00225">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="validation_2reference_2_l2_normalize_layer_8cpp_source.xhtml#l00051">arm_compute::test::validation::reference::l2_normalize()</a>, <a class="el" href="reference_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#l00211">SimpleTensor&lt; T &gt;::SimpleTensor()</a>, and <a class="el" href="validation_2reference_2_softmax_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::softmax_layer()</a>.</p>
505 <div class="fragment"><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> _buffer.get();</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;}</div></div><!-- fragment -->
506 </div>
507 </div>
508 <a class="anchor" id="adc1e16b293a89a9ccc9541058b5ca560"></a>
509 <div class="memitem">
510 <div class="memproto">
511       <table class="memname">
512         <tr>
513           <td class="memname">T * data </td>
514           <td>(</td>
515           <td class="paramname"></td><td>)</td>
516           <td></td>
517         </tr>
518       </table>
519 </div><div class="memdoc">
520
521 <p>Pointer to the underlying buffer. </p>
522
523 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00349">349</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
524 <div class="fragment"><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;{</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    <span class="keywordflow">return</span> _buffer.get();</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;}</div></div><!-- fragment -->
525 </div>
526 </div>
527 <a class="anchor" id="a9a3e72153aeb3ed212e9c3698774e881"></a>
528 <div class="memitem">
529 <div class="memproto">
530 <table class="mlabels">
531   <tr>
532   <td class="mlabels-left">
533       <table class="memname">
534         <tr>
535           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> data_type </td>
536           <td>(</td>
537           <td class="paramname"></td><td>)</td>
538           <td> const</td>
539         </tr>
540       </table>
541   </td>
542   <td class="mlabels-right">
543 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
544   </tr>
545 </table>
546 </div><div class="memdoc">
547
548 <p>Data type of the tensor. </p>
549
550 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a7cfb31af63202568efef5214acfbf3ba">IAccessor</a>.</p>
551
552 <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>
553
554 <p>References <a class="el" href="arm__compute_2core_2_utils_8h_source.xhtml#l00195">arm_compute::data_type_from_format()</a>, and <a class="el" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::UNKNOWN</a>.</p>
555
556 <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="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00227">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_dilate_8cpp_source.xhtml#l00041">arm_compute::test::validation::reference::dilate()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00251">SimpleTensor&lt; T &gt;::element_size()</a>, <a class="el" href="reference_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#l00442">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="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_magnitude_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::magnitude()</a>, <a class="el" href="reference_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#l00058">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#l00039">arm_compute::test::validation::reference::scale()</a>, <a class="el" href="validation_2fixtures_2_convolution_layer_fixture_8h_source.xhtml#l00057">ConvolutionValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T &gt;::setup()</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#l00334">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00398">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>, and <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>.</p>
557 <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">if</span>(_format != <a class="code" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">Format::UNKNOWN</a>)</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;    {</div><div class="line"><a name="l00286"></a><span class="lineno">  286</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="l00287"></a><span class="lineno">  287</span>&#160;    }</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;    <span class="keywordflow">else</span></div><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> _data_type;</div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;    }</div><div class="line"><a name="l00292"></a><span class="lineno">  292</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#l00195">Utils.h:195</a></div></div>
558 <div class="ttc" id="namespacearm__compute_xhtml_a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3"><div class="ttname"><a href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::CLVersion::UNKNOWN</a></div></div>
559 </div><!-- fragment -->
560 </div>
561 </div>
562 <a class="anchor" id="a62b67b578f684c4d516843c9dea86a23"></a>
563 <div class="memitem">
564 <div class="memproto">
565 <table class="mlabels">
566   <tr>
567   <td class="mlabels-left">
568       <table class="memname">
569         <tr>
570           <td class="memname">size_t element_size </td>
571           <td>(</td>
572           <td class="paramname"></td><td>)</td>
573           <td> const</td>
574         </tr>
575       </table>
576   </td>
577   <td class="mlabels-right">
578 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
579   </tr>
580 </table>
581 </div><div class="memdoc">
582
583 <p>Size of each element in the tensor in bytes. </p>
584
585 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#aa459796b5489eca8a9160cb5dcf1a103">IAccessor</a>.</p>
586
587 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00251">251</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
588
589 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00282">SimpleTensor&lt; T &gt;::data_type()</a>, <a class="el" href="arm__compute_2core_2_utils_8h_source.xhtml#l00164">arm_compute::element_size_from_data_type()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00295">SimpleTensor&lt; T &gt;::num_channels()</a>.</p>
590
591 <p>Referenced by <a class="el" href="_assets_library_8h_source.xhtml#l00442">AssetsLibrary::fill()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00030">RawTensor::RawTensor()</a>, <a class="el" href="validation_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00056">FullyConnectedLayerValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T, run_interleave &gt;::setup()</a>, <a class="el" href="validation_2fixtures_2_convolution_layer_fixture_8h_source.xhtml#l00057">ConvolutionValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T &gt;::setup()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00269">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#l00334">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00398">arm_compute::test::validation::validate_wrap()</a>.</p>
592 <div class="fragment"><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;{</div><div class="line"><a name="l00253"></a><span class="lineno">  253</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="l00254"></a><span class="lineno">  254</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#l00164">Utils.h:164</a></div></div>
593 <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#l00282">SimpleTensor.h:282</a></div></div>
594 <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#l00295">SimpleTensor.h:295</a></div></div>
595 </div><!-- fragment -->
596 </div>
597 </div>
598 <a class="anchor" id="a35ccf2eb0c18a15feab2db98b307b78b"></a>
599 <div class="memitem">
600 <div class="memproto">
601 <table class="mlabels">
602   <tr>
603   <td class="mlabels-left">
604       <table class="memname">
605         <tr>
606           <td class="memname">int fixed_point_position </td>
607           <td>(</td>
608           <td class="paramname"></td><td>)</td>
609           <td> const</td>
610         </tr>
611       </table>
612   </td>
613   <td class="mlabels-right">
614 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
615   </tr>
616 </table>
617 </div><div class="memdoc">
618
619 <p>The number of bits for the fractional part of the fixed point numbers. </p>
620
621 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#ab21a362740e892b6e913bd8db03b0e67">IAccessor</a>.</p>
622
623 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00257">257</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
624
625 <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_convolution_layer_8cpp_source.xhtml#l00227">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="validation_2reference_2_normalization_layer_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::normalization_layer()</a>, <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00058">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>
626 <div class="fragment"><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;{</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;    <span class="keywordflow">return</span> _fixed_point_position;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;}</div></div><!-- fragment -->
627 </div>
628 </div>
629 <a class="anchor" id="ac4b36cc1e56b0b7e579bb4b7196490db"></a>
630 <div class="memitem">
631 <div class="memproto">
632 <table class="mlabels">
633   <tr>
634   <td class="mlabels-left">
635       <table class="memname">
636         <tr>
637           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58">Format</a> format </td>
638           <td>(</td>
639           <td class="paramname"></td><td>)</td>
640           <td> const</td>
641         </tr>
642       </table>
643   </td>
644   <td class="mlabels-right">
645 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
646   </tr>
647 </table>
648 </div><div class="memdoc">
649
650 <p><a class="el" href="struct_image.xhtml" title="Structure to hold Image information. ">Image</a> format of the tensor. </p>
651
652 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a57360dd9ca408834c0ea1a8ef70a11f4">IAccessor</a>.</p>
653
654 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00276">276</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
655
656 <p>Referenced by <a class="el" href="_assets_library_8cpp_source.xhtml#l00236">AssetsLibrary::fill()</a>, <a class="el" href="_raw_tensor_8cpp_source.xhtml#l00042">RawTensor::RawTensor()</a>, <a class="el" href="_validation_8h_source.xhtml#l00334">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00398">arm_compute::test::validation::validate_wrap()</a>.</p>
657 <div class="fragment"><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> _format;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;}</div></div><!-- fragment -->
658 </div>
659 </div>
660 <a class="anchor" id="abdd3637f2bbde9d7d0cc0b7bbd8400bb"></a>
661 <div class="memitem">
662 <div class="memproto">
663 <table class="mlabels">
664   <tr>
665   <td class="mlabels-left">
666       <table class="memname">
667         <tr>
668           <td class="memname">int num_channels </td>
669           <td>(</td>
670           <td class="paramname"></td><td>)</td>
671           <td> const</td>
672         </tr>
673       </table>
674   </td>
675   <td class="mlabels-right">
676 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
677   </tr>
678 </table>
679 </div><div class="memdoc">
680
681 <p>Number of channels of the tensor. </p>
682
683 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#ac492280ef2d7889f1226d34743b74459">IAccessor</a>.</p>
684
685 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00295">295</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
686
687 <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>
688
689 <p>Referenced by <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#l00251">SimpleTensor&lt; T &gt;::element_size()</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="_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#l00187">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#l00334">arm_compute::test::validation::validate()</a>, and <a class="el" href="_validation_8h_source.xhtml#l00398">arm_compute::test::validation::validate_wrap()</a>.</p>
690 <div class="fragment"><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;{</div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;    <span class="keywordflow">switch</span>(_format)</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;    {</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6669348b484e3008dca2bfa8e85e40b5">Format::U8</a>:</div><div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aef9ef3ebca4d2b64b6ec83808bafa5f2">Format::U16</a>:</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a6e0b0886efb94aec797f6b830329b72c">Format::S16</a>:</div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ac8bd5bedff8ef192d39a962afc0e19ee">Format::U32</a>:</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58aa1e28eee0339658d39a8b4d325b56e9c">Format::S32</a>:</div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">Format::F16</a>:</div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">Format::F32</a>:</div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;        <span class="comment">// Because the U and V channels are subsampled</span></div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;        <span class="comment">// these formats appear like having only 2 channels:</span></div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a481e7a6945eb9f23e87f2de780b2e164">Format::YUYV422</a>:</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58af557448a61ad2927194f63442e131dfa">Format::UYVY422</a>:</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a079eb95759d2ad31254f659d63651825">Format::UV88</a>:</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;            <span class="keywordflow">return</span> 2;</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a30ff380a3be74628024063a99fba10f0">Format::RGB888</a>:</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            <span class="keywordflow">return</span> 3;</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a165f06116e7b8d9b2481dfc805db4619">Format::RGBA8888</a>:</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;            <span class="keywordflow">return</span> 4;</div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">Format::UNKNOWN</a>:</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;            <span class="keywordflow">return</span> _num_channels;</div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        <span class="comment">//Doesn&#39;t make sense for planar formats:</span></div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a202f5d8c2c70d31048154d8b8b28e755">Format::NV12</a>:</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a8e9f6aa1af7e0abbc7e64521e6ffe1b4">Format::NV21</a>:</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58ab08f0cb36474118c5bbc03b3a172a778">Format::IYUV</a>:</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;        <span class="keywordflow">case</span> <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a11cfa56ee0ddbbc30a2fd189d7475f4c">Format::YUV444</a>:</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <span class="keywordflow">default</span>:</div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;    }</div><div class="line"><a name="l00328"></a><span class="lineno">  328</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>
691 <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>
692 <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>
693 <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>
694 <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>
695 <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>
696 <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>
697 <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>
698 <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>
699 <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>
700 <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>
701 <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>
702 <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>
703 <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>
704 <div class="ttc" id="namespacearm__compute_xhtml_a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3"><div class="ttname"><a href="namespacearm__compute.xhtml#a3a440b3893fa10608d4428958be1c52ea696b031073e74bf2cb98e5ef201d4aa3">arm_compute::CLVersion::UNKNOWN</a></div></div>
705 <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>
706 <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>
707 </div><!-- fragment -->
708 </div>
709 </div>
710 <a class="anchor" id="aedcfdd4c3b92fe0d63b5463c7ad1d21e"></a>
711 <div class="memitem">
712 <div class="memproto">
713 <table class="mlabels">
714   <tr>
715   <td class="mlabels-left">
716       <table class="memname">
717         <tr>
718           <td class="memname">int num_elements </td>
719           <td>(</td>
720           <td class="paramname"></td><td>)</td>
721           <td> const</td>
722         </tr>
723       </table>
724   </td>
725   <td class="mlabels-right">
726 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
727   </tr>
728 </table>
729 </div><div class="memdoc">
730
731 <p>Number of elements of the tensor. </p>
732
733 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a7596bc2928432a0ac2271bc9184d692e">IAccessor</a>.</p>
734
735 <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>
736
737 <p>References <a class="el" href="_tensor_shape_8h_source.xhtml#l00153">TensorShape::total_size()</a>.</p>
738
739 <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_min_max_location_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::compute_min_max()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00116">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00127">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_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="reference_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="reference_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="reference_2_mean_std_dev_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::mean_and_standard_deviation()</a>, <a class="el" href="reference_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="reference_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="validation_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00056">FullyConnectedLayerValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T, run_interleave &gt;::setup()</a>, <a class="el" href="validation_2fixtures_2_convolution_layer_fixture_8h_source.xhtml#l00057">ConvolutionValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T &gt;::setup()</a>, <a class="el" href="_simple_tensor_8h_source.xhtml#l00187">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#l00334">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00398">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>, and <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>.</p>
740 <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> _shape.<a class="code" href="classarm__compute_1_1_tensor_shape.xhtml#a4eaec01ba2c12093db609d1034ad0bc1">total_size</a>();</div><div class="line"><a name="l00334"></a><span class="lineno">  334</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#l00153">TensorShape.h:153</a></div></div>
741 </div><!-- fragment -->
742 </div>
743 </div>
744 <a class="anchor" id="a39537b09ccc3ce3d17922f4ef49a123f"></a>
745 <div class="memitem">
746 <div class="memproto">
747 <table class="mlabels">
748   <tr>
749   <td class="mlabels-left">
750       <table class="memname">
751         <tr>
752           <td class="memname">const void * operator() </td>
753           <td>(</td>
754           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;&#160;</td>
755           <td class="paramname"><em>coord</em></td><td>)</td>
756           <td> const</td>
757         </tr>
758       </table>
759   </td>
760   <td class="mlabels-right">
761 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
762   </tr>
763 </table>
764 </div><div class="memdoc">
765
766 <p>Read only access to the specified element. </p>
767 <dl class="params"><dt>Parameters</dt><dd>
768   <table class="params">
769     <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>
770   </table>
771   </dd>
772 </dl>
773 <dl class="section return"><dt>Returns</dt><dd>A pointer to the desired element. </dd></dl>
774
775 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a583a35e4fd72f072a6b76ce58c2e3998">IAccessor</a>.</p>
776
777 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00355">355</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
778
779 <p>References <a class="el" href="tests_2_utils_8h_source.xhtml#l00432">arm_compute::test::coord2index()</a>.</p>
780 <div class="fragment"><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;{</div><div class="line"><a name="l00357"></a><span class="lineno">  357</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="l00358"></a><span class="lineno">  358</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#l00432">Utils.h:432</a></div></div>
781 </div><!-- fragment -->
782 </div>
783 </div>
784 <a class="anchor" id="a2df95f7046b81e69a1265a42202ea068"></a>
785 <div class="memitem">
786 <div class="memproto">
787 <table class="mlabels">
788   <tr>
789   <td class="mlabels-left">
790       <table class="memname">
791         <tr>
792           <td class="memname">void * operator() </td>
793           <td>(</td>
794           <td class="paramtype">const <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp;&#160;</td>
795           <td class="paramname"><em>coord</em></td><td>)</td>
796           <td></td>
797         </tr>
798       </table>
799   </td>
800   <td class="mlabels-right">
801 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
802   </tr>
803 </table>
804 </div><div class="memdoc">
805
806 <p>Access to the specified element. </p>
807 <dl class="params"><dt>Parameters</dt><dd>
808   <table class="params">
809     <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>
810   </table>
811   </dd>
812 </dl>
813 <dl class="section return"><dt>Returns</dt><dd>A pointer to the desired element. </dd></dl>
814
815 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a9fd1359f2b5ea45a31bd79b381281eb4">IAccessor</a>.</p>
816
817 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00361">361</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
818
819 <p>References <a class="el" href="tests_2_utils_8h_source.xhtml#l00432">arm_compute::test::coord2index()</a>.</p>
820 <div class="fragment"><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;{</div><div class="line"><a name="l00363"></a><span class="lineno">  363</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="l00364"></a><span class="lineno">  364</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#l00432">Utils.h:432</a></div></div>
821 </div><!-- fragment -->
822 </div>
823 </div>
824 <a class="anchor" id="ad4622eda610d53fb6852209f0213aeed"></a>
825 <div class="memitem">
826 <div class="memproto">
827       <table class="memname">
828         <tr>
829           <td class="memname"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt; &amp; operator= </td>
830           <td>(</td>
831           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; T &gt;&#160;</td>
832           <td class="paramname"><em>tensor</em></td><td>)</td>
833           <td></td>
834         </tr>
835       </table>
836 </div><div class="memdoc">
837
838 <p>Create a deep copy of the given <code>tensor</code>. </p>
839 <dl class="params"><dt>Parameters</dt><dd>
840   <table class="params">
841     <tr><td class="paramdir">[in]</td><td class="paramname">tensor</td><td>To be copied tensor. </td></tr>
842   </table>
843   </dd>
844 </dl>
845
846 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00225">225</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
847
848 <p>References <a class="el" href="_simple_tensor_8h_source.xhtml#l00367">SimpleTensor&lt; T &gt;::swap</a>.</p>
849 <div class="fragment"><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;{</div><div class="line"><a name="l00227"></a><span class="lineno">  227</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="l00228"></a><span class="lineno">  228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;    <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</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#l00367">SimpleTensor.h:367</a></div></div>
850 </div><!-- fragment -->
851 </div>
852 </div>
853 <a class="anchor" id="af6124c81d1e81f182d64ae76caa3fa52"></a>
854 <div class="memitem">
855 <div class="memproto">
856       <table class="memname">
857         <tr>
858           <td class="memname">T &amp; operator[] </td>
859           <td>(</td>
860           <td class="paramtype">size_t&#160;</td>
861           <td class="paramname"><em>offset</em></td><td>)</td>
862           <td></td>
863         </tr>
864       </table>
865 </div><div class="memdoc">
866
867 <p>Return value at <code>offset</code> in the buffer. </p>
868 <dl class="params"><dt>Parameters</dt><dd>
869   <table class="params">
870     <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset within the buffer. </td></tr>
871   </table>
872   </dd>
873 </dl>
874
875 <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>
876
877 <p>References <a class="el" href="helpers_8h_source.xhtml#l00301">offset()</a>.</p>
878 <div class="fragment"><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;{</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;    <span class="keywordflow">return</span> _buffer[<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>];</div><div class="line"><a name="l00236"></a><span class="lineno">  236</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#l00301">helpers.h:301</a></div></div>
879 </div><!-- fragment -->
880 </div>
881 </div>
882 <a class="anchor" id="a73aecdf45b3f257e0c15757a18573ea4"></a>
883 <div class="memitem">
884 <div class="memproto">
885       <table class="memname">
886         <tr>
887           <td class="memname">const T &amp; operator[] </td>
888           <td>(</td>
889           <td class="paramtype">size_t&#160;</td>
890           <td class="paramname"><em>offset</em></td><td>)</td>
891           <td> const</td>
892         </tr>
893       </table>
894 </div><div class="memdoc">
895
896 <p>Return constant value at <code>offset</code> in the buffer. </p>
897 <dl class="params"><dt>Parameters</dt><dd>
898   <table class="params">
899     <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>Offset within the buffer. </td></tr>
900   </table>
901   </dd>
902 </dl>
903
904 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00239">239</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
905
906 <p>References <a class="el" href="helpers_8h_source.xhtml#l00301">offset()</a>.</p>
907 <div class="fragment"><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;    <span class="keywordflow">return</span> _buffer[<a class="code" href="helpers_8h.xhtml#a009469e4d9b8fce3b6d5e97d2077827d">offset</a>];</div><div class="line"><a name="l00242"></a><span class="lineno">  242</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#l00301">helpers.h:301</a></div></div>
908 </div><!-- fragment -->
909 </div>
910 </div>
911 <a class="anchor" id="a79e20eacb1e963e24a21ebd7369effd7"></a>
912 <div class="memitem">
913 <div class="memproto">
914 <table class="mlabels">
915   <tr>
916   <td class="mlabels-left">
917       <table class="memname">
918         <tr>
919           <td class="memname"><a class="el" href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">PaddingSize</a> padding </td>
920           <td>(</td>
921           <td class="paramname"></td><td>)</td>
922           <td> const</td>
923         </tr>
924       </table>
925   </td>
926   <td class="mlabels-right">
927 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
928   </tr>
929 </table>
930 </div><div class="memdoc">
931
932 <p>Available padding around the tensor. </p>
933
934 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a07b929c34ad1dc823d8315876aa403ce">IAccessor</a>.</p>
935
936 <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>
937 <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">return</span> <a class="code" href="namespacearm__compute.xhtml#a4467b302fc9ec312c40580336ab783da">PaddingSize</a>(0);</div><div class="line"><a name="l00340"></a><span class="lineno">  340</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="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_types_8h_source.xhtml#l00299">Types.h:299</a></div></div>
938 </div><!-- fragment -->
939 </div>
940 </div>
941 <a class="anchor" id="ac74736e3863207232a23b7181c1d0f44"></a>
942 <div class="memitem">
943 <div class="memproto">
944 <table class="mlabels">
945   <tr>
946   <td class="mlabels-left">
947       <table class="memname">
948         <tr>
949           <td class="memname"><a class="el" href="structarm__compute_1_1_quantization_info.xhtml">QuantizationInfo</a> quantization_info </td>
950           <td>(</td>
951           <td class="paramname"></td><td>)</td>
952           <td> const</td>
953         </tr>
954       </table>
955   </td>
956   <td class="mlabels-right">
957 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
958   </tr>
959 </table>
960 </div><div class="memdoc">
961
962 <p>Quantization info in case of asymmetric quantized type. </p>
963
964 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a3f3e1a3200223e6a304a533b1016e749">IAccessor</a>.</p>
965
966 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00263">263</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
967
968 <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="_helpers_8cpp_source.xhtml#l00116">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="validation_2reference_2_convolution_layer_8cpp_source.xhtml#l00227">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="validation_2reference_2_depthwise_convolution_layer_8cpp_source.xhtml#l00116">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>, and <a class="el" href="validation_2reference_2_pooling_layer_8cpp_source.xhtml#l00294">arm_compute::test::validation::reference::pooling_layer&lt; uint8_t &gt;()</a>.</p>
969 <div class="fragment"><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;{</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;    <span class="keywordflow">return</span> _quantization_info;</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;}</div></div><!-- fragment -->
970 </div>
971 </div>
972 <a class="anchor" id="aba5871b3e4a65d057ec1c28fce8b00ba"></a>
973 <div class="memitem">
974 <div class="memproto">
975 <table class="mlabels">
976   <tr>
977   <td class="mlabels-left">
978       <table class="memname">
979         <tr>
980           <td class="memname"><a class="el" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> shape </td>
981           <td>(</td>
982           <td class="paramname"></td><td>)</td>
983           <td> const</td>
984         </tr>
985       </table>
986   </td>
987   <td class="mlabels-right">
988 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
989   </tr>
990 </table>
991 </div><div class="memdoc">
992
993 <p>Shape of the tensor. </p>
994
995 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#a1c5e120ea2712b21296aa8f62421d3c1">IAccessor</a>.</p>
996
997 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00245">245</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
998
999 <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#l00096">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="_helpers_8cpp_source.xhtml#l00116">arm_compute::test::validation::convert_from_asymmetric()</a>, <a class="el" href="_helpers_8cpp_source.xhtml#l00127">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#l00227">arm_compute::test::validation::reference::convolution_layer()</a>, <a class="el" href="_g_l_e_s___c_o_m_p_u_t_e_2_helper_8h_source.xhtml#l00064">arm_compute::test::gles_compute::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="reference_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#l00236">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_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#l00432">AssetsLibrary::get()</a>, <a class="el" href="_assets_library_8cpp_source.xhtml#l00417">AssetsLibrary::get_image_shape()</a>, <a class="el" href="reference_2_h_o_g_descriptor_8cpp_source.xhtml#l00174">arm_compute::test::validation::reference::hog_block_normalization()</a>, <a class="el" href="reference_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_descriptor_8cpp_source.xhtml#l00117">arm_compute::test::validation::reference::hog_orientation_binning()</a>, <a class="el" href="reference_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="validation_2reference_2_magnitude_8cpp_source.xhtml#l00035">arm_compute::test::validation::reference::magnitude()</a>, <a class="el" href="reference_2_median3x3_8cpp_source.xhtml#l00044">arm_compute::test::validation::reference::median3x3()</a>, <a class="el" href="reference_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="reference_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#l00058">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#l00039">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="benchmark_2fixtures_2_harris_corners_fixture_8h_source.xhtml#l00044">HarrisCornersFixture&lt; TensorType, Function, Accessor, ArrayType &gt;::setup()</a>, <a class="el" href="validation_2fixtures_2_harris_corners_fixture_8h_source.xhtml#l00050">HarrisCornersValidationFixture&lt; TensorType, AccessorType, ArrayType, FunctionType, T &gt;::setup()</a>, <a class="el" href="_fast_corners_fixture_8h_source.xhtml#l00052">FastCornersValidationFixture&lt; TensorType, AccessorType, ArrayType, FunctionType, T &gt;::setup()</a>, <a class="el" href="validation_2fixtures_2_fully_connected_layer_fixture_8h_source.xhtml#l00056">FullyConnectedLayerValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T, run_interleave &gt;::setup()</a>, <a class="el" href="validation_2fixtures_2_convolution_layer_fixture_8h_source.xhtml#l00057">ConvolutionValidationGenericFixture&lt; TensorType, AccessorType, FunctionType, T &gt;::setup()</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="_validation_8h_source.xhtml#l00334">arm_compute::test::validation::validate()</a>, <a class="el" href="_validation_8h_source.xhtml#l00398">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>, and <a class="el" href="reference_2_warp_perspective_8cpp_source.xhtml#l00038">arm_compute::test::validation::reference::warp_perspective()</a>.</p>
1000 <div class="fragment"><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;{</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <span class="keywordflow">return</span> _shape;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;}</div></div><!-- fragment -->
1001 </div>
1002 </div>
1003 <a class="anchor" id="ad7701a09a964eab360a8e51fa7ad2c16"></a>
1004 <div class="memitem">
1005 <div class="memproto">
1006 <table class="mlabels">
1007   <tr>
1008   <td class="mlabels-left">
1009       <table class="memname">
1010         <tr>
1011           <td class="memname">size_t size </td>
1012           <td>(</td>
1013           <td class="paramname"></td><td>)</td>
1014           <td> const</td>
1015         </tr>
1016       </table>
1017   </td>
1018   <td class="mlabels-right">
1019 <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
1020   </tr>
1021 </table>
1022 </div><div class="memdoc">
1023
1024 <p>Total size of the tensor in bytes. </p>
1025
1026 <p>Implements <a class="el" href="classarm__compute_1_1test_1_1_i_accessor.xhtml#aa983ddaeded5756189f46428be79c631">IAccessor</a>.</p>
1027
1028 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00269">269</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1029
1030 <p>References <a class="el" href="accumulate_8cl_source.xhtml#l00041">accumulate()</a>, <a class="el" href="_dimensions_8h_source.xhtml#l00180">Dimensions&lt; T &gt;::cbegin()</a>, <a class="el" href="_dimensions_8h_source.xhtml#l00195">Dimensions&lt; T &gt;::cend()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00251">SimpleTensor&lt; T &gt;::element_size()</a>.</p>
1031
1032 <p>Referenced by <a class="el" href="_assets_library_8cpp_source.xhtml#l00225">AssetsLibrary::fill()</a>.</p>
1033 <div class="fragment"><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;{</div><div class="line"><a name="l00271"></a><span class="lineno">  271</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="l00272"></a><span class="lineno">  272</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="l00273"></a><span class="lineno">  273</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#l00180">Dimensions.h:180</a></div></div>
1034 <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#l00251">SimpleTensor.h:251</a></div></div>
1035 <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#l00269">SimpleTensor.h:269</a></div></div>
1036 <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#l00195">Dimensions.h:195</a></div></div>
1037 <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>
1038 </div><!-- fragment -->
1039 </div>
1040 </div>
1041 <h2 class="groupheader">Friends And Related Function Documentation</h2>
1042 <a class="anchor" id="a467ad6d14558452f498777a7823fa252"></a>
1043 <div class="memitem">
1044 <div class="memproto">
1045 <table class="mlabels">
1046   <tr>
1047   <td class="mlabels-left">
1048       <table class="memname">
1049         <tr>
1050           <td class="memname">friend class <a class="el" href="classarm__compute_1_1test_1_1_raw_tensor.xhtml">RawTensor</a></td>
1051         </tr>
1052       </table>
1053   </td>
1054   <td class="mlabels-right">
1055 <span class="mlabels"><span class="mlabel">friend</span></span>  </td>
1056   </tr>
1057 </table>
1058 </div><div class="memdoc">
1059
1060 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00102">102</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1061
1062 </div>
1063 </div>
1064 <a class="anchor" id="a51920d34b0fa5415e84891ad8e755224"></a>
1065 <div class="memitem">
1066 <div class="memproto">
1067 <table class="mlabels">
1068   <tr>
1069   <td class="mlabels-left">
1070       <table class="memname">
1071         <tr>
1072           <td class="memname">void swap </td>
1073           <td>(</td>
1074           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;&#160;</td>
1075           <td class="paramname"><em>tensor1</em>, </td>
1076         </tr>
1077         <tr>
1078           <td class="paramkey"></td>
1079           <td></td>
1080           <td class="paramtype"><a class="el" href="classarm__compute_1_1test_1_1_simple_tensor.xhtml">SimpleTensor</a>&lt; U &gt; &amp;&#160;</td>
1081           <td class="paramname"><em>tensor2</em>&#160;</td>
1082         </tr>
1083         <tr>
1084           <td></td>
1085           <td>)</td>
1086           <td></td><td></td>
1087         </tr>
1088       </table>
1089   </td>
1090   <td class="mlabels-right">
1091 <span class="mlabels"><span class="mlabel">friend</span></span>  </td>
1092   </tr>
1093 </table>
1094 </div><div class="memdoc">
1095
1096 <p>Swaps the content of the provided tensors. </p>
1097 <dl class="params"><dt>Parameters</dt><dd>
1098   <table class="params">
1099     <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>
1100     <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>
1101   </table>
1102   </dd>
1103 </dl>
1104
1105 <p>Definition at line <a class="el" href="_simple_tensor_8h_source.xhtml#l00367">367</a> of file <a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a>.</p>
1106
1107 <p>Referenced by <a class="el" href="_simple_tensor_8h_source.xhtml#l00225">SimpleTensor&lt; T &gt;::operator=()</a>, and <a class="el" href="_simple_tensor_8h_source.xhtml#l00367">arm_compute::test::swap()</a>.</p>
1108 <div class="fragment"><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;{</div><div class="line"><a name="l00369"></a><span class="lineno">  369</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="l00370"></a><span class="lineno">  370</span>&#160;    <span class="comment">// as backup.</span></div><div class="line"><a name="l00371"></a><span class="lineno">  371</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="l00372"></a><span class="lineno">  372</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="l00373"></a><span class="lineno">  373</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="l00374"></a><span class="lineno">  374</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="l00375"></a><span class="lineno">  375</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="l00376"></a><span class="lineno">  376</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="l00377"></a><span class="lineno">  377</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#l00367">SimpleTensor.h:367</a></div></div>
1109 <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#l00367">SimpleTensor.h:367</a></div></div>
1110 </div><!-- fragment -->
1111 </div>
1112 </div>
1113 <hr/>The documentation for this class was generated from the following file:<ul>
1114 <li>tests/<a class="el" href="_simple_tensor_8h_source.xhtml">SimpleTensor.h</a></li>
1115 </ul>
1116 </div><!-- contents -->
1117 </div><!-- doc-content -->
1118 <!-- start footer part -->
1119 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
1120   <ul>
1121     <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>
1122     <li class="footer">Generated on Thu Feb 22 2018 15:45:26 for Compute Library by
1123     <a href="http://www.doxygen.org/index.html">
1124     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
1125   </ul>
1126 </div>
1127 </body>
1128 </html>