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