Update ACL pin to 8abbabd6ad946441c8ef1a03896fa98f7801af1f
[platform/upstream/armnn.git] / Documentation / _test_utils_8hpp.xhtml
1 <!-- Copyright (c) 2020 ARM Limited. -->
2 <!--                                 -->
3 <!-- SPDX-License-Identifier: MIT    -->
4 <!--                                 -->
5 <!-- HTML header for doxygen 1.8.13-->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7 <html xmlns="http://www.w3.org/1999/xhtml">
8 <head>
9 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
10 <meta http-equiv="X-UA-Compatible" content="IE=9"/>
11 <meta name="generator" content="Doxygen 1.8.13"/>
12 <meta name="robots" content="NOINDEX, NOFOLLOW" />
13 <meta name="viewport" content="width=device-width, initial-scale=1"/>
14 <title>ArmNN: src/armnn/test/TestUtils.hpp File Reference</title>
15 <link href="tabs.css" rel="stylesheet" type="text/css"/>
16 <script type="text/javascript" src="jquery.js"></script>
17 <script type="text/javascript" src="dynsections.js"></script>
18 <link href="navtree.css" rel="stylesheet" type="text/css"/>
19 <script type="text/javascript" src="resize.js"></script>
20 <script type="text/javascript" src="navtreedata.js"></script>
21 <script type="text/javascript" src="navtree.js"></script>
22 <script type="text/javascript">
23   $(document).ready(initResizable);
24 </script>
25 <link href="search/search.css" rel="stylesheet" type="text/css"/>
26 <script type="text/javascript" src="search/searchdata.js"></script>
27 <script type="text/javascript" src="search/search.js"></script>
28 <script type="text/x-mathjax-config">
29   MathJax.Hub.Config({
30     extensions: ["tex2jax.js"],
31     jax: ["input/TeX","output/HTML-CSS"],
32 });
33 </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
34 <link href="doxygen.css" rel="stylesheet" type="text/css" />
35 <link href="stylesheet.css" rel="stylesheet" type="text/css"/>
36 </head>
37 <body>
38 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
39 <div id="titlearea">
40 <table cellspacing="0" cellpadding="0">
41  <tbody>
42  <tr style="height: 56px;">
43   <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
44   <td style="padding-left: 0.5em;">
45    <div id="projectname">
46    &#160;<span id="projectnumber">20.02</span>
47    </div>
48   </td>
49  </tr>
50  </tbody>
51 </table>
52 </div>
53 <!-- end header part -->
54 <!-- Generated by Doxygen 1.8.13 -->
55 <script type="text/javascript">
56 var searchBox = new SearchBox("searchBox", "search",false,'Search');
57 </script>
58 <script type="text/javascript" src="menudata.js"></script>
59 <script type="text/javascript" src="menu.js"></script>
60 <script type="text/javascript">
61 $(function() {
62   initMenu('',true,false,'search.php','Search');
63   $(document).ready(function() { init_search(); });
64 });
65 </script>
66 <div id="main-nav"></div>
67 </div><!-- top -->
68 <div id="side-nav" class="ui-resizable side-nav-resizable">
69   <div id="nav-tree">
70     <div id="nav-tree-contents">
71       <div id="nav-sync" class="sync"></div>
72     </div>
73   </div>
74   <div id="splitbar" style="-moz-user-select:none;" 
75        class="ui-resizable-handle">
76   </div>
77 </div>
78 <script type="text/javascript">
79 $(document).ready(function(){initNavTree('_test_utils_8hpp.xhtml','');});
80 </script>
81 <div id="doc-content">
82 <!-- window showing the filter options -->
83 <div id="MSearchSelectWindow"
84      onmouseover="return searchBox.OnSearchSelectShow()"
85      onmouseout="return searchBox.OnSearchSelectHide()"
86      onkeydown="return searchBox.OnSearchSelectKey(event)">
87 </div>
88
89 <!-- iframe showing the search results (closed by default) -->
90 <div id="MSearchResultsWindow">
91 <iframe src="javascript:void(0)" frameborder="0" 
92         name="MSearchResults" id="MSearchResults">
93 </iframe>
94 </div>
95
96 <div class="header">
97   <div class="summary">
98 <a href="#func-members">Functions</a>  </div>
99   <div class="headertitle">
100 <div class="title">TestUtils.hpp File Reference</div>  </div>
101 </div><!--header-->
102 <div class="contents">
103 <div class="textblock"><code>#include &lt;<a class="el" href="_i_network_8hpp_source.xhtml">armnn/INetwork.hpp</a>&gt;</code><br />
104 <code>#include &lt;<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>&gt;</code><br />
105 </div>
106 <p><a href="_test_utils_8hpp_source.xhtml">Go to the source code of this file.</a></p>
107 <table class="memberdecls">
108 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
109 Functions</h2></td></tr>
110 <tr class="memitem:a6229539fdf0a5a0f667620174a69fe5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test_utils_8hpp.xhtml#a6229539fdf0a5a0f667620174a69fe5a">Connect</a> (<a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> *from, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> *to, const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &amp;tensorInfo, unsigned int fromIndex=0, unsigned int toIndex=0)</td></tr>
111 <tr class="separator:a6229539fdf0a5a0f667620174a69fe5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
112 <tr class="memitem:a6bf728538a7ed13609ba6fc4009199e2"><td class="memTemplParams" colspan="2">template&lt;typename LayerT &gt; </td></tr>
113 <tr class="memitem:a6bf728538a7ed13609ba6fc4009199e2"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_test_utils_8hpp.xhtml#a6bf728538a7ed13609ba6fc4009199e2">IsLayerOfType</a> (const <a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *const layer)</td></tr>
114 <tr class="separator:a6bf728538a7ed13609ba6fc4009199e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
115 <tr class="memitem:a0eedb278f57355b47fa983450d4e378c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_test_utils_8hpp.xhtml#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a> (const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> first, const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> last)</td></tr>
116 <tr class="separator:a0eedb278f57355b47fa983450d4e378c"><td class="memSeparator" colspan="2">&#160;</td></tr>
117 <tr class="memitem:a62cf2b54eb8eb3c20a84084066845220"><td class="memTemplParams" colspan="2">template&lt;typename U , typename... Us&gt; </td></tr>
118 <tr class="memitem:a62cf2b54eb8eb3c20a84084066845220"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_test_utils_8hpp.xhtml#a62cf2b54eb8eb3c20a84084066845220">CheckSequence</a> (const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> first, const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> last, U &amp;&amp;u, Us &amp;&amp;... us)</td></tr>
119 <tr class="memdesc:a62cf2b54eb8eb3c20a84084066845220"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks each unary function in Us evaluates true for each correspondent layer in the sequence [first, last).  <a href="#a62cf2b54eb8eb3c20a84084066845220">More...</a><br /></td></tr>
120 <tr class="separator:a62cf2b54eb8eb3c20a84084066845220"><td class="memSeparator" colspan="2">&#160;</td></tr>
121 <tr class="memitem:a5feebf8a18dcfe73ccc0c97c82fcb032"><td class="memTemplParams" colspan="2">template&lt;typename LayerT &gt; </td></tr>
122 <tr class="memitem:a5feebf8a18dcfe73ccc0c97c82fcb032"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_test_utils_8hpp.xhtml#a5feebf8a18dcfe73ccc0c97c82fcb032">CheckRelatedLayers</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;graph, const std::list&lt; std::string &gt; &amp;testRelatedLayers)</td></tr>
123 <tr class="separator:a5feebf8a18dcfe73ccc0c97c82fcb032"><td class="memSeparator" colspan="2">&#160;</td></tr>
124 </table>
125 <h2 class="groupheader">Function Documentation</h2>
126 <a id="a5feebf8a18dcfe73ccc0c97c82fcb032"></a>
127 <h2 class="memtitle"><span class="permalink"><a href="#a5feebf8a18dcfe73ccc0c97c82fcb032">&#9670;&nbsp;</a></span>CheckRelatedLayers()</h2>
128
129 <div class="memitem">
130 <div class="memproto">
131       <table class="memname">
132         <tr>
133           <td class="memname">bool CheckRelatedLayers </td>
134           <td>(</td>
135           <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &amp;&#160;</td>
136           <td class="paramname"><em>graph</em>, </td>
137         </tr>
138         <tr>
139           <td class="paramkey"></td>
140           <td></td>
141           <td class="paramtype">const std::list&lt; std::string &gt; &amp;&#160;</td>
142           <td class="paramname"><em>testRelatedLayers</em>&#160;</td>
143         </tr>
144         <tr>
145           <td></td>
146           <td>)</td>
147           <td></td><td></td>
148         </tr>
149       </table>
150 </div><div class="memdoc">
151
152 <p class="definition">Definition at line <a class="el" href="_test_utils_8hpp_source.xhtml#l00033">33</a> of file <a class="el" href="_test_utils_8hpp_source.xhtml">TestUtils.hpp</a>.</p>
153 <div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; layer : graph)</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    {</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">if</span> (layer-&gt;GetType() == armnn::LayerEnumOf&lt;LayerT&gt;())</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        {</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <span class="keyword">auto</span>&amp; relatedLayers = layer-&gt;GetRelatedLayerNames();</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            <span class="keywordflow">if</span> (!std::equal(relatedLayers.begin(), relatedLayers.end(), testRelatedLayers.begin(),</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;                            testRelatedLayers.end()))</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;            {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;                <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;            }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        }</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    }</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordflow">return</span> <span class="keyword">true</span>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;}</div></div><!-- fragment -->
154 </div>
155 </div>
156 <a id="a0eedb278f57355b47fa983450d4e378c"></a>
157 <h2 class="memtitle"><span class="permalink"><a href="#a0eedb278f57355b47fa983450d4e378c">&#9670;&nbsp;</a></span>CheckSequence() <span class="overload">[1/2]</span></h2>
158
159 <div class="memitem">
160 <div class="memproto">
161 <table class="mlabels">
162   <tr>
163   <td class="mlabels-left">
164       <table class="memname">
165         <tr>
166           <td class="memname">bool CheckSequence </td>
167           <td>(</td>
168           <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a>&#160;</td>
169           <td class="paramname"><em>first</em>, </td>
170         </tr>
171         <tr>
172           <td class="paramkey"></td>
173           <td></td>
174           <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a>&#160;</td>
175           <td class="paramname"><em>last</em>&#160;</td>
176         </tr>
177         <tr>
178           <td></td>
179           <td>)</td>
180           <td></td><td></td>
181         </tr>
182       </table>
183   </td>
184   <td class="mlabels-right">
185 <span class="mlabels"><span class="mlabel">inline</span></span>  </td>
186   </tr>
187 </table>
188 </div><div class="memdoc">
189
190 <p class="definition">Definition at line <a class="el" href="_test_utils_8hpp_source.xhtml#l00020">20</a> of file <a class="el" href="_test_utils_8hpp_source.xhtml">TestUtils.hpp</a>.</p>
191
192 <p class="reference">Referenced by <a class="el" href="_fp32_network_to_fp16_converter_tests_8cpp_source.xhtml#l00015">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_test_utils_8hpp_source.xhtml#l00027">CheckSequence()</a>.</p>
193 <div class="fragment"><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;{</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;    <span class="keywordflow">return</span> (first == last);</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;}</div></div><!-- fragment -->
194 </div>
195 </div>
196 <a id="a62cf2b54eb8eb3c20a84084066845220"></a>
197 <h2 class="memtitle"><span class="permalink"><a href="#a62cf2b54eb8eb3c20a84084066845220">&#9670;&nbsp;</a></span>CheckSequence() <span class="overload">[2/2]</span></h2>
198
199 <div class="memitem">
200 <div class="memproto">
201       <table class="memname">
202         <tr>
203           <td class="memname">bool CheckSequence </td>
204           <td>(</td>
205           <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a>&#160;</td>
206           <td class="paramname"><em>first</em>, </td>
207         </tr>
208         <tr>
209           <td class="paramkey"></td>
210           <td></td>
211           <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a>&#160;</td>
212           <td class="paramname"><em>last</em>, </td>
213         </tr>
214         <tr>
215           <td class="paramkey"></td>
216           <td></td>
217           <td class="paramtype">U &amp;&amp;&#160;</td>
218           <td class="paramname"><em>u</em>, </td>
219         </tr>
220         <tr>
221           <td class="paramkey"></td>
222           <td></td>
223           <td class="paramtype">Us &amp;&amp;...&#160;</td>
224           <td class="paramname"><em>us</em>&#160;</td>
225         </tr>
226         <tr>
227           <td></td>
228           <td>)</td>
229           <td></td><td></td>
230         </tr>
231       </table>
232 </div><div class="memdoc">
233
234 <p>Checks each unary function in Us evaluates true for each correspondent layer in the sequence [first, last). </p>
235
236 <p class="definition">Definition at line <a class="el" href="_test_utils_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="_test_utils_8hpp_source.xhtml">TestUtils.hpp</a>.</p>
237
238 <p class="reference">References <a class="el" href="_test_utils_8hpp_source.xhtml#l00020">CheckSequence()</a>.</p>
239 <div class="fragment"><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keywordflow">return</span> u(*first) &amp;&amp; <a class="code" href="_test_utils_8hpp.xhtml#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a>(std::next(first), last, us...);</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div><div class="ttc" id="_test_utils_8hpp_xhtml_a0eedb278f57355b47fa983450d4e378c"><div class="ttname"><a href="_test_utils_8hpp.xhtml#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a></div><div class="ttdeci">bool CheckSequence(const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last)</div><div class="ttdef"><b>Definition:</b> <a href="_test_utils_8hpp_source.xhtml#l00020">TestUtils.hpp:20</a></div></div>
240 </div><!-- fragment -->
241 </div>
242 </div>
243 <a id="a6229539fdf0a5a0f667620174a69fe5a"></a>
244 <h2 class="memtitle"><span class="permalink"><a href="#a6229539fdf0a5a0f667620174a69fe5a">&#9670;&nbsp;</a></span>Connect()</h2>
245
246 <div class="memitem">
247 <div class="memproto">
248       <table class="memname">
249         <tr>
250           <td class="memname">void Connect </td>
251           <td>(</td>
252           <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> *&#160;</td>
253           <td class="paramname"><em>from</em>, </td>
254         </tr>
255         <tr>
256           <td class="paramkey"></td>
257           <td></td>
258           <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> *&#160;</td>
259           <td class="paramname"><em>to</em>, </td>
260         </tr>
261         <tr>
262           <td class="paramkey"></td>
263           <td></td>
264           <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &amp;&#160;</td>
265           <td class="paramname"><em>tensorInfo</em>, </td>
266         </tr>
267         <tr>
268           <td class="paramkey"></td>
269           <td></td>
270           <td class="paramtype">unsigned int&#160;</td>
271           <td class="paramname"><em>fromIndex</em> = <code>0</code>, </td>
272         </tr>
273         <tr>
274           <td class="paramkey"></td>
275           <td></td>
276           <td class="paramtype">unsigned int&#160;</td>
277           <td class="paramname"><em>toIndex</em> = <code>0</code>&#160;</td>
278         </tr>
279         <tr>
280           <td></td>
281           <td>)</td>
282           <td></td><td></td>
283         </tr>
284       </table>
285 </div><div class="memdoc">
286
287 <p class="definition">Definition at line <a class="el" href="_test_utils_8cpp_source.xhtml#l00012">12</a> of file <a class="el" href="_test_utils_8cpp_source.xhtml">TestUtils.cpp</a>.</p>
288
289 <p class="reference">References <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">IOutputSlot::Connect()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, and <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>.</p>
290
291 <p class="reference">Referenced by <a class="el" href="_layer_release_constant_data_test_8cpp_source.xhtml#l00029">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00146">OutputSlot::Connect()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00239">CreatePreluLayerHelper()</a>, <a class="el" href="_infer_output_tests_8hpp_source.xhtml#l00353">CreateStackLayerHelper()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00120">OutputSlot::GetOutputHandler()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01338">CaffeParserBase::ParseBatchNormLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01230">CaffeParserBase::ParseEltwiseLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01134">CaffeParserBase::ParseInnerProductLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01027">CaffeParserBase::ParseLRNLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l00883">CaffeParserBase::ParsePoolingLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01001">CaffeParserBase::ParseReluLayer()</a>, <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01404">CaffeParserBase::ParseScaleLayer()</a>, and <a class="el" href="_caffe_parser_8cpp_source.xhtml#l01208">CaffeParserBase::ParseSoftmaxLayer()</a>.</p>
292 <div class="fragment"><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;{</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    BOOST_ASSERT(from);</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;    BOOST_ASSERT(to);</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    from-&gt;<a class="code" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">GetOutputSlot</a>(fromIndex).<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">Connect</a>(to-&gt;<a class="code" href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">GetInputSlot</a>(toIndex));</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    from-&gt;<a class="code" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">GetOutputSlot</a>(fromIndex).<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">SetTensorInfo</a>(tensorInfo);</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml_a5ee4a6c9a2481245487b1b1a70d20fd0"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">armnn::IOutputSlot::SetTensorInfo</a></div><div class="ttdeci">virtual void SetTensorInfo(const TensorInfo &amp;tensorInfo)=0</div></div>
293 <div class="ttc" id="classarmnn_1_1_i_connectable_layer_xhtml_a6ec9e0eb66d7d6a01240492a0b18104c"><div class="ttname"><a href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">armnn::IConnectableLayer::GetInputSlot</a></div><div class="ttdeci">virtual const IInputSlot &amp; GetInputSlot(unsigned int index) const =0</div><div class="ttdoc">Get a const input slot handle by slot index. </div></div>
294 <div class="ttc" id="classarmnn_1_1_i_connectable_layer_xhtml_a80ac4eda2e7f2757ec9dd96fc96dbd16"><div class="ttname"><a href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">armnn::IConnectableLayer::GetOutputSlot</a></div><div class="ttdeci">virtual const IOutputSlot &amp; GetOutputSlot(unsigned int index) const =0</div><div class="ttdoc">Get the const output slot handle by slot index. </div></div>
295 <div class="ttc" id="classarmnn_1_1_i_output_slot_xhtml_ac1835f8756a9f03c02fcf9664e3a0fce"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">armnn::IOutputSlot::Connect</a></div><div class="ttdeci">virtual int Connect(IInputSlot &amp;destination)=0</div></div>
296 </div><!-- fragment -->
297 </div>
298 </div>
299 <a id="a6bf728538a7ed13609ba6fc4009199e2"></a>
300 <h2 class="memtitle"><span class="permalink"><a href="#a6bf728538a7ed13609ba6fc4009199e2">&#9670;&nbsp;</a></span>IsLayerOfType()</h2>
301
302 <div class="memitem">
303 <div class="memproto">
304       <table class="memname">
305         <tr>
306           <td class="memname">bool IsLayerOfType </td>
307           <td>(</td>
308           <td class="paramtype">const <a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *const&#160;</td>
309           <td class="paramname"><em>layer</em></td><td>)</td>
310           <td></td>
311         </tr>
312       </table>
313 </div><div class="memdoc">
314
315 <p class="definition">Definition at line <a class="el" href="_test_utils_8hpp_source.xhtml#l00015">15</a> of file <a class="el" href="_test_utils_8hpp_source.xhtml">TestUtils.hpp</a>.</p>
316
317 <p class="reference">References <a class="el" href="_layer_8hpp_source.xhtml#l00259">Layer::GetType()</a>.</p>
318 <div class="fragment"><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;{</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keywordflow">return</span> (layer-&gt;<a class="code" href="classarmnn_1_1_layer.xhtml#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == armnn::LayerEnumOf&lt;LayerT&gt;());</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;}</div><div class="ttc" id="classarmnn_1_1_layer_xhtml_aaef29472862381822654ab6cbf7cba2a"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#aaef29472862381822654ab6cbf7cba2a">armnn::Layer::GetType</a></div><div class="ttdeci">LayerType GetType() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00259">Layer.hpp:259</a></div></div>
319 </div><!-- fragment -->
320 </div>
321 </div>
322 </div><!-- contents -->
323 </div><!-- doc-content -->
324 <!-- start footer part -->
325 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
326   <ul>
327     <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.xhtml">test</a></li><li class="navelem"><a class="el" href="_test_utils_8hpp.xhtml">TestUtils.hpp</a></li>
328     <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by
329     <a href="http://www.doxygen.org/index.html">
330     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
331   </ul>
332 </div>
333 </body>
334 </html>