1 <!-- Copyright (c) 2020 ARM Limited. -->
3 <!-- SPDX-License-Identifier: MIT -->
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">
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);
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">
30 extensions: ["tex2jax.js"],
31 jax: ["input/TeX","output/HTML-CSS"],
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"/>
38 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
40 <table cellspacing="0" cellpadding="0">
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  <span id="projectnumber">20.02</span>
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');
58 <script type="text/javascript" src="menudata.js"></script>
59 <script type="text/javascript" src="menu.js"></script>
60 <script type="text/javascript">
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
66 <div id="main-nav"></div>
68 <div id="side-nav" class="ui-resizable side-nav-resizable">
70 <div id="nav-tree-contents">
71 <div id="nav-sync" class="sync"></div>
74 <div id="splitbar" style="-moz-user-select:none;"
75 class="ui-resizable-handle">
78 <script type="text/javascript">
79 $(document).ready(function(){initNavTree('_test_utils_8hpp.xhtml','');});
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)">
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">
98 <a href="#func-members">Functions</a> </div>
99 <div class="headertitle">
100 <div class="title">TestUtils.hpp File Reference</div> </div>
102 <div class="contents">
103 <div class="textblock"><code>#include <<a class="el" href="_i_network_8hpp_source.xhtml">armnn/INetwork.hpp</a>></code><br />
104 <code>#include <<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>></code><br />
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 </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> &tensorInfo, unsigned int fromIndex=0, unsigned int toIndex=0)</td></tr>
111 <tr class="separator:a6229539fdf0a5a0f667620174a69fe5a"><td class="memSeparator" colspan="2"> </td></tr>
112 <tr class="memitem:a6bf728538a7ed13609ba6fc4009199e2"><td class="memTemplParams" colspan="2">template<typename LayerT > </td></tr>
113 <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.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"> </td></tr>
115 <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.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"> </td></tr>
117 <tr class="memitem:a62cf2b54eb8eb3c20a84084066845220"><td class="memTemplParams" colspan="2">template<typename U , typename... Us> </td></tr>
118 <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.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 &&u, Us &&... us)</td></tr>
119 <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>
120 <tr class="separator:a62cf2b54eb8eb3c20a84084066845220"><td class="memSeparator" colspan="2"> </td></tr>
121 <tr class="memitem:a5feebf8a18dcfe73ccc0c97c82fcb032"><td class="memTemplParams" colspan="2">template<typename LayerT > </td></tr>
122 <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.xhtml#a5feebf8a18dcfe73ccc0c97c82fcb032">CheckRelatedLayers</a> (<a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> &graph, const std::list< std::string > &testRelatedLayers)</td></tr>
123 <tr class="separator:a5feebf8a18dcfe73ccc0c97c82fcb032"><td class="memSeparator" colspan="2"> </td></tr>
125 <h2 class="groupheader">Function Documentation</h2>
126 <a id="a5feebf8a18dcfe73ccc0c97c82fcb032"></a>
127 <h2 class="memtitle"><span class="permalink"><a href="#a5feebf8a18dcfe73ccc0c97c82fcb032">◆ </a></span>CheckRelatedLayers()</h2>
129 <div class="memitem">
130 <div class="memproto">
131 <table class="memname">
133 <td class="memname">bool CheckRelatedLayers </td>
135 <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> & </td>
136 <td class="paramname"><em>graph</em>, </td>
139 <td class="paramkey"></td>
141 <td class="paramtype">const std::list< std::string > & </td>
142 <td class="paramname"><em>testRelatedLayers</em> </td>
150 </div><div class="memdoc">
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> {</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 -->
156 <a id="a0eedb278f57355b47fa983450d4e378c"></a>
157 <h2 class="memtitle"><span class="permalink"><a href="#a0eedb278f57355b47fa983450d4e378c">◆ </a></span>CheckSequence() <span class="overload">[1/2]</span></h2>
159 <div class="memitem">
160 <div class="memproto">
161 <table class="mlabels">
163 <td class="mlabels-left">
164 <table class="memname">
166 <td class="memname">bool CheckSequence </td>
168 <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> </td>
169 <td class="paramname"><em>first</em>, </td>
172 <td class="paramkey"></td>
174 <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> </td>
175 <td class="paramname"><em>last</em> </td>
184 <td class="mlabels-right">
185 <span class="mlabels"><span class="mlabel">inline</span></span> </td>
188 </div><div class="memdoc">
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>
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> {</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 -->
196 <a id="a62cf2b54eb8eb3c20a84084066845220"></a>
197 <h2 class="memtitle"><span class="permalink"><a href="#a62cf2b54eb8eb3c20a84084066845220">◆ </a></span>CheckSequence() <span class="overload">[2/2]</span></h2>
199 <div class="memitem">
200 <div class="memproto">
201 <table class="memname">
203 <td class="memname">bool CheckSequence </td>
205 <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> </td>
206 <td class="paramname"><em>first</em>, </td>
209 <td class="paramkey"></td>
211 <td class="paramtype">const <a class="el" href="classarmnn_1_1_graph.xhtml#af885be8b4485a7252f1f84237aaf67ac">armnn::Graph::ConstIterator</a> </td>
212 <td class="paramname"><em>last</em>, </td>
215 <td class="paramkey"></td>
217 <td class="paramtype">U && </td>
218 <td class="paramname"><em>u</em>, </td>
221 <td class="paramkey"></td>
223 <td class="paramtype">Us &&... </td>
224 <td class="paramname"><em>us</em> </td>
232 </div><div class="memdoc">
234 <p>Checks each unary function in Us evaluates true for each correspondent layer in the sequence [first, last). </p>
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>
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> {</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.xhtml#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_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 -->
243 <a id="a6229539fdf0a5a0f667620174a69fe5a"></a>
244 <h2 class="memtitle"><span class="permalink"><a href="#a6229539fdf0a5a0f667620174a69fe5a">◆ </a></span>Connect()</h2>
246 <div class="memitem">
247 <div class="memproto">
248 <table class="memname">
250 <td class="memname">void Connect </td>
252 <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> * </td>
253 <td class="paramname"><em>from</em>, </td>
256 <td class="paramkey"></td>
258 <td class="paramtype"><a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml">armnn::IConnectableLayer</a> * </td>
259 <td class="paramname"><em>to</em>, </td>
262 <td class="paramkey"></td>
264 <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> & </td>
265 <td class="paramname"><em>tensorInfo</em>, </td>
268 <td class="paramkey"></td>
270 <td class="paramtype">unsigned int </td>
271 <td class="paramname"><em>fromIndex</em> = <code>0</code>, </td>
274 <td class="paramkey"></td>
276 <td class="paramtype">unsigned int </td>
277 <td class="paramname"><em>toIndex</em> = <code>0</code> </td>
285 </div><div class="memdoc">
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>
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>
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> {</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.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">GetOutputSlot</a>(fromIndex).<a class="code" href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">Connect</a>(to-><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>  from-><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> }</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 &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 & 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 & 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 &destination)=0</div></div>
296 </div><!-- fragment -->
299 <a id="a6bf728538a7ed13609ba6fc4009199e2"></a>
300 <h2 class="memtitle"><span class="permalink"><a href="#a6bf728538a7ed13609ba6fc4009199e2">◆ </a></span>IsLayerOfType()</h2>
302 <div class="memitem">
303 <div class="memproto">
304 <table class="memname">
306 <td class="memname">bool IsLayerOfType </td>
308 <td class="paramtype">const <a class="el" href="classarmnn_1_1_layer.xhtml">armnn::Layer</a> *const </td>
309 <td class="paramname"><em>layer</em></td><td>)</td>
313 </div><div class="memdoc">
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>
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> {</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.xhtml#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_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 -->
322 </div><!-- contents -->
323 </div><!-- doc-content -->
324 <!-- start footer part -->
325 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
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>