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/OptimizerTests.cpp Source File</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('_optimizer_tests_8cpp_source.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="headertitle"> |
| 84 | <div class="title">OptimizerTests.cpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_optimizer_tests_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> </div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include "<a class="code" href="_test_utils_8hpp.html">TestUtils.hpp</a>"</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> </div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <<a class="code" href="_graph_8hpp.html">Graph.hpp</a>></span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="_optimizer_8hpp.html">Optimizer.hpp</a>></span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> </div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <<a class="code" href="_floating_point_converter_8hpp.html">armnnUtils/FloatingPointConverter.hpp</a>></span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> </div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <<a class="code" href="_cpu_tensor_handle_8hpp.html">backendsCommon/CpuTensorHandle.hpp</a>></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <boost/test/unit_test.hpp></span></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> <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">namespace</span></div><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> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keywordtype">void</span> CreateLSTMLayerHelper(<a class="code" href="classarmnn_1_1_graph.html">Graph</a> &graph, <span class="keywordtype">bool</span> CifgEnabled)</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> {</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="structarmnn_1_1_lstm_descriptor.html">LstmDescriptor</a> layerDesc;</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">m_ActivationFunc</a> = 4;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">m_ClippingThresCell</a> = 0.2f;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">m_ClippingThresProj</a> = 0.4f;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a> = CifgEnabled;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">m_PeepholeEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  layerDesc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">m_ProjectionEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <a class="code" href="classarmnn_1_1_lstm_layer.html">LstmLayer</a>* <span class="keyword">const</span> layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_lstm_layer.html">LstmLayer</a>>(layerDesc, <span class="stringliteral">"layer"</span>);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batchSize = 3;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputSize = 2;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numUnits = 4;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputSize = 4;</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>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a5a0d8af26a6aad1e5be521ea7dc550eb">m_InputToForgetWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, inputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a14ab2bc78421c417c4f97a65b0bd78f9">m_InputToCellWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, inputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#ae8d897b8d282f25a6eb784c4aaa98df6">m_InputToOutputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, inputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a3d5f129421bbe6479a66d4ed1356bf68">m_RecurrentToForgetWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a6e8c3db3c5474f0760553ff93fbc39e6">m_RecurrentToCellWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a91dda74af4085ae43913746ad817795a">m_RecurrentToOutputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a0e0e17d5b494993407cb75d614455ddd">m_ForgetGateBias</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a51255889cbc063130a3d691c1781c5d3">m_CellBias</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#aacb55e0992b6781a7bd3225ab6e6bb2f">m_OutputGateBias</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a5a0d8af26a6aad1e5be521ea7dc550eb">m_InputToForgetWeights</a>->Allocate();</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a14ab2bc78421c417c4f97a65b0bd78f9">m_InputToCellWeights</a>->Allocate();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#ae8d897b8d282f25a6eb784c4aaa98df6">m_InputToOutputWeights</a>->Allocate();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a3d5f129421bbe6479a66d4ed1356bf68">m_RecurrentToForgetWeights</a>->Allocate();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a6e8c3db3c5474f0760553ff93fbc39e6">m_RecurrentToCellWeights</a>->Allocate();</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a91dda74af4085ae43913746ad817795a">m_RecurrentToOutputWeights</a>->Allocate();</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a0e0e17d5b494993407cb75d614455ddd">m_ForgetGateBias</a>->Allocate();</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#a51255889cbc063130a3d691c1781c5d3">m_CellBias</a>->Allocate();</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">m_BasicParameters</a>.<a class="code" href="structarmnn_1_1_lstm_basic_parameters.html#aacb55e0992b6781a7bd3225ab6e6bb2f">m_OutputGateBias</a>->Allocate();</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">if</span> (!layerDesc.m_CifgEnabled)</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a4d731c5e73638c7cf7e63f65e9f8b550">m_InputToInputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, inputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a6e8971757790a032e5936da7847ba14b">m_RecurrentToInputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits, outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a658f4245732f95c9fe756a934d370ca8">m_CellToInputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a9945bc99f8a7400c0724117e29cb3abb">m_InputGateBias</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a4d731c5e73638c7cf7e63f65e9f8b550">m_InputToInputWeights</a>->Allocate();</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a6e8971757790a032e5936da7847ba14b">m_RecurrentToInputWeights</a>->Allocate();</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a658f4245732f95c9fe756a934d370ca8">m_CellToInputWeights</a>->Allocate();</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">m_CifgParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a9945bc99f8a7400c0724117e29cb3abb">m_InputGateBias</a>->Allocate();</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keywordflow">if</span> (layerDesc.m_ProjectionEnabled)</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  {</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a3d3e6d0c3e6e570d9f831489c3bd14ce">m_ProjectionParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_projection_parameters.html#a3ec2885c48ce888516e27c8b75a8cb83">m_ProjectionWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ outputSize, numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a3d3e6d0c3e6e570d9f831489c3bd14ce">m_ProjectionParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_projection_parameters.html#aa9f2880e4e2a1eb731f61c1e0941c6a7">m_ProjectionBias</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a3d3e6d0c3e6e570d9f831489c3bd14ce">m_ProjectionParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_projection_parameters.html#a3ec2885c48ce888516e27c8b75a8cb83">m_ProjectionWeights</a>->Allocate();</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a3d3e6d0c3e6e570d9f831489c3bd14ce">m_ProjectionParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_projection_parameters.html#aa9f2880e4e2a1eb731f61c1e0941c6a7">m_ProjectionBias</a>->Allocate();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  }</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">if</span> (layerDesc.m_PeepholeEnabled)</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a4efa0f4d46817ab94e36c8507c26f276">m_PeepholeParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a5d0ebbbb11b727a67877df40b59a628c">m_CellToForgetWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a4efa0f4d46817ab94e36c8507c26f276">m_PeepholeParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a310e133b0b51b93a74b83008893792e9">m_CellToOutputWeights</a> = std::make_unique<ScopedCpuTensorHandle></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  (<a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>({ numUnits }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>));</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a4efa0f4d46817ab94e36c8507c26f276">m_PeepholeParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a5d0ebbbb11b727a67877df40b59a628c">m_CellToForgetWeights</a>->Allocate();</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  layer-><a class="code" href="classarmnn_1_1_lstm_layer.html#a4efa0f4d46817ab94e36c8507c26f276">m_PeepholeParameters</a>.<a class="code" href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a310e133b0b51b93a74b83008893792e9">m_CellToOutputWeights</a>->Allocate();</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="comment">// create input and output layers</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> outputStateIn = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(1, <span class="stringliteral">"outputStateIn"</span>);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> cellStateIn = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(2, <span class="stringliteral">"cellStateIn"</span>);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> scratchBuffer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"scratchBuffer"</span>);</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> outputStateOut = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(1, <span class="stringliteral">"outputStateOut"</span>);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> cellStateOut = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(2, <span class="stringliteral">"cellStateOut"</span>);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* <span class="keyword">const</span> output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(3, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="comment">// connect up</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> lstmTensorInfo1({ batchSize, inputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> lstmTensorInfo2({ batchSize, numUnits}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> lstmTensorInfo3({ batchSize, outputSize }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> lstmTensorInfoScratchBuff({ batchSize, numUnits * (layerDesc.m_CifgEnabled ? 3 : 4) },</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(input, layer, lstmTensorInfo1, 0, 0);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(cellStateIn, layer, lstmTensorInfo2, 0, 1);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(outputStateIn, layer, lstmTensorInfo3, 0, 2);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(layer, scratchBuffer, lstmTensorInfoScratchBuff, 0, 0);</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(layer, outputStateOut, lstmTensorInfo3, 1, 0);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(layer, cellStateOut, lstmTensorInfo2, 2, 0);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a>(layer, output, lstmTensorInfo3, 3, 0);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span> }</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <a class="code" href="_output_shape_of_squeeze_8cpp.html#ae3a6cb217a792718f2bd0e8f45e3ca9e">BOOST_AUTO_TEST_SUITE</a>(<a class="code" href="classarmnn_1_1_optimizer.html">Optimizer</a>)</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">using namespace </span><a class="code" href="namespacearmnn_1_1optimizations.html">armnn::optimizations</a>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a8839099137f1031b504d76090074142c"> 134</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(LSTMValidateTensorShapesFromInputsCIFGDisabledTest)</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="comment">//Helper function creates graph containing LSTM layer with required input and output layers</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  CreateLSTMLayerHelper(graph, <span class="keyword">false</span>);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">//This function used to call ValidateShapesFromInputs();</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> }</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a10342b734f73496052047f2b74b38cca"> 145</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(LSTMValidateTensorShapesFromInputsCIFGEnabledTest)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> {</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="comment">//Helper function creates graph containing LSTM layer with required input and output layers</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  CreateLSTMLayerHelper(graph, <span class="keyword">true</span>);</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="comment">//This function used to call ValidateShapesFromInputs();</span></div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> }</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a09fa0a0ab3199f1a7bfc169bce93925d"> 156</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(InsertConvertersTest)</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> {</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>({ 1, 5, 2, 3 }, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::DataType::Float16</a>);</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <a class="code" href="classarmnn_1_1_graph.html">armnn::Graph</a> graph;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> inputId = 0;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>* head = graph.AddLayer<<a class="code" href="classarmnn_1_1_output_layer.html">armnn::OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  head = graph.InsertNewLayer<<a class="code" href="classarmnn_1_1_addition_layer.html">armnn::AdditionLayer</a>>(head-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0), <span class="stringliteral">""</span>);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  head-><a class="code" href="classarmnn_1_1_layer.html#af2c0edc7ea62a8baaec4d3d9b2b09256">GetOutputHandler</a>().<a class="code" href="classarmnn_1_1_output_handler.html#a97db12c41024f5545ef5cc4153e5443b">SetTensorInfo</a>(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span> </div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  graph.InsertNewLayer<<a class="code" href="classarmnn_1_1_input_layer.html">armnn::InputLayer</a>>(head-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(1), inputId++, <span class="stringliteral">""</span>)</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  ->GetOutputHandler().SetTensorInfo(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>);</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  head = graph.InsertNewLayer<<a class="code" href="classarmnn_1_1_floor_layer.html">armnn::FloorLayer</a>>(head-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0), <span class="stringliteral">""</span>);</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  head-><a class="code" href="classarmnn_1_1_layer.html#af2c0edc7ea62a8baaec4d3d9b2b09256">GetOutputHandler</a>().<a class="code" href="classarmnn_1_1_output_handler.html#a97db12c41024f5545ef5cc4153e5443b">SetTensorInfo</a>(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>);</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  head = graph.InsertNewLayer<<a class="code" href="classarmnn_1_1_mem_copy_layer.html">armnn::MemCopyLayer</a>>(head-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0), <span class="stringliteral">""</span>);</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  head-><a class="code" href="classarmnn_1_1_layer.html#af2c0edc7ea62a8baaec4d3d9b2b09256">GetOutputHandler</a>().<a class="code" href="classarmnn_1_1_output_handler.html#a97db12c41024f5545ef5cc4153e5443b">SetTensorInfo</a>(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>);</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span> </div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  graph.InsertNewLayer<<a class="code" href="classarmnn_1_1_input_layer.html">armnn::InputLayer</a>>(head-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0), inputId++, <span class="stringliteral">""</span>)</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  ->GetOutputHandler().SetTensorInfo(<a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// Check graph layer sequence before inserting convert layers</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  BOOST_TEST(<a class="code" href="_test_utils_8hpp.html#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a>(graph.cbegin(),</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  graph.cend(),</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  &IsLayerOfType<armnn::MemCopyLayer>,</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  &IsLayerOfType<armnn::FloorLayer>,</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  &IsLayerOfType<armnn::AdditionLayer>,</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  &IsLayerOfType<armnn::OutputLayer>));</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span> </div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="comment">// Check layers have Float16 DataType</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& layer : graph)</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  {</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">if</span>(layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>()==<a class="code" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">LayerType::Floor</a> || layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">LayerType::Addition</a>)</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">DataType::Float16</a>);</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">DataType::Float16</a>);</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  }</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  }</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> </div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="comment">// Insert convert layers either side of unsupported layer</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& layer : graph)</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  {</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">if</span>(layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>()==<a class="code" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">LayerType::Floor</a> || layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">LayerType::Addition</a>)</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="namespacearmnn.html#ad31c56533e4f9f9f51719599fbfcf7bb">InsertConvertFp16ToFp32LayersBefore</a>(graph, *layer);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  <a class="code" href="namespacearmnn.html#abf625e50a5eaeafce5b39580dc95a9d3">InsertConvertFp32ToFp16LayersAfter</a>(graph, *layer);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  }</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  }</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> </div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="comment">// Check layers have correct DataType after inserting convert layers</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& layer : graph)</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">if</span> (layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>()==<a class="code" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">LayerType::Floor</a> || layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">LayerType::Addition</a>)</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  {</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  }</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a912a4b4d73726c282e3f79aa2c390d6c">LayerType::ConvertFp16ToFp32</a>)</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">DataType::Float16</a>);</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  }</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layer-><a class="code" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4addf4f83b056acd5549949fc0350e9aad">LayerType::ConvertFp32ToFp16</a>)</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  {</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">DataType::Float16</a>);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  BOOST_ASSERT(layer-><a class="code" href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">GetDataType</a>() == <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  }</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span> </div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  <span class="comment">// Check sequence of layers after inserting convert layers</span></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  BOOST_TEST(<a class="code" href="_test_utils_8hpp.html#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a>(graph.cbegin(),</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  graph.cend(),</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  &IsLayerOfType<armnn::ConvertFp16ToFp32Layer>,</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  &IsLayerOfType<armnn::MemCopyLayer>,</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  &IsLayerOfType<armnn::ConvertFp16ToFp32Layer>,</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  &IsLayerOfType<armnn::FloorLayer>,</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  &IsLayerOfType<armnn::ConvertFp32ToFp16Layer>,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  &IsLayerOfType<armnn::ConvertFp16ToFp32Layer>,</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  &IsLayerOfType<armnn::AdditionLayer>,</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  &IsLayerOfType<armnn::ConvertFp32ToFp16Layer>,</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  &IsLayerOfType<armnn::OutputLayer>));</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> }</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> </div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a5065b32dd0aa2c08ef75e953ebedbc16"> 249</a></span> <span class="keywordtype">void</span> <a class="code" href="_optimizer_tests_8cpp.html#a5065b32dd0aa2c08ef75e953ebedbc16">CreateConvolution2dGraph</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a> &graph, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* inputShape,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* weightsShape, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* outputShape,</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> {</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputInfo(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo(4, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  std::vector<float> weightsVector(90);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> weights(<a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(4, weightsShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>), weightsVector);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> </div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <a class="code" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> desc;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  desc.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  desc.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 1;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  desc.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 1;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  desc.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = dataLayout;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(inputInfo);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a>>(desc, <span class="stringliteral">"conv2d"</span>);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  layer-><a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> = std::make_unique<armnn::ScopedCpuTensorHandle>(weights);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> }</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a6b7bebf2c0d384c3297a6c3b19346555"> 277</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(Conv2dValidateTensorShapesFromInputs)</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> {</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 3, 8, 16 };</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { 2, 3, 5, 3 };</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 2, 4, 14 };</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="_optimizer_tests_8cpp.html#a5065b32dd0aa2c08ef75e953ebedbc16">CreateConvolution2dGraph</a>(graph, inputShape, weightsShape, outputShape);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> }</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> </div><div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a67738cd9d506e11aa4f4f43b9dc30e2c"> 288</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(Conv2dValidateTensorShapesFromInputsNhwc)</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span> {</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 8, 16, 3 };</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { 2, 5, 3, 3 };</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 4, 14, 2 };</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="_optimizer_tests_8cpp.html#a5065b32dd0aa2c08ef75e953ebedbc16">CreateConvolution2dGraph</a>(graph, inputShape, weightsShape, outputShape, <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> }</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span> </div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#acd97facea671e23ec3e8b33c6c2ea321"> 299</a></span> <span class="keywordtype">void</span> <a class="code" href="_optimizer_tests_8cpp.html#acd97facea671e23ec3e8b33c6c2ea321">CreateDepthwiseConvolution2dGraph</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a> &graph, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* inputShape,</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* weightsShape, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* outputShape,</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> {</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputInfo(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo(4, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  std::vector<float> weightsVector(18);</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> weights(<a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(4, weightsShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>), weightsVector);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">DepthwiseConvolution2dDescriptor</a> desc;</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  desc.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  desc.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 1;</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  desc.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 1;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  desc.<a class="code" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = dataLayout;</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(inputInfo);</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span> </div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.html">DepthwiseConvolution2dLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.html">DepthwiseConvolution2dLayer</a>>(desc, <span class="stringliteral">"depthwiseConv2d"</span>);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  layer-><a class="code" href="classarmnn_1_1_depthwise_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> = std::make_unique<armnn::ScopedCpuTensorHandle>(weights);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span> </div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> }</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a93b5cb4143e78fec858fe77e86472bec"> 327</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(DepthwiseConv2dValidateTensorShapesFromInputs)</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span> {</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 2, 3, 3 };</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { 1, 2, 3, 3 };</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 2, 1, 1 };</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <a class="code" href="_optimizer_tests_8cpp.html#acd97facea671e23ec3e8b33c6c2ea321">CreateDepthwiseConvolution2dGraph</a>(graph, inputShape, weightsShape, outputShape);</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span> </div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span> }</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span> </div><div class="line"><a name="l00338"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#aa678f54308701529660f9ee2a70bd042"> 338</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(DepthwiseConv2dValidateTensorShapesFromInputsNhwc)</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> {</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 3, 3, 2 };</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { 1, 2, 3, 3 };</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 1, 1, 2 };</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <a class="code" href="_optimizer_tests_8cpp.html#acd97facea671e23ec3e8b33c6c2ea321">CreateDepthwiseConvolution2dGraph</a>(graph, inputShape, weightsShape, outputShape, <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span> </div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> }</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a4756218150e4ca0da09d0ecc390a7a17"> 349</a></span> <span class="keywordtype">void</span> <a class="code" href="_optimizer_tests_8cpp.html#a4756218150e4ca0da09d0ecc390a7a17">CreatePooling2dGraph</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a> &graph, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* inputShape, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* outputShape,</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> {</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputInfo(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo(4, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span> </div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <a class="code" href="structarmnn_1_1_pooling2d_descriptor.html">Pooling2dDescriptor</a> desc;</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">m_PoolType</a> = <a class="code" href="namespacearmnn.html#a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021">armnn::PoolingAlgorithm::Average</a>;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">m_PoolWidth</a> = desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">m_PoolHeight</a> = 100;</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 5;</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = 50;</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a> = 50;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> = 50;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a> = 50;</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">m_PaddingMethod</a> = <a class="code" href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6">armnn::PaddingMethod::Exclude</a>;</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = dataLayout;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(inputInfo);</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <a class="code" href="classarmnn_1_1_pooling2d_layer.html">Pooling2dLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_pooling2d_layer.html">Pooling2dLayer</a>>(desc, <span class="stringliteral">"pooling2d"</span>);</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> }</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> </div><div class="line"><a name="l00377"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a8457188fd0859ae6a91c09c3266f58a5"> 377</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(Pooling2dValidateTensorShapesFromInputs)</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> {</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 5, 3, 52, 60 };</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 5, 3, 11, 13 };</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <a class="code" href="_optimizer_tests_8cpp.html#a4756218150e4ca0da09d0ecc390a7a17">CreatePooling2dGraph</a>(graph, inputShape, outputShape, <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>);</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span> }</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00387"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a1c7c22035e9b339dad1aedcf1d9c49e9"> 387</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(Pooling2dValidateTensorShapesFromInputsNhwc)</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> {</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 5, 52, 60, 3 };</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 5, 11, 13, 3 };</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  <a class="code" href="_optimizer_tests_8cpp.html#a4756218150e4ca0da09d0ecc390a7a17">CreatePooling2dGraph</a>(graph, inputShape, outputShape, <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span> }</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span> </div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#aefb2c7f14f687a9432490a1bdee05458"> 397</a></span> <span class="keywordtype">void</span> <a class="code" href="_optimizer_tests_8cpp.html#aefb2c7f14f687a9432490a1bdee05458">CreateResizeBilinearGraph</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a> &graph, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* inputShape, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* outputShape,</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> dataLayout = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>)</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> {</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> inputInfo(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> outputInfo(4, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <a class="code" href="structarmnn_1_1_resize_descriptor.html">ResizeDescriptor</a> desc;</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  desc.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a869254cb56968986a78a79e1d6d4a86b">m_Method</a> = <a class="code" href="namespacearmnn.html#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">ResizeMethod::Bilinear</a>;</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  desc.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a46c3fa15c46fb0d1dcdc24d0ea5cb5cd">m_TargetHeight</a> = 3;</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  desc.<a class="code" href="structarmnn_1_1_resize_descriptor.html#adcf5037208faac36c0788239a073f75c">m_TargetWidth</a> = 4;</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  desc.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = dataLayout;</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span> </div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(inputInfo);</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <a class="code" href="classarmnn_1_1_resize_layer.html">ResizeLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_resize_layer.html">ResizeLayer</a>>(desc, <span class="stringliteral">"resizeBilinear"</span>);</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span> </div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span> }</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span> </div><div class="line"><a name="l00420"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#acee9ba1427bd42cc38a0402969dd0d35"> 420</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(ResizeBilinearValidateTensorShapesFromInputs)</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> {</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 2, 4, 5 };</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 2, 3, 4 };</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <a class="code" href="_optimizer_tests_8cpp.html#aefb2c7f14f687a9432490a1bdee05458">CreateResizeBilinearGraph</a>(graph, inputShape, outputShape);</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> }</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div><div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#abbc42a4387722b0b5e0c00038288dd4e"> 430</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(ResizeBilinearValidateTensorShapesFromInputsNhwc)</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span> {</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 4, 5, 2 };</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 3, 4, 2 };</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <a class="code" href="_optimizer_tests_8cpp.html#aefb2c7f14f687a9432490a1bdee05458">CreateResizeBilinearGraph</a>(graph, inputShape, outputShape, <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> }</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> </div><div class="line"><a name="l00441"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b"> 441</a></span> <span class="keywordtype">void</span> <a class="code" href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b">CreateGatherGraph</a>(<a class="code" href="classarmnn_1_1_graph.html">Graph</a>& graph, <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>& paramsInfo, <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>& indicesInfo,</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>& outputInfo)</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span> {</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input0 = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"params"</span>);</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  input0-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(paramsInfo);</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input1 = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(1, <span class="stringliteral">"indices"</span>);</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  input1-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(indicesInfo);</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="classarmnn_1_1_gather_layer.html">GatherLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_gather_layer.html">GatherLayer</a>>(<span class="stringliteral">"gather"</span>);</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  input0-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span>  input1-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(1));</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span> }</div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> </div><div class="line"><a name="l00459"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a57aa1f639ec35a976735c91889d463a4"> 459</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(GatherValidateTensorShapesFromInputs)</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> {</div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> paramsInfo({10, 5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> indicesInfo({3}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">DataType::Signed32</a>);</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo({3, 5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <a class="code" href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b">CreateGatherGraph</a>(graph, paramsInfo, indicesInfo, outputInfo);</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span> </div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> }</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div><div class="line"><a name="l00471"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#af31e0d94eb9ec7e72b9d6d70da3070ec"> 471</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(GatherValidateTensorShapesFromInputs1DParams)</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span> {</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> paramsInfo({8}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> indicesInfo({5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">DataType::Signed32</a>);</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo( {5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <a class="code" href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b">CreateGatherGraph</a>(graph, paramsInfo, indicesInfo, outputInfo);</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span> }</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> </div><div class="line"><a name="l00483"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a65b5e30de580e14475b51da9b93c908b"> 483</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(GatherValidateTensorShapesFromInputsMultiDimIndices)</div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span> {</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> paramsInfo({3, 2, 5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> indicesInfo({2, 2}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">DataType::Signed32</a>);</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo({2, 2, 2, 5}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> </div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  <a class="code" href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b">CreateGatherGraph</a>(graph, paramsInfo, indicesInfo, outputInfo);</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> }</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> </div><div class="line"><a name="l00495"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a0ee7b0e1f8d1dd9a9e001720e69086eb"> 495</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(DetectionPostProcessValidateTensorShapes)</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span> {</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> boxEncodingsInfo({1, 10, 4}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> <a class="code" href="_neon_end_to_end_tests_8cpp.html#a64c1dd1b6dd60be9f4a16db9c8f427a5">scoresInfo</a>({1, 10, 4}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  std::vector<uint8_t> anchorsVector(40);</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> <a class="code" href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors</a>(<a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>({10, 4}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a>), anchorsVector);</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> detectionBoxesInfo({1, 3, 4}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> detectionScoresInfo({1, 3}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> detectionClassesInfo({1, 3}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> numDetectionInfo({1}, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">DataType::QAsymmU8</a>);</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input0 = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"boxEncodings"</span>);</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  input0-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(boxEncodingsInfo);</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input1 = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(1, <span class="stringliteral">"score"</span>);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  input1-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(<a class="code" href="_neon_end_to_end_tests_8cpp.html#a64c1dd1b6dd60be9f4a16db9c8f427a5">scoresInfo</a>);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html">DetectionPostProcessDescriptor</a> descriptor;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">m_MaxDetections</a> = 3;</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span> </div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <a class="code" href="classarmnn_1_1_detection_post_process_layer.html">DetectionPostProcessLayer</a>* layer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_detection_post_process_layer.html">DetectionPostProcessLayer</a>>(descriptor, <span class="stringliteral">"detectionPostProcess"</span>);</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  layer-><a class="code" href="classarmnn_1_1_detection_post_process_layer.html#a6844fecab0edaf324de5a57fee8b65f1">m_Anchors</a> = std::make_unique<armnn::ScopedCpuTensorHandle>(<a class="code" href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors</a>);</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(detectionBoxesInfo);</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(1).<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(detectionScoresInfo);</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(2).<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(detectionClassesInfo);</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  layer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(3).<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(numDetectionInfo);</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  input0->GetOutputSlot().Connect(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  input1-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(layer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(1));</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span> </div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  BOOST_CHECK_NO_THROW(graph.<a class="code" href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">InferTensorInfos</a>());</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span> }</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div><div class="line"><a name="l00530"></a><span class="lineno"><a class="line" href="_optimizer_tests_8cpp.html#a4ef49bab7a1b82c389b3b45ffb767833"> 530</a></span> <a class="code" href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">BOOST_AUTO_TEST_CASE</a>(FoldPadLayerIntoConvolution2dLayer)</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> {</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <a class="code" href="classarmnn_1_1_graph.html">Graph</a> graph;</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { 1, 2, 2, 3 };</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> paddedShape[] = { 1, 6, 6, 3 };</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { 1, 2, 3, 3 };</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { 1, 2, 1, 1 };</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div><div class="line"><a name="l00538"></a><span class="lineno"> 538</span> </div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputInfo(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> paddedInfo(4, paddedShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputInfo(4, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">DataType::Float32</a>);</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span> </div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* input = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.html">InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(inputInfo);</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  <a class="code" href="structarmnn_1_1_pad_descriptor.html">PadDescriptor</a> padDescriptor({{ 0, 0 }, { 2, 2 }, { 2, 2 }, { 0, 0 }});</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span> </div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <a class="code" href="classarmnn_1_1_pad_layer.html">PadLayer</a>* padLayer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_pad_layer.html">PadLayer</a>>(padDescriptor, <span class="stringliteral">"pad"</span>);</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  padLayer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(paddedInfo);</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span> </div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <a class="code" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> convolution2dDescriptor;</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  convolution2dDescriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = <span class="keyword">false</span>;</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  convolution2dDescriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = 1;</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  convolution2dDescriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = 1;</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  convolution2dDescriptor.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>;</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> </div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  std::vector<float> weightsVector(18);</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> weights(<a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(4, weightsShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>), weightsVector);</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> </div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <a class="code" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a>* conv2dLayer = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a>>(convolution2dDescriptor,<span class="stringliteral">"conv2d"</span>);</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  conv2dLayer-><a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> = std::make_unique<armnn::ScopedCpuTensorHandle>(weights);</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  conv2dLayer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">SetTensorInfo</a>(outputInfo);</div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span> </div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <a class="code" href="classarmnn_1_1_layer.html">Layer</a>* output = graph.<a class="code" href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.html">OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span> </div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="comment">// Connect up layers - input -> pad -> conv2d -> output</span></div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  input-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(padLayer->GetInputSlot(0));</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  padLayer->GetOutputSlot().Connect(conv2dLayer-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  conv2dLayer-><a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>().<a class="code" href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">Connect</a>(output-><a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> </div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keyword">auto</span> checkSimpleConv2d = [ ](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>* <span class="keyword">const</span> layer) -> <span class="keywordtype">bool</span></div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  {</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <span class="keyword">const</span> <span class="keyword">auto</span> conv2dLayer = <span class="keyword">static_cast<</span><span class="keyword">const </span><a class="code" href="classarmnn_1_1_convolution2d_layer.html">armnn::Convolution2dLayer</a>*<span class="keyword">></span>(layer);</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  <span class="keyword">const</span> <span class="keyword">auto</span> conv2dLayerParams = conv2dLayer-><a class="code" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a>();</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <span class="keywordflow">return</span> IsLayerOfType<armnn::Convolution2dLayer>(layer) &&</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  (layer-><a class="code" href="classarmnn_1_1_layer.html#a9a97cb6d32661a57fc33bd29b8e41ff4">GetNameStr</a>() == <span class="stringliteral">"conv2d"</span>) &&</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  (conv2dLayerParams.m_PadLeft == 0) &&</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  (conv2dLayerParams.m_PadRight == 0) &&</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  (conv2dLayerParams.m_PadTop == 0) &&</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  (conv2dLayerParams.m_PadBottom == 0) &&</div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  (conv2dLayerParams.m_BiasEnabled == <span class="keyword">false</span>) &&</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  (conv2dLayerParams.m_StrideX == 1) &&</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  (conv2dLayerParams.m_StrideY == 1) &&</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  (conv2dLayerParams.m_DataLayout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  };</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> </div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  BOOST_TEST(<a class="code" href="_test_utils_8hpp.html#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a>(graph.<a class="code" href="classarmnn_1_1_graph.html#a98b1109a9006f8cc7d4566146a3bd737">cbegin</a>(),</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  graph.<a class="code" href="classarmnn_1_1_graph.html#a02fd29b6dc3e21fbe4484362d85893bc">cend</a>(),</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  &IsLayerOfType<armnn::PadLayer>,</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span>  checkSimpleConv2d,</div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  &IsLayerOfType<armnn::OutputLayer>));</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <a class="code" href="classarmnn_1_1_optimizer.html#a1f48ba622b76ea04d15c9b62f642bf08">armnn::Optimizer::Pass</a>(graph, <a class="code" href="namespacearmnn.html#aa7427025a851113a492de0b68b23d22a">armnn::MakeOptimizations</a>(<a class="code" href="namespacearmnn_1_1optimizations.html#add2180a15cdcf5a229de32bb956cb224">FoldPadIntoConvolution2d</a>()));</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span> </div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  <span class="keyword">auto</span> checkPadFoldedIntoConv2d = [ ](<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_layer.html">armnn::Layer</a>* <span class="keyword">const</span> layer) -> <span class="keywordtype">bool</span></div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  {</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  <span class="keyword">const</span> <span class="keyword">auto</span> conv2dLayer = <span class="keyword">static_cast<</span><span class="keyword">const </span><a class="code" href="classarmnn_1_1_convolution2d_layer.html">armnn::Convolution2dLayer</a>*<span class="keyword">></span>(layer);</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keyword">const</span> <span class="keyword">auto</span> conv2dLayerParams = conv2dLayer-><a class="code" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a>();</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  <span class="keywordflow">return</span> IsLayerOfType<armnn::Convolution2dLayer>(layer) &&</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  (layer-><a class="code" href="classarmnn_1_1_layer.html#a9a97cb6d32661a57fc33bd29b8e41ff4">GetNameStr</a>() == <span class="stringliteral">"folded-pad-into-conv2d"</span>) &&</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  (conv2dLayerParams.m_PadLeft == 2) &&</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  (conv2dLayerParams.m_PadRight == 2) &&</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  (conv2dLayerParams.m_PadTop == 2) &&</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  (conv2dLayerParams.m_PadBottom == 2) &&</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  (conv2dLayerParams.m_BiasEnabled == <span class="keyword">false</span>) &&</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  (conv2dLayerParams.m_StrideX == 1) &&</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  (conv2dLayerParams.m_StrideY == 1) &&</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  (conv2dLayerParams.m_DataLayout == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>);</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  };</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span> </div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  BOOST_TEST(<a class="code" href="_test_utils_8hpp.html#a0eedb278f57355b47fa983450d4e378c">CheckSequence</a>(graph.<a class="code" href="classarmnn_1_1_graph.html#a98b1109a9006f8cc7d4566146a3bd737">cbegin</a>(),</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  graph.<a class="code" href="classarmnn_1_1_graph.html#a02fd29b6dc3e21fbe4484362d85893bc">cend</a>(),</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  &IsLayerOfType<armnn::InputLayer>,</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  checkPadFoldedIntoConv2d,</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  &IsLayerOfType<armnn::OutputLayer>));</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span> }</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span> </div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span> <a class="code" href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END</a>()</div><div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a6c9de81fc65b3c4924cab11907075a17"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">armnn::LstmDescriptor::m_ProjectionEnabled</a></div><div class="ttdeci">bool m_ProjectionEnabled</div><div class="ttdoc">Enable/disable the projection layer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00871">Descriptors.hpp:871</a></div></div> |
| 88 | <div class="ttc" id="classarmnn_1_1_layer_html_af2c0edc7ea62a8baaec4d3d9b2b09256"><div class="ttname"><a href="classarmnn_1_1_layer.html#af2c0edc7ea62a8baaec4d3d9b2b09256">armnn::Layer::GetOutputHandler</a></div><div class="ttdeci">const OutputHandler & GetOutputHandler(unsigned int i=0) const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00221">Layer.hpp:221</a></div></div> |
| 89 | <div class="ttc" id="classarmnn_1_1_lstm_layer_html_a4efa0f4d46817ab94e36c8507c26f276"><div class="ttname"><a href="classarmnn_1_1_lstm_layer.html#a4efa0f4d46817ab94e36c8507c26f276">armnn::LstmLayer::m_PeepholeParameters</a></div><div class="ttdeci">LstmOptPeepholeParameters m_PeepholeParameters</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00084">LstmLayer.hpp:84</a></div></div> |
| 90 | <div class="ttc" id="classarmnn_1_1_pad_layer_html"><div class="ttname"><a href="classarmnn_1_1_pad_layer.html">armnn::PadLayer</a></div><div class="ttdoc">This layer represents a pad operation. </div><div class="ttdef"><b>Definition:</b> <a href="_pad_layer_8hpp_source.html#l00014">PadLayer.hpp:14</a></div></div> |
| 91 | <div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::DepthwiseConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00482">Descriptors.hpp:482</a></div></div> |
| 92 | <div class="ttc" id="classarmnn_1_1_detection_post_process_layer_html_a6844fecab0edaf324de5a57fee8b65f1"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html#a6844fecab0edaf324de5a57fee8b65f1">armnn::DetectionPostProcessLayer::m_Anchors</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Anchors</div><div class="ttdoc">A unique pointer to store Anchor values. </div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8hpp_source.html#l00020">DetectionPostProcessLayer.hpp:20</a></div></div> |
| 93 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a7c5531bbefed0945814f874baf9e0e0f">armnn::LayerType::Addition</a></div></div> |
| 94 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Convolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00440">Descriptors.hpp:440</a></div></div> |
| 95 | <div class="ttc" id="classarmnn_1_1_input_layer_html"><div class="ttname"><a href="classarmnn_1_1_input_layer.html">armnn::InputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_input_layer_8hpp_source.html#l00013">InputLayer.hpp:13</a></div></div> |
| 96 | <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> |
| 97 | <div class="ttc" id="structarmnn_1_1_lstm_opt_cifg_parameters_html_a6e8971757790a032e5936da7847ba14b"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a6e8971757790a032e5936da7847ba14b">armnn::LstmOptCifgParameters::m_RecurrentToInputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_RecurrentToInputWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [input_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00031">LstmLayer.hpp:31</a></div></div> |
| 98 | <div class="ttc" id="classarmnn_1_1_const_tensor_html"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00199">Tensor.hpp:199</a></div></div> |
| 99 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4a912a4b4d73726c282e3f79aa2c390d6c"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4a912a4b4d73726c282e3f79aa2c390d6c">armnn::LayerType::ConvertFp16ToFp32</a></div></div> |
| 100 | <div class="ttc" id="_optimizer_8hpp_html"><div class="ttname"><a href="_optimizer_8hpp.html">Optimizer.hpp</a></div></div> |
| 101 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::DataType::QAsymmU8</a></div></div> |
| 102 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 103 | <div class="ttc" id="_optimizer_tests_8cpp_html_acd97facea671e23ec3e8b33c6c2ea321"><div class="ttname"><a href="_optimizer_tests_8cpp.html#acd97facea671e23ec3e8b33c6c2ea321">CreateDepthwiseConvolution2dGraph</a></div><div class="ttdeci">void CreateDepthwiseConvolution2dGraph(Graph &graph, const unsigned int *inputShape, const unsigned int *weightsShape, const unsigned int *outputShape, DataLayout dataLayout=DataLayout::NCHW)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_tests_8cpp_source.html#l00299">OptimizerTests.cpp:299</a></div></div> |
| 104 | <div class="ttc" id="classarmnn_1_1_lstm_layer_html_a3d3e6d0c3e6e570d9f831489c3bd14ce"><div class="ttname"><a href="classarmnn_1_1_lstm_layer.html#a3d3e6d0c3e6e570d9f831489c3bd14ce">armnn::LstmLayer::m_ProjectionParameters</a></div><div class="ttdeci">LstmOptProjectionParameters m_ProjectionParameters</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00083">LstmLayer.hpp:83</a></div></div> |
| 105 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a531a3907ec13d3772370da88030191a5"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">armnn::LstmDescriptor::m_ClippingThresCell</a></div><div class="ttdeci">float m_ClippingThresCell</div><div class="ttdoc">Clipping threshold value for the cell state. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00863">Descriptors.hpp:863</a></div></div> |
| 106 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a14ab2bc78421c417c4f97a65b0bd78f9"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a14ab2bc78421c417c4f97a65b0bd78f9">armnn::LstmBasicParameters::m_InputToCellWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_InputToCellWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [input_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00059">LstmLayer.hpp:59</a></div></div> |
| 107 | <div class="ttc" id="classarmnn_1_1_detection_post_process_layer_html"><div class="ttname"><a href="classarmnn_1_1_detection_post_process_layer.html">armnn::DetectionPostProcessLayer</a></div><div class="ttdoc">This layer represents a detection postprocess operator. </div><div class="ttdef"><b>Definition:</b> <a href="_detection_post_process_layer_8hpp_source.html#l00016">DetectionPostProcessLayer.hpp:16</a></div></div> |
| 108 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a5699e8606c37d18c03910b242cd1b010"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">armnn::Pooling2dDescriptor::m_PoolHeight</a></div><div class="ttdeci">uint32_t m_PoolHeight</div><div class="ttdoc">Pooling height value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00359">Descriptors.hpp:359</a></div></div> |
| 109 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 110 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a46c3fa15c46fb0d1dcdc24d0ea5cb5cd"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a46c3fa15c46fb0d1dcdc24d0ea5cb5cd">armnn::ResizeDescriptor::m_TargetHeight</a></div><div class="ttdeci">uint32_t m_TargetHeight</div><div class="ttdoc">Target height value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00746">Descriptors.hpp:746</a></div></div> |
| 111 | <div class="ttc" id="structarmnn_1_1_lstm_opt_cifg_parameters_html_a9945bc99f8a7400c0724117e29cb3abb"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a9945bc99f8a7400c0724117e29cb3abb">armnn::LstmOptCifgParameters::m_InputGateBias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_InputGateBias</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00035">LstmLayer.hpp:35</a></div></div> |
| 112 | <div class="ttc" id="classarmnn_1_1_layer_html"><div class="ttname"><a href="classarmnn_1_1_layer.html">armnn::Layer</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00209">Layer.hpp:209</a></div></div> |
| 113 | <div class="ttc" id="classarmnn_1_1_depthwise_convolution2d_layer_html"><div class="ttname"><a href="classarmnn_1_1_depthwise_convolution2d_layer.html">armnn::DepthwiseConvolution2dLayer</a></div><div class="ttdoc">This layer represents a depthwise convolution 2d operation. </div><div class="ttdef"><b>Definition:</b> <a href="_depthwise_convolution2d_layer_8hpp_source.html#l00015">DepthwiseConvolution2dLayer.hpp:15</a></div></div> |
| 114 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html">armnn::Convolution2dLayer</a></div><div class="ttdoc">This layer represents a convolution 2d operation. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00015">Convolution2dLayer.hpp:15</a></div></div> |
| 115 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_ae8d897b8d282f25a6eb784c4aaa98df6"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#ae8d897b8d282f25a6eb784c4aaa98df6">armnn::LstmBasicParameters::m_InputToOutputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_InputToOutputWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [input_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00061">LstmLayer.hpp:61</a></div></div> |
| 116 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 117 | <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 118 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::ResizeDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00751">Descriptors.hpp:751</a></div></div> |
| 119 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">armnn::Pooling2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00353">Descriptors.hpp:353</a></div></div> |
| 120 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ad474e5c51a0b194ef32e812b86c0cbdb"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">armnn::LstmDescriptor::m_CifgEnabled</a></div><div class="ttdeci">bool m_CifgEnabled</div><div class="ttdoc">Enable/disable cifg (coupled input & forget gate). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00867">Descriptors.hpp:867</a></div></div> |
| 121 | <div class="ttc" id="namespacearmnn_html_a10d15f3df1ab52b3b915a4be1dbf386b"><div class="ttname"><a href="namespacearmnn.html#a10d15f3df1ab52b3b915a4be1dbf386b">armnn::BOOST_AUTO_TEST_CASE</a></div><div class="ttdeci">BOOST_AUTO_TEST_CASE(CheckConvolution2dLayer)</div><div class="ttdef"><b>Definition:</b> <a href="_const_tensor_layer_visitor_8cpp_source.html#l00170">ConstTensorLayerVisitor.cpp:170</a></div></div> |
| 122 | <div class="ttc" id="structarmnn_1_1_pad_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_pad_descriptor.html">armnn::PadDescriptor</a></div><div class="ttdoc">A PadDescriptor for the PadLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00901">Descriptors.hpp:901</a></div></div> |
| 123 | <div class="ttc" id="classarmnn_1_1_mem_copy_layer_html"><div class="ttname"><a href="classarmnn_1_1_mem_copy_layer.html">armnn::MemCopyLayer</a></div><div class="ttdoc">This layer represents a memory copy operation. </div><div class="ttdef"><b>Definition:</b> <a href="_mem_copy_layer_8hpp_source.html#l00013">MemCopyLayer.hpp:13</a></div></div> |
| 124 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a869254cb56968986a78a79e1d6d4a86b"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a869254cb56968986a78a79e1d6d4a86b">armnn::ResizeDescriptor::m_Method</a></div><div class="ttdeci">ResizeMethod m_Method</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00749">Descriptors.hpp:749</a></div></div> |
| 125 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">armnn::Pooling2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00351">Descriptors.hpp:351</a></div></div> |
| 126 | <div class="ttc" id="classarmnn_1_1_graph_html_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.html#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &&... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00397">Graph.hpp:397</a></div></div> |
| 127 | <div class="ttc" id="classarmnn_1_1_optimizer_html_a1f48ba622b76ea04d15c9b62f642bf08"><div class="ttname"><a href="classarmnn_1_1_optimizer.html#a1f48ba622b76ea04d15c9b62f642bf08">armnn::Optimizer::Pass</a></div><div class="ttdeci">static void Pass(Graph &graph, const Optimizations &optimizations)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_8cpp_source.html#l00016">Optimizer.cpp:16</a></div></div> |
| 128 | <div class="ttc" id="classarmnn_1_1_output_slot_html_adcfb97035799ea4c043f9ef370714815"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#adcfb97035799ea4c043f9ef370714815">armnn::OutputSlot::Connect</a></div><div class="ttdeci">int Connect(InputSlot &destination)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00079">Layer.cpp:79</a></div></div> |
| 129 | <div class="ttc" id="classarmnn_1_1_pooling2d_layer_html"><div class="ttname"><a href="classarmnn_1_1_pooling2d_layer.html">armnn::Pooling2dLayer</a></div><div class="ttdoc">This layer represents a pooling 2d operation. </div><div class="ttdef"><b>Definition:</b> <a href="_pooling2d_layer_8hpp_source.html#l00013">Pooling2dLayer.hpp:13</a></div></div> |
| 130 | <div class="ttc" id="classarmnn_1_1_floor_layer_html"><div class="ttname"><a href="classarmnn_1_1_floor_layer.html">armnn::FloorLayer</a></div><div class="ttdoc">This layer represents a floor operation. </div><div class="ttdef"><b>Definition:</b> <a href="_floor_layer_8hpp_source.html#l00013">FloorLayer.hpp:13</a></div></div> |
| 131 | <div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::DepthwiseConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00492">Descriptors.hpp:492</a></div></div> |
| 132 | <div class="ttc" id="classarmnn_1_1_layer_html_a9a97cb6d32661a57fc33bd29b8e41ff4"><div class="ttname"><a href="classarmnn_1_1_layer.html#a9a97cb6d32661a57fc33bd29b8e41ff4">armnn::Layer::GetNameStr</a></div><div class="ttdeci">const std::string & GetNameStr() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00216">Layer.hpp:216</a></div></div> |
| 133 | <div class="ttc" id="structarmnn_1_1_lstm_opt_projection_parameters_html_a3ec2885c48ce888516e27c8b75a8cb83"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_projection_parameters.html#a3ec2885c48ce888516e27c8b75a8cb83">armnn::LstmOptProjectionParameters::m_ProjectionWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_ProjectionWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [output_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00041">LstmLayer.hpp:41</a></div></div> |
| 134 | <div class="ttc" id="_floating_point_converter_8hpp_html"><div class="ttname"><a href="_floating_point_converter_8hpp.html">FloatingPointConverter.hpp</a></div></div> |
| 135 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Convolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00432">Descriptors.hpp:432</a></div></div> |
| 136 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 137 | <div class="ttc" id="classarmnn_1_1_depthwise_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_depthwise_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::DepthwiseConvolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_depthwise_convolution2d_layer_8hpp_source.html#l00019">DepthwiseConvolution2dLayer.hpp:19</a></div></div> |
| 138 | <div class="ttc" id="namespacearmnn_1_1optimizations_html_add2180a15cdcf5a229de32bb956cb224"><div class="ttname"><a href="namespacearmnn_1_1optimizations.html#add2180a15cdcf5a229de32bb956cb224">armnn::optimizations::FoldPadIntoConvolution2d</a></div><div class="ttdeci">OptimizeForConnection< PadLayer, Convolution2dLayer, FoldPadIntoConvolution2dImpl > FoldPadIntoConvolution2d</div><div class="ttdef"><b>Definition:</b> <a href="_fold_pad_into_convolution2d_8hpp_source.html#l00088">FoldPadIntoConvolution2d.hpp:88</a></div></div> |
| 139 | <div class="ttc" id="namespacearmnn_html_abf625e50a5eaeafce5b39580dc95a9d3"><div class="ttname"><a href="namespacearmnn.html#abf625e50a5eaeafce5b39580dc95a9d3">armnn::InsertConvertFp32ToFp16LayersAfter</a></div><div class="ttdeci">std::vector< ConvertFp32ToFp16Layer * > InsertConvertFp32ToFp16LayersAfter(Graph &graph, Layer &layer)</div><div class="ttdef"><b>Definition:</b> <a href="_network_utils_8cpp_source.html#l00079">NetworkUtils.cpp:79</a></div></div> |
| 140 | <div class="ttc" id="namespacearmnn_1_1optimizations_html"><div class="ttname"><a href="namespacearmnn_1_1optimizations.html">armnn::optimizations</a></div><div class="ttdef"><b>Definition:</b> <a href="_add_debug_8hpp_source.html#l00012">AddDebug.hpp:12</a></div></div> |
| 141 | <div class="ttc" id="classarmnn_1_1_layer_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">armnn::Layer::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00272">Layer.cpp:272</a></div></div> |
| 142 | <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> |
| 143 | <div class="ttc" id="structarmnn_1_1_lstm_opt_cifg_parameters_html_a658f4245732f95c9fe756a934d370ca8"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a658f4245732f95c9fe756a934d370ca8">armnn::LstmOptCifgParameters::m_CellToInputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_CellToInputWeights</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00033">LstmLayer.hpp:33</a></div></div> |
| 144 | <div class="ttc" id="classarmnn_1_1_lstm_layer_html_a0e940dfa428f4eb429f8bc0d138b20af"><div class="ttname"><a href="classarmnn_1_1_lstm_layer.html#a0e940dfa428f4eb429f8bc0d138b20af">armnn::LstmLayer::m_CifgParameters</a></div><div class="ttdeci">LstmOptCifgParameters m_CifgParameters</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00082">LstmLayer.hpp:82</a></div></div> |
| 145 | <div class="ttc" id="structarmnn_1_1_lstm_opt_peephole_parameters_html_a5d0ebbbb11b727a67877df40b59a628c"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a5d0ebbbb11b727a67877df40b59a628c">armnn::LstmOptPeepholeParameters::m_CellToForgetWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_CellToForgetWeights</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00049">LstmLayer.hpp:49</a></div></div> |
| 146 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a0e0e17d5b494993407cb75d614455ddd"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a0e0e17d5b494993407cb75d614455ddd">armnn::LstmBasicParameters::m_ForgetGateBias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_ForgetGateBias</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00069">LstmLayer.hpp:69</a></div></div> |
| 147 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a6e8c3db3c5474f0760553ff93fbc39e6"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a6e8c3db3c5474f0760553ff93fbc39e6">armnn::LstmBasicParameters::m_RecurrentToCellWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_RecurrentToCellWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [output_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00065">LstmLayer.hpp:65</a></div></div> |
| 148 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6d8fb685cc1ff224f25aa127fcf62c86"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">armnn::Pooling2dDescriptor::m_PoolWidth</a></div><div class="ttdeci">uint32_t m_PoolWidth</div><div class="ttdoc">Pooling width value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00357">Descriptors.hpp:357</a></div></div> |
| 149 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a2837b4396f20c956952d1a7286cab5f8"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">armnn::LstmDescriptor::m_PeepholeEnabled</a></div><div class="ttdeci">bool m_PeepholeEnabled</div><div class="ttdoc">Enable/disable peephole. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00869">Descriptors.hpp:869</a></div></div> |
| 150 | <div class="ttc" id="_neon_end_to_end_tests_8cpp_html_a64c1dd1b6dd60be9f4a16db9c8f427a5"><div class="ttname"><a href="_neon_end_to_end_tests_8cpp.html#a64c1dd1b6dd60be9f4a16db9c8f427a5">scoresInfo</a></div><div class="ttdeci">armnn::TensorInfo scoresInfo({ 1, 6, 3 }, armnn::DataType::Float32)</div></div> |
| 151 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::Convolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00430">Descriptors.hpp:430</a></div></div> |
| 152 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a5a0d8af26a6aad1e5be521ea7dc550eb"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a5a0d8af26a6aad1e5be521ea7dc550eb">armnn::LstmBasicParameters::m_InputToForgetWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_InputToForgetWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [input_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00057">LstmLayer.hpp:57</a></div></div> |
| 153 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_a502c06a1b13e6d90a6cbf47c081f1444"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">armnn::LayerWithParameters::GetParameters</a></div><div class="ttdeci">const Parameters & GetParameters() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00018">LayerWithParameters.hpp:18</a></div></div> |
| 154 | <div class="ttc" id="namespacearmnn_html_a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6"><div class="ttname"><a href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6">armnn::PaddingMethod::Exclude</a></div><div class="ttdoc">The padding fields don&#39;t count and are ignored. </div></div> |
| 155 | <div class="ttc" id="classarmnn_1_1_graph_html_a2ceda8d369e861997d558fac74d79c33"><div class="ttname"><a href="classarmnn_1_1_graph.html#a2ceda8d369e861997d558fac74d79c33">armnn::Graph::InferTensorInfos</a></div><div class="ttdeci">void InferTensorInfos()</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.html#l00493">Graph.cpp:493</a></div></div> |
| 156 | <div class="ttc" id="classarmnn_1_1_lstm_layer_html_a8838b317568861294a9df608221f185e"><div class="ttname"><a href="classarmnn_1_1_lstm_layer.html#a8838b317568861294a9df608221f185e">armnn::LstmLayer::m_BasicParameters</a></div><div class="ttdeci">LstmBasicParameters m_BasicParameters</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00081">LstmLayer.hpp:81</a></div></div> |
| 157 | <div class="ttc" id="classarmnn_1_1_output_slot_html_a7e5c5771d741dd5473989047a9314728"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#a7e5c5771d741dd5473989047a9314728">armnn::OutputSlot::SetTensorInfo</a></div><div class="ttdeci">void SetTensorInfo(const TensorInfo &tensorInfo) override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00058">Layer.cpp:58</a></div></div> |
| 158 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a></div><div class="ttdoc">An LstmDescriptor for the LstmLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00837">Descriptors.hpp:837</a></div></div> |
| 159 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::Pooling2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00349">Descriptors.hpp:349</a></div></div> |
| 160 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html">armnn::DetectionPostProcessDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00495">Descriptors.hpp:495</a></div></div> |
| 161 | <div class="ttc" id="classarmnn_1_1_output_layer_html"><div class="ttname"><a href="classarmnn_1_1_output_layer.html">armnn::OutputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_output_layer_8hpp_source.html#l00013">OutputLayer.hpp:13</a></div></div> |
| 162 | <div class="ttc" id="structarmnn_1_1_lstm_opt_projection_parameters_html_aa9f2880e4e2a1eb731f61c1e0941c6a7"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_projection_parameters.html#aa9f2880e4e2a1eb731f61c1e0941c6a7">armnn::LstmOptProjectionParameters::m_ProjectionBias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_ProjectionBias</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [output_size]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00043">LstmLayer.hpp:43</a></div></div> |
| 163 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 164 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a8c29d6ea9b4186d69aad5961c910939c"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">armnn::Pooling2dDescriptor::m_PaddingMethod</a></div><div class="ttdeci">PaddingMethod m_PaddingMethod</div><div class="ttdoc">The padding method to be used. (Exclude, IgnoreValue). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00367">Descriptors.hpp:367</a></div></div> |
| 165 | <div class="ttc" id="classarmnn_1_1_gather_layer_html"><div class="ttname"><a href="classarmnn_1_1_gather_layer.html">armnn::GatherLayer</a></div><div class="ttdoc">This layer represents a Gather operator. </div><div class="ttdef"><b>Definition:</b> <a href="_gather_layer_8hpp_source.html#l00014">GatherLayer.hpp:14</a></div></div> |
| 166 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::Convolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00438">Descriptors.hpp:438</a></div></div> |
| 167 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::DataType::Signed32</a></div></div> |
| 168 | <div class="ttc" id="classarmnn_1_1_graph_html_a98b1109a9006f8cc7d4566146a3bd737"><div class="ttname"><a href="classarmnn_1_1_graph.html#a98b1109a9006f8cc7d4566146a3bd737">armnn::Graph::cbegin</a></div><div class="ttdeci">ConstIterator cbegin() const</div><div class="ttdoc">Returns const iterator pointing to the beginning of the list. Lowercase for range-based for loops...</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00168">Graph.hpp:168</a></div></div> |
| 169 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4addf4f83b056acd5549949fc0350e9aad"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4addf4f83b056acd5549949fc0350e9aad">armnn::LayerType::ConvertFp32ToFp16</a></div></div> |
| 170 | <div class="ttc" id="namespacearmnn_html_aa7427025a851113a492de0b68b23d22a"><div class="ttname"><a href="namespacearmnn.html#aa7427025a851113a492de0b68b23d22a">armnn::MakeOptimizations</a></div><div class="ttdeci">Optimizer::Optimizations MakeOptimizations(Args &&... args)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_8hpp_source.html#l00043">Optimizer.hpp:43</a></div></div> |
| 171 | <div class="ttc" id="classarmnn_1_1_lstm_layer_html"><div class="ttname"><a href="classarmnn_1_1_lstm_layer.html">armnn::LstmLayer</a></div><div class="ttdoc">This layer represents a LSTM operation. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00077">LstmLayer.hpp:77</a></div></div> |
| 172 | <div class="ttc" id="_profiler_tests_8cpp_html_af7f71af5c6c124222dd1c42c5df892f4"><div class="ttname"><a href="_profiler_tests_8cpp.html#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END</a></div><div class="ttdeci">BOOST_AUTO_TEST_SUITE_END()</div></div> |
| 173 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_adcf5037208faac36c0788239a073f75c"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#adcf5037208faac36c0788239a073f75c">armnn::ResizeDescriptor::m_TargetWidth</a></div><div class="ttdeci">uint32_t m_TargetWidth</div><div class="ttdoc">Target width value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00744">Descriptors.hpp:744</a></div></div> |
| 174 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a3d5f129421bbe6479a66d4ed1356bf68"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a3d5f129421bbe6479a66d4ed1356bf68">armnn::LstmBasicParameters::m_RecurrentToForgetWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_RecurrentToForgetWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [output_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00063">LstmLayer.hpp:63</a></div></div> |
| 175 | <div class="ttc" id="_optimizer_tests_8cpp_html_aa4e793c84e5dfea800d4dba921651e5b"><div class="ttname"><a href="_optimizer_tests_8cpp.html#aa4e793c84e5dfea800d4dba921651e5b">CreateGatherGraph</a></div><div class="ttdeci">void CreateGatherGraph(Graph &graph, const armnn::TensorInfo &paramsInfo, const armnn::TensorInfo &indicesInfo, const armnn::TensorInfo &outputInfo)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_tests_8cpp_source.html#l00441">OptimizerTests.cpp:441</a></div></div> |
| 176 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a51255889cbc063130a3d691c1781c5d3"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a51255889cbc063130a3d691c1781c5d3">armnn::LstmBasicParameters::m_CellBias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_CellBias</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00071">LstmLayer.hpp:71</a></div></div> |
| 177 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Pooling2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00363">Descriptors.hpp:363</a></div></div> |
| 178 | <div class="ttc" id="_test_utils_8cpp_html_a0b295acb179f15eb3fb862b32008f782"><div class="ttname"><a href="_test_utils_8cpp.html#a0b295acb179f15eb3fb862b32008f782">Connect</a></div><div class="ttdeci">void Connect(armnn::IConnectableLayer *from, armnn::IConnectableLayer *to, const armnn::TensorInfo &tensorInfo, unsigned int fromIndex, unsigned int toIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_test_utils_8cpp_source.html#l00012">TestUtils.cpp:12</a></div></div> |
| 179 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a></div><div class="ttdeci">DataLayout</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00048">Types.hpp:48</a></div></div> |
| 180 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a0031997bf43bd2747656c31e4977793a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">armnn::Pooling2dDescriptor::m_PoolType</a></div><div class="ttdeci">PoolingAlgorithm m_PoolType</div><div class="ttdoc">The pooling algorithm to use (Max. Average, L2). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00347">Descriptors.hpp:347</a></div></div> |
| 181 | <div class="ttc" id="classarmnn_1_1_optimizer_html"><div class="ttname"><a href="classarmnn_1_1_optimizer.html">armnn::Optimizer</a></div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_8hpp_source.html#l00014">Optimizer.hpp:14</a></div></div> |
| 182 | <div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::DepthwiseConvolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00490">Descriptors.hpp:490</a></div></div> |
| 183 | <div class="ttc" id="_cpu_tensor_handle_8hpp_html"><div class="ttname"><a href="_cpu_tensor_handle_8hpp.html">CpuTensorHandle.hpp</a></div></div> |
| 184 | <div class="ttc" id="structarmnn_1_1_lstm_opt_cifg_parameters_html_a4d731c5e73638c7cf7e63f65e9f8b550"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_cifg_parameters.html#a4d731c5e73638c7cf7e63f65e9f8b550">armnn::LstmOptCifgParameters::m_InputToInputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_InputToInputWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [input_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00029">LstmLayer.hpp:29</a></div></div> |
| 185 | <div class="ttc" id="classarmnn_1_1_output_handler_html_a97db12c41024f5545ef5cc4153e5443b"><div class="ttname"><a href="classarmnn_1_1_output_handler.html#a97db12c41024f5545ef5cc4153e5443b">armnn::OutputHandler::SetTensorInfo</a></div><div class="ttdeci">void SetTensorInfo(const TensorInfo &tensorInfo)</div><div class="ttdoc">Sets the TensorInfo used by this output handler. </div><div class="ttdef"><b>Definition:</b> <a href="_output_handler_8cpp_source.html#l00017">OutputHandler.cpp:17</a></div></div> |
| 186 | <div class="ttc" id="_neon_end_to_end_tests_8cpp_html_ac0981848e4ae57729f14f72bd4caa9f8"><div class="ttname"><a href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors</a></div><div class="ttdeci">std::vector< float > anchors({ 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 0.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 10.5f, 1.0f, 1.0f, 0.5f, 100.5f, 1.0f, 1.0f })</div></div> |
| 187 | <div class="ttc" id="classarmnn_1_1_addition_layer_html"><div class="ttname"><a href="classarmnn_1_1_addition_layer.html">armnn::AdditionLayer</a></div><div class="ttdoc">This layer represents an addition operation. </div><div class="ttdef"><b>Definition:</b> <a href="_addition_layer_8hpp_source.html#l00013">AdditionLayer.hpp:13</a></div></div> |
| 188 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::DataType::Float16</a></div></div> |
| 189 | <div class="ttc" id="classarmnn_1_1_graph_html"><div class="ttname"><a href="classarmnn_1_1_graph.html">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00029">Graph.hpp:29</a></div></div> |
| 190 | <div class="ttc" id="_optimizer_tests_8cpp_html_a4756218150e4ca0da09d0ecc390a7a17"><div class="ttname"><a href="_optimizer_tests_8cpp.html#a4756218150e4ca0da09d0ecc390a7a17">CreatePooling2dGraph</a></div><div class="ttdeci">void CreatePooling2dGraph(Graph &graph, const unsigned int *inputShape, const unsigned int *outputShape, DataLayout dataLayout=DataLayout::NCHW)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_tests_8cpp_source.html#l00349">OptimizerTests.cpp:349</a></div></div> |
| 191 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div> |
| 192 | <div class="ttc" id="_output_shape_of_squeeze_8cpp_html_ae3a6cb217a792718f2bd0e8f45e3ca9e"><div class="ttname"><a href="_output_shape_of_squeeze_8cpp.html#ae3a6cb217a792718f2bd0e8f45e3ca9e">BOOST_AUTO_TEST_SUITE</a></div><div class="ttdeci">BOOST_AUTO_TEST_SUITE(TensorflowLiteParser)</div></div> |
| 193 | <div class="ttc" id="_optimizer_tests_8cpp_html_a5065b32dd0aa2c08ef75e953ebedbc16"><div class="ttname"><a href="_optimizer_tests_8cpp.html#a5065b32dd0aa2c08ef75e953ebedbc16">CreateConvolution2dGraph</a></div><div class="ttdeci">void CreateConvolution2dGraph(Graph &graph, const unsigned int *inputShape, const unsigned int *weightsShape, const unsigned int *outputShape, DataLayout dataLayout=DataLayout::NCHW)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_tests_8cpp_source.html#l00249">OptimizerTests.cpp:249</a></div></div> |
| 194 | <div class="ttc" id="namespacearmnn_html_ad31c56533e4f9f9f51719599fbfcf7bb"><div class="ttname"><a href="namespacearmnn.html#ad31c56533e4f9f9f51719599fbfcf7bb">armnn::InsertConvertFp16ToFp32LayersBefore</a></div><div class="ttdeci">std::vector< ConvertFp16ToFp32Layer * > InsertConvertFp16ToFp32LayersBefore(Graph &graph, Layer &layer, bool expectCorrectInputType)</div><div class="ttdef"><b>Definition:</b> <a href="_network_utils_8cpp_source.html#l00040">NetworkUtils.cpp:40</a></div></div> |
| 195 | <div class="ttc" id="namespacearmnn_html_adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3"><div class="ttname"><a href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">armnn::OutputShapeRounding::Floor</a></div></div> |
| 196 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a></div><div class="ttdoc">A Pooling2dDescriptor for the Pooling2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00313">Descriptors.hpp:313</a></div></div> |
| 197 | <div class="ttc" id="classarmnn_1_1_graph_html_a02fd29b6dc3e21fbe4484362d85893bc"><div class="ttname"><a href="classarmnn_1_1_graph.html#a02fd29b6dc3e21fbe4484362d85893bc">armnn::Graph::cend</a></div><div class="ttdeci">ConstIterator cend() const</div><div class="ttdoc">Returns const iterator pointing to the end of the list. Lowercase for range-based for loops...</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.html#l00170">Graph.hpp:170</a></div></div> |
| 198 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ae1b07ed928036004bd257169e5aeeef4"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">armnn::LstmDescriptor::m_ActivationFunc</a></div><div class="ttdeci">uint32_t m_ActivationFunc</div><div class="ttdoc">The activation function to use. 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00861">Descriptors.hpp:861</a></div></div> |
| 199 | <div class="ttc" id="_optimizer_tests_8cpp_html_aefb2c7f14f687a9432490a1bdee05458"><div class="ttname"><a href="_optimizer_tests_8cpp.html#aefb2c7f14f687a9432490a1bdee05458">CreateResizeBilinearGraph</a></div><div class="ttdeci">void CreateResizeBilinearGraph(Graph &graph, const unsigned int *inputShape, const unsigned int *outputShape, DataLayout dataLayout=DataLayout::NCHW)</div><div class="ttdef"><b>Definition:</b> <a href="_optimizer_tests_8cpp_source.html#l00397">OptimizerTests.cpp:397</a></div></div> |
| 200 | <div class="ttc" id="namespacearmnn_html_a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f"><div class="ttname"><a href="namespacearmnn.html#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::ResizeMethod::Bilinear</a></div></div> |
| 201 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Pooling2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00369">Descriptors.hpp:369</a></div></div> |
| 202 | <div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">armnn::DepthwiseConvolution2dDescriptor</a></div><div class="ttdoc">A DepthwiseConvolution2dDescriptor for the DepthwiseConvolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00444">Descriptors.hpp:444</a></div></div> |
| 203 | <div class="ttc" id="_test_utils_8hpp_html"><div class="ttname"><a href="_test_utils_8hpp.html">TestUtils.hpp</a></div></div> |
| 204 | <div class="ttc" id="_graph_8hpp_html"><div class="ttname"><a href="_graph_8hpp.html">Graph.hpp</a></div></div> |
| 205 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html">armnn::Convolution2dDescriptor</a></div><div class="ttdoc">A Convolution2dDescriptor for the Convolution2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00392">Descriptors.hpp:392</a></div></div> |
| 206 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_aacb55e0992b6781a7bd3225ab6e6bb2f"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#aacb55e0992b6781a7bd3225ab6e6bb2f">armnn::LstmBasicParameters::m_OutputGateBias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_OutputGateBias</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00073">LstmLayer.hpp:73</a></div></div> |
| 207 | <div class="ttc" id="namespacearmnn_html_a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021"><div class="ttname"><a href="namespacearmnn.html#a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021">armnn::PoolingAlgorithm::Average</a></div></div> |
| 208 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">armnn::Pooling2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00355">Descriptors.hpp:355</a></div></div> |
| 209 | <div class="ttc" id="classarmnn_1_1_output_slot_html_ada2ad7d1caeeb4ef6195c8925fad6a65"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">armnn::OutputSlot::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00063">Layer.cpp:63</a></div></div> |
| 210 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a86e88bef0df4df96df752b4b8955a3af"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">armnn::LstmDescriptor::m_ClippingThresProj</a></div><div class="ttdeci">float m_ClippingThresProj</div><div class="ttdoc">Clipping threshold value for the projection. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00865">Descriptors.hpp:865</a></div></div> |
| 211 | <div class="ttc" id="structarmnn_1_1_depthwise_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_depthwise_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::DepthwiseConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00484">Descriptors.hpp:484</a></div></div> |
| 212 | <div class="ttc" id="structarmnn_1_1_lstm_opt_peephole_parameters_html_a310e133b0b51b93a74b83008893792e9"><div class="ttname"><a href="structarmnn_1_1_lstm_opt_peephole_parameters.html#a310e133b0b51b93a74b83008893792e9">armnn::LstmOptPeepholeParameters::m_CellToOutputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_CellToOutputWeights</div><div class="ttdoc">A unique pointer to represent 1D weights tensor with dimensions [num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00051">LstmLayer.hpp:51</a></div></div> |
| 213 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::Pooling2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00361">Descriptors.hpp:361</a></div></div> |
| 214 | <div class="ttc" id="namespacearmnn_html_ab8cf8f9fb6792e654c2d8d8382f6f01b"><div class="ttname"><a href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a></div><div class="ttdeci">int LayerBindingId</div><div class="ttdoc">Type of identifiers for bindable layers (inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00168">Types.hpp:168</a></div></div> |
| 215 | <div class="ttc" id="classarmnn_1_1_layer_html_a0e36688a43c35668d8db5257274c68fe"><div class="ttname"><a href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">armnn::Layer::GetOutputSlot</a></div><div class="ttdeci">const OutputSlot & GetOutputSlot(unsigned int index=0) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00312">Layer.hpp:312</a></div></div> |
| 216 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html">armnn::ResizeDescriptor</a></div><div class="ttdoc">A ResizeDescriptor for the ResizeLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00724">Descriptors.hpp:724</a></div></div> |
| 217 | <div class="ttc" id="structarmnn_1_1_lstm_basic_parameters_html_a91dda74af4085ae43913746ad817795a"><div class="ttname"><a href="structarmnn_1_1_lstm_basic_parameters.html#a91dda74af4085ae43913746ad817795a">armnn::LstmBasicParameters::m_RecurrentToOutputWeights</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_RecurrentToOutputWeights</div><div class="ttdoc">A unique pointer to represent 2D weights tensor with dimensions [output_size, num_units]. </div><div class="ttdef"><b>Definition:</b> <a href="_lstm_layer_8hpp_source.html#l00067">LstmLayer.hpp:67</a></div></div> |
| 218 | <div class="ttc" id="classarmnn_1_1_layer_html_acf8b8e23bf647836592982f97088d375"><div class="ttname"><a href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">armnn::Layer::GetInputSlot</a></div><div class="ttdeci">const InputSlot & GetInputSlot(unsigned int index) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00310">Layer.hpp:310</a></div></div> |
| 219 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_ae72089bcab60ac175557f4241b16a014"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">armnn::DetectionPostProcessDescriptor::m_MaxDetections</a></div><div class="ttdeci">uint32_t m_MaxDetections</div><div class="ttdoc">Maximum numbers of detections. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00527">Descriptors.hpp:527</a></div></div> |
| 220 | <div class="ttc" id="classarmnn_1_1_resize_layer_html"><div class="ttname"><a href="classarmnn_1_1_resize_layer.html">armnn::ResizeLayer</a></div><div class="ttdoc">This layer represents a resize operation. </div><div class="ttdef"><b>Definition:</b> <a href="_resize_layer_8hpp_source.html#l00013">ResizeLayer.hpp:13</a></div></div> |
| 221 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 222 | </div><!-- fragment --></div><!-- contents --> |
| 223 | </div><!-- doc-content --> |
| 224 | <!-- start footer part --> |
| 225 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 226 | <ul> |
| 227 | <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="_optimizer_tests_8cpp.html">OptimizerTests.cpp</a></li> |
| 228 | <li class="footer">Generated on Fri Mar 13 2020 16:06:54 for ArmNN by |
| 229 | <a href="http://www.doxygen.org/index.html"> |
| 230 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 231 | </ul> |
| 232 | </div> |
| 233 | </body> |
| 234 | </html> |