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/backends/backendsCommon/test/layerTests/FullyConnectedTestImpl.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('_fully_connected_test_impl_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">FullyConnectedTestImpl.cpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_fully_connected_test_impl_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="_fully_connected_test_impl_8hpp.html">FullyConnectedTestImpl.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> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <<a class="code" href="_quantize_helper_8hpp.html">QuantizeHelper.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> <span class="preprocessor">#include <<a class="code" href="_cpu_tensor_handle_8hpp.html">backendsCommon/CpuTensorHandle.hpp</a>></span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <<a class="code" href="_data_type_utils_8hpp.html">backendsCommon/test/DataTypeUtils.hpp</a>></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <<a class="code" href="_tensor_copy_utils_8hpp.html">backendsCommon/test/TensorCopyUtils.hpp</a>></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <<a class="code" href="_workload_test_utils_8hpp.html">backendsCommon/test/WorkloadTestUtils.hpp</a>></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <<a class="code" href="_tensor_helpers_8hpp.html">test/TensorHelpers.hpp</a>></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">//</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// Implementation templates</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">//</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="keyword">template</span><<span class="keyword">typename</span> T, <span class="keyword">typename</span> B></div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="_fully_connected_test_impl_8cpp.html#a85031832a04444e2f419a746b4c59345"> 24</a></span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> <a class="code" href="_fully_connected_test_impl_8cpp.html#a85031832a04444e2f419a746b4c59345">SimpleFullyConnectedTestImpl</a>(</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo,</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo,</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> weightsDesc,</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> biasesDesc,</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  boost::multi_array<T, 2>& weights,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  boost::multi_array<B, 1>& bias,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  boost::multi_array<T, 4>& input,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">bool</span> biasEnabled,</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordtype">bool</span> transposeWeights)</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  boost::ignore_unused(memoryManager);</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  std::unique_ptr<armnn::ITensorHandle> inputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(inputTensorInfo);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  std::unique_ptr<armnn::ITensorHandle> outputHandle = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">CreateTensorHandle</a>(outputTensorInfo);</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <a class="code" href="structarmnn_1_1_fully_connected_queue_descriptor.html">armnn::FullyConnectedQueueDescriptor</a> data;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a> info;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">armnn::ScopedCpuTensorHandle</a> weightsTensor(weightsDesc);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <a class="code" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">armnn::ScopedCpuTensorHandle</a> biasTensor(biasesDesc);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a>(&weightsTensor, &weights[0][0]);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a>(&biasTensor, &bias[0]);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  AddInputToWorkload(data, info, inputTensorInfo, inputHandle.get());</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  data.<a class="code" href="structarmnn_1_1_fully_connected_queue_descriptor.html#a3369b66d9316a773a41711e3f590c041">m_Weight</a> = &weightsTensor;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  data.<a class="code" href="structarmnn_1_1_fully_connected_queue_descriptor.html#ab3437cee6b0687812104fc1b37cbe8b3">m_Bias</a> = &biasTensor;</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  data.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a> = biasEnabled;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  data.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#a281fcaec86e17c97f7b8402633f6b55a">m_TransposeWeightMatrix</a> = transposeWeights;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  std::unique_ptr<armnn::IWorkload> workload = workloadFactory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a1c193739520e08f686b347ff795ad2fe">CreateFullyConnected</a>(data, info);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  inputHandle->Allocate();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  outputHandle->Allocate();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a>(inputHandle.get(), &input[0][0][0][0]);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  ExecuteWorkload(*workload, memoryManager);</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a>(&result.<a class="code" href="struct_layer_test_result.html#ac9d44d346bb7c89f7a7aa31d2bee947f">output</a>[0][0], outputHandle.get());</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> }</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> <span class="keyword">template</span><armnn::DataType ArmnnType, <span class="keyword">typename</span> T></div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="_fully_connected_test_impl_8hpp.html#a25b72d9cbe9cca2c89ba997e6f2cfb87"> 71</a></span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> <a class="code" href="_fully_connected_test_impl_8cpp.html#a25b72d9cbe9cca2c89ba997e6f2cfb87">FullyConnectedTest</a>(</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">bool</span> biasEnabled)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  constexpr <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth = 3u;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  constexpr <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight = 2u;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  constexpr <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels = 1u;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  constexpr <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputSize = inputWidth * inputHeight * inputChannels;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  constexpr <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 2u;</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo({ 1, inputChannels, inputHeight, inputWidth }, ArmnnType);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(0.1f);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  inputTensorInfo.SetQuantizationOffset(63);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo({ 1, outputChannels }, ArmnnType);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(5.f);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  outputTensorInfo.SetQuantizationOffset(biasEnabled ? -50 : 10);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> weightsDesc({ outputChannels, inputSize }, ArmnnType);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  weightsDesc.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(0.2f);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  weightsDesc.SetQuantizationOffset(93);</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>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> biasesDesc({ outputChannels }, <a class="code" href="namespacearmnn.html#a83c4a275acf59f62b8387f389d0929d5">GetBiasTypeFromWeightsType</a>(weightsDesc.GetDataType()).value());</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  biasesDesc.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(inputTensorInfo.GetQuantizationScale() * weightsDesc.GetQuantizationScale());</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  biasesDesc.SetQuantizationOffset(0);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keyword">auto</span> input = MakeTensor<T, 4>(inputTensorInfo, ConvertToDataType<ArmnnType>(</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>  -1.2f, 6.1f, -3.5f,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  18.8f, -5.5f, 2.9f</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  },</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  inputTensorInfo));</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keyword">auto</span> weights = MakeTensor<T, 2>(weightsDesc, ConvertToDataType<ArmnnType>(</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  -8.4f, 20.0f, -10.4f, -8, 16.4f, -11.8f,</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  23.4f, 10.4f, -14.0f, -3.8f, -11.8f, 11.4f</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  },</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  weightsDesc));</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keyword">auto</span> bias = MakeTensor<int32_t, 1>(biasesDesc, std::vector<int32_t>{9250, 67500});</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  result = SimpleFullyConnectedTestImpl<T>(</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  workloadFactory,</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  memoryManager,</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  inputTensorInfo, outputTensorInfo,</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  weightsDesc, biasesDesc,</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  weights, bias, input,</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  biasEnabled, <a class="code" href="_cl_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  );</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <span class="keywordflow">if</span> (biasEnabled)</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>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 2>(outputTensorInfo,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  ConvertToDataType<ArmnnType>({80.f, 1460.f}, outputTensorInfo));</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  }</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  <span class="keywordflow">else</span></div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  {</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  result.outputExpected = MakeTensor<T, 2>(outputTensorInfo,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  ConvertToDataType<ArmnnType>({-107.04f, 110.f}, outputTensorInfo));</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</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="keywordflow">return</span> result;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</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">//</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment">// ArmNN variant of the AndroidNN fully_connected_float_large test.</span></div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="comment">//</span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="comment">// Tests the fully connected layer with large values, optionally transposing weights.</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="comment">// Note this is templated for consistency, but the nature of this tests makes it unlikely to be useful in Uint8 mode.</span></div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="comment">//</span></div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">template</span><armnn::DataType ArmnnType, <span class="keyword">typename</span> T = armnn::ResolveType<ArmnnType>></div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="_fully_connected_test_impl_8cpp.html#ac2fd4978ceeccf895121c47b47cbd237"> 148</a></span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> <a class="code" href="_fully_connected_test_impl_8cpp.html#ac2fd4978ceeccf895121c47b47cbd237">FullyConnectedLargeTestCommon</a>(</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">bool</span> transposeWeights,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  <span class="keywordtype">float</span> qScale = 0.0f,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  int32_t qOffset = 0)</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth = 1;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight = 1;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels = 5;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputNum = 1;</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 1;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputNum = 1;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="comment">// Define the tensor descriptors.</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo;</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> weightsDesc;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> biasesDesc;</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { inputNum, inputChannels, inputHeight, inputWidth };</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { outputNum, outputChannels };</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { inputChannels, outputChannels };</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="keywordflow">if</span> (transposeWeights)</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  {</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="namespacearmnn.html#a14d7f180bf51e86850305965c3707e07">std::swap</a>(weightsShape[0], weightsShape[1]);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  }</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> biasShape[] = { outputChannels };</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  inputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(4, inputShape, ArmnnType);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  outputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(2, outputShape, ArmnnType);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  weightsDesc = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(2, weightsShape, ArmnnType);</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  biasesDesc = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(1, biasShape, ArmnnType);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="comment">// Set quantization parameters if the requested type is a quantized type.</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">if</span>(armnn::IsQuantizedType<T>())</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(qScale);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a63cbc581012c957f9d68d224ddc3e43c">SetQuantizationOffset</a>(qOffset);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">SetQuantizationScale</a>(qScale);</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  outputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a63cbc581012c957f9d68d224ddc3e43c">SetQuantizationOffset</a>(qOffset);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> </div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<T, 2></a> result(outputTensorInfo);</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  boost::multi_array<T, 4> input = MakeTensor<T, 4>(inputTensorInfo,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  armnnUtils::QuantizedVector<T>({</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  1.0f, 10.0f, 100.0f, 1000.0f, 10000.0f,</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>  qScale, qOffset)</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> </div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  boost::multi_array<T, 2> weights = MakeTensor<T, 2>(weightsDesc,</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  armnnUtils::QuantizedVector<T>({</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  2.0f, 3.0f, 4.0f, 5.0f, 6.0f</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>  qScale, qOffset)</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  );</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>  std::vector<T> biasValues({900000.f});</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  boost::multi_array<T, 1> bias = MakeTensor<T, 1>(biasesDesc, biasValues);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  result = SimpleFullyConnectedTestImpl<T>(</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  workloadFactory,</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  memoryManager,</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  inputTensorInfo, outputTensorInfo,</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  weightsDesc, biasesDesc,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  weights, bias, input,</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keyword">true</span>, transposeWeights</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  );</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>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<T, 2>(outputTensorInfo,</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  armnnUtils::QuantizedVector<T>({ 965432.0f }, qScale, qOffset));</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">return</span> result;</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> </div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> <span class="comment">//</span></div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> <span class="comment">// Explicit template specializations</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> <span class="comment">//</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="keyword">template</span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<armnn::ResolveType<armnn::DataType::QAsymmU8></a>, 2></div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> FullyConnectedTest<armnn::DataType::QAsymmU8>(</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordtype">bool</span> biasEnabled);</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> </div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">template</span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<armnn::ResolveType<armnn::DataType::QSymmS16></a>, 2></div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> FullyConnectedTest<armnn::DataType::QSymmS16>(</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="keywordtype">bool</span> biasEnabled);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="comment">//</span></div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="comment">// Implementation functions</span></div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="comment">//</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"><a class="line" href="_fully_connected_test_impl_8hpp.html#a9aa238fbd4c6a6d1259b31d2a51c93b8"> 247</a></span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<float, 2></a> <a class="code" href="_fully_connected_test_impl_8cpp.html#a9aa238fbd4c6a6d1259b31d2a51c93b8">FullyConnectedFloat32Test</a>(</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordtype">bool</span> biasEnabled,</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <span class="keywordtype">bool</span> transposeWeights)</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputWidth = 1;</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputHeight = 1;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputChannels = 5;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputNum = 2;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> </div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputChannels = 3;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputNum = 2;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="comment">// Define the tensor descriptors.</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo;</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> weightsDesc;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> biasesDesc;</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inputShape[] = { inputNum, inputChannels, inputHeight, inputWidth };</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outputShape[] = { outputNum, outputChannels };</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> weightsShape[] = { inputChannels, outputChannels };</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">if</span> (transposeWeights)</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  {</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <a class="code" href="namespacearmnn.html#a14d7f180bf51e86850305965c3707e07">std::swap</a>(weightsShape[0], weightsShape[1]);</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  }</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>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> biasShape[] = { outputChannels };</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  inputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(4, inputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  outputTensorInfo = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(2, outputShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  weightsDesc = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(2, weightsShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  biasesDesc = <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a>(1, biasShape, <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a>);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> </div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <a class="code" href="struct_layer_test_result.html">LayerTestResult<float, 2></a> result(outputTensorInfo);</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::multi_array<float, 4> input = MakeTensor<float, 4>(inputTensorInfo, std::vector<float>(</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>  1.0f, 2.0f, 3.0f, 4.0f, 5.0f,</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  5.0f, 4.0f, 3.0f, 2.0f, 1.0f</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  })</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  );</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span> </div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  boost::multi_array<float, 2> weights = MakeTensor<float, 2>(weightsDesc, std::vector<float>(</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  {</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  .5f, 2.f, .5f,</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  .5f, 2.f, 1.f,</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  .5f, 2.f, 2.f,</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  .5f, 2.f, 3.f,</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  .5f, 2.f, 4.f</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  }));</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> </div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">if</span> (transposeWeights)</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  {</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  weights = MakeTensor<float, 2>(weightsDesc, std::vector<float>(</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>  .5f, .5f, .5f, .5f, .5f,</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  2.f, 2.f, 2.f, 2.f, 2.f,</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  .5f, 1.f, 2.f, 3.f, 4.f</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  }));</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span> </div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  std::vector<float> biasValues({0.f, 0.f, 0.f});</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">if</span> (biasEnabled)</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  {</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  biasValues = std::vector<float>({10.f, 20.f, 30.f});</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>  boost::multi_array<float, 1> bias = MakeTensor<float, 1>(biasesDesc, biasValues);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  result = SimpleFullyConnectedTestImpl<float>(</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  workloadFactory,</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  memoryManager,</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  inputTensorInfo, outputTensorInfo,</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  weightsDesc, biasesDesc,</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  weights, bias, input,</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  biasEnabled, transposeWeights</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  );</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>  result.<a class="code" href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">outputExpected</a> = MakeTensor<float, 2>(outputTensorInfo, std::vector<float>(</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  {</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  0.5f + 1.0f + 1.5f + 2.0f + 2.5f + biasValues[0],</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  2.0f + 4.0f + 6.0f + 8.0f + 10.f + biasValues[1],</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  0.5f + 2.0f + 6.0f + 12.f + 20.f + biasValues[2],</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>  2.5f + 2.0f + 1.5f + 1.0f + 0.5f + biasValues[0],</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  10.0f + 8.0f + 6.0f + 4.0f + 2.f + biasValues[1],</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  2.5f + 4.0f + 6.0f + 6.f + 4.f + biasValues[2]</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  })</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> </div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> }</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00344"></a><span class="lineno"><a class="line" href="_fully_connected_test_impl_8hpp.html#a0fb6957126b671361ccdd80f3549faa9"> 344</a></span> <a class="code" href="struct_layer_test_result.html">LayerTestResult<float, 2></a> <a class="code" href="_fully_connected_test_impl_8cpp.html#a0fb6957126b671361ccdd80f3549faa9">FullyConnectedLargeTest</a>(</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <a class="code" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a>& workloadFactory,</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a>& memoryManager,</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordtype">bool</span> transposeWeights)</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> {</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordflow">return</span> FullyConnectedLargeTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, transposeWeights);</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span> }</div><div class="ttc" id="_tensor_copy_utils_8cpp_html_afaaca8c3f3a467d124bba44067d2afa8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#afaaca8c3f3a467d124bba44067d2afa8">AllocateAndCopyDataToITensorHandle</a></div><div class="ttdeci">void AllocateAndCopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.html#l00019">TensorCopyUtils.cpp:19</a></div></div> |
| 88 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8hpp_source.html#l00021">WorkloadFactory.hpp:21</a></div></div> |
| 89 | <div class="ttc" id="_tensor_copy_utils_8cpp_html_ae15f1a3c55d2db87683577de9fa4437c"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#ae15f1a3c55d2db87683577de9fa4437c">CopyDataToITensorHandle</a></div><div class="ttdeci">void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.html#l00009">TensorCopyUtils.cpp:9</a></div></div> |
| 90 | <div class="ttc" id="structarmnn_1_1_fully_connected_queue_descriptor_html_a3369b66d9316a773a41711e3f590c041"><div class="ttname"><a href="structarmnn_1_1_fully_connected_queue_descriptor.html#a3369b66d9316a773a41711e3f590c041">armnn::FullyConnectedQueueDescriptor::m_Weight</a></div><div class="ttdeci">const ConstCpuTensorHandle * m_Weight</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00149">WorkloadData.hpp:149</a></div></div> |
| 91 | <div class="ttc" id="structarmnn_1_1_queue_descriptor_with_parameters_html_aad91b9bbf7aa365d304febe79a3d1333"><div class="ttname"><a href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">armnn::QueueDescriptorWithParameters::m_Parameters</a></div><div class="ttdeci">LayerDescriptor m_Parameters</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00049">WorkloadData.hpp:49</a></div></div> |
| 92 | <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> |
| 93 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a15c140be4ddceffee16436f009d3ed94"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a15c140be4ddceffee16436f009d3ed94">armnn::IWorkloadFactory::CreateTensorHandle</a></div><div class="ttdeci">virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo, const bool IsMemoryManaged=true) const =0</div></div> |
| 94 | <div class="ttc" id="struct_layer_test_result_html"><div class="ttname"><a href="struct_layer_test_result.html">LayerTestResult</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00029">LayerTestResult.hpp:29</a></div></div> |
| 95 | <div class="ttc" id="_tensor_copy_utils_8cpp_html_a99b626c58a926dc7d6df78d22ec186c8"><div class="ttname"><a href="_tensor_copy_utils_8cpp.html#a99b626c58a926dc7d6df78d22ec186c8">CopyDataFromITensorHandle</a></div><div class="ttdeci">void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_copy_utils_8cpp_source.html#l00014">TensorCopyUtils.cpp:14</a></div></div> |
| 96 | <div class="ttc" id="structarmnn_1_1_fully_connected_queue_descriptor_html_ab3437cee6b0687812104fc1b37cbe8b3"><div class="ttname"><a href="structarmnn_1_1_fully_connected_queue_descriptor.html#ab3437cee6b0687812104fc1b37cbe8b3">armnn::FullyConnectedQueueDescriptor::m_Bias</a></div><div class="ttdeci">const ConstCpuTensorHandle * m_Bias</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00150">WorkloadData.hpp:150</a></div></div> |
| 97 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_html_a693b40e6b94e958836aeb0410ca186bd"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a></div><div class="ttdeci">std::shared_ptr< IMemoryManager > IMemoryManagerSharedPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html#l00090">IBackendInternal.hpp:90</a></div></div> |
| 98 | <div class="ttc" id="_cl_layer_tests_8cpp_html_a37f1c3ccc9fc906be85185350dd83d48"><div class="ttname"><a href="_cl_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a></div><div class="ttdeci">DataLayout::NCHW DataLayout::NCHW DataLayout::NHWC DataLayout::NHWC true</div><div class="ttdef"><b>Definition:</b> <a href="_cl_layer_tests_8cpp_source.html#l00176">ClLayerTests.cpp:176</a></div></div> |
| 99 | <div class="ttc" id="struct_layer_test_result_html_ac9d44d346bb7c89f7a7aa31d2bee947f"><div class="ttname"><a href="struct_layer_test_result.html#ac9d44d346bb7c89f7a7aa31d2bee947f">LayerTestResult::output</a></div><div class="ttdeci">boost::multi_array< T, n > output</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00040">LayerTestResult.hpp:40</a></div></div> |
| 100 | <div class="ttc" id="structarmnn_1_1_workload_info_html"><div class="ttname"><a href="structarmnn_1_1_workload_info.html">armnn::WorkloadInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_workload_info_8hpp_source.html#l00016">WorkloadInfo.hpp:16</a></div></div> |
| 101 | <div class="ttc" id="_fully_connected_test_impl_8cpp_html_ac2fd4978ceeccf895121c47b47cbd237"><div class="ttname"><a href="_fully_connected_test_impl_8cpp.html#ac2fd4978ceeccf895121c47b47cbd237">FullyConnectedLargeTestCommon</a></div><div class="ttdeci">LayerTestResult< T, 2 > FullyConnectedLargeTestCommon(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, bool transposeWeights, float qScale=0.0f, int32_t qOffset=0)</div><div class="ttdef"><b>Definition:</b> <a href="_fully_connected_test_impl_8cpp_source.html#l00148">FullyConnectedTestImpl.cpp:148</a></div></div> |
| 102 | <div class="ttc" id="structarmnn_1_1_fully_connected_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::FullyConnectedDescriptor::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#l00386">Descriptors.hpp:386</a></div></div> |
| 103 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::DataType::Float32</a></div></div> |
| 104 | <div class="ttc" id="namespacearmnn_html_a83c4a275acf59f62b8387f389d0929d5"><div class="ttname"><a href="namespacearmnn.html#a83c4a275acf59f62b8387f389d0929d5">armnn::GetBiasTypeFromWeightsType</a></div><div class="ttdeci">armnn::Optional< armnn::DataType > GetBiasTypeFromWeightsType(armnn::Optional< armnn::DataType > weightsType)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_support_rules_8hpp_source.html#l00014">LayerSupportRules.hpp:14</a></div></div> |
| 105 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a685739c4eb65a580e075282cfe6787d6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a685739c4eb65a580e075282cfe6787d6">armnn::TensorInfo::SetQuantizationScale</a></div><div class="ttdeci">void SetQuantizationScale(float scale)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00259">Tensor.cpp:259</a></div></div> |
| 106 | <div class="ttc" id="namespacearmnn_html_a14d7f180bf51e86850305965c3707e07"><div class="ttname"><a href="namespacearmnn.html#a14d7f180bf51e86850305965c3707e07">armnn::swap</a></div><div class="ttdeci">void swap(OriginsDescriptor &first, OriginsDescriptor &second)</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00342">Descriptors.cpp:342</a></div></div> |
| 107 | <div class="ttc" id="struct_layer_test_result_html_a73610ea6c776cc66e5a78dd842a39b8b"><div class="ttname"><a href="struct_layer_test_result.html#a73610ea6c776cc66e5a78dd842a39b8b">LayerTestResult::outputExpected</a></div><div class="ttdeci">boost::multi_array< T, n > outputExpected</div><div class="ttdef"><b>Definition:</b> <a href="_layer_test_result_8hpp_source.html#l00041">LayerTestResult.hpp:41</a></div></div> |
| 108 | <div class="ttc" id="_quantize_helper_8hpp_html"><div class="ttname"><a href="_quantize_helper_8hpp.html">QuantizeHelper.hpp</a></div></div> |
| 109 | <div class="ttc" id="structarmnn_1_1_fully_connected_descriptor_html_a281fcaec86e17c97f7b8402633f6b55a"><div class="ttname"><a href="structarmnn_1_1_fully_connected_descriptor.html#a281fcaec86e17c97f7b8402633f6b55a">armnn::FullyConnectedDescriptor::m_TransposeWeightMatrix</a></div><div class="ttdeci">bool m_TransposeWeightMatrix</div><div class="ttdoc">Enable/disable transpose weight matrix. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00388">Descriptors.hpp:388</a></div></div> |
| 110 | <div class="ttc" id="_fully_connected_test_impl_8cpp_html_a0fb6957126b671361ccdd80f3549faa9"><div class="ttname"><a href="_fully_connected_test_impl_8cpp.html#a0fb6957126b671361ccdd80f3549faa9">FullyConnectedLargeTest</a></div><div class="ttdeci">LayerTestResult< float, 2 > FullyConnectedLargeTest(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, bool transposeWeights)</div><div class="ttdef"><b>Definition:</b> <a href="_fully_connected_test_impl_8cpp_source.html#l00344">FullyConnectedTestImpl.cpp:344</a></div></div> |
| 111 | <div class="ttc" id="_fully_connected_test_impl_8cpp_html_a85031832a04444e2f419a746b4c59345"><div class="ttname"><a href="_fully_connected_test_impl_8cpp.html#a85031832a04444e2f419a746b4c59345">SimpleFullyConnectedTestImpl</a></div><div class="ttdeci">LayerTestResult< T, 2 > SimpleFullyConnectedTestImpl(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, armnn::TensorInfo inputTensorInfo, armnn::TensorInfo outputTensorInfo, armnn::TensorInfo weightsDesc, armnn::TensorInfo biasesDesc, boost::multi_array< T, 2 > &weights, boost::multi_array< B, 1 > &bias, boost::multi_array< T, 4 > &input, bool biasEnabled, bool transposeWeights)</div><div class="ttdef"><b>Definition:</b> <a href="_fully_connected_test_impl_8cpp_source.html#l00024">FullyConnectedTestImpl.cpp:24</a></div></div> |
| 112 | <div class="ttc" id="_workload_test_utils_8hpp_html"><div class="ttname"><a href="_workload_test_utils_8hpp.html">WorkloadTestUtils.hpp</a></div></div> |
| 113 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a1c193739520e08f686b347ff795ad2fe"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a1c193739520e08f686b347ff795ad2fe">armnn::IWorkloadFactory::CreateFullyConnected</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateFullyConnected(const FullyConnectedQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01208">WorkloadFactory.cpp:1208</a></div></div> |
| 114 | <div class="ttc" id="_fully_connected_test_impl_8hpp_html"><div class="ttname"><a href="_fully_connected_test_impl_8hpp.html">FullyConnectedTestImpl.hpp</a></div></div> |
| 115 | <div class="ttc" id="_fully_connected_test_impl_8cpp_html_a9aa238fbd4c6a6d1259b31d2a51c93b8"><div class="ttname"><a href="_fully_connected_test_impl_8cpp.html#a9aa238fbd4c6a6d1259b31d2a51c93b8">FullyConnectedFloat32Test</a></div><div class="ttdeci">LayerTestResult< float, 2 > FullyConnectedFloat32Test(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, bool biasEnabled, bool transposeWeights)</div><div class="ttdef"><b>Definition:</b> <a href="_fully_connected_test_impl_8cpp_source.html#l00247">FullyConnectedTestImpl.cpp:247</a></div></div> |
| 116 | <div class="ttc" id="_cpu_tensor_handle_8hpp_html"><div class="ttname"><a href="_cpu_tensor_handle_8hpp.html">CpuTensorHandle.hpp</a></div></div> |
| 117 | <div class="ttc" id="structarmnn_1_1_fully_connected_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_fully_connected_queue_descriptor.html">armnn::FullyConnectedQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00141">WorkloadData.hpp:141</a></div></div> |
| 118 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a63cbc581012c957f9d68d224ddc3e43c"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a63cbc581012c957f9d68d224ddc3e43c">armnn::TensorInfo::SetQuantizationOffset</a></div><div class="ttdeci">void SetQuantizationOffset(int32_t offset)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00275">Tensor.cpp:275</a></div></div> |
| 119 | <div class="ttc" id="classarmnn_1_1_scoped_cpu_tensor_handle_html"><div class="ttname"><a href="classarmnn_1_1_scoped_cpu_tensor_handle.html">armnn::ScopedCpuTensorHandle</a></div><div class="ttdef"><b>Definition:</b> <a href="_cpu_tensor_handle_8hpp_source.html#l00106">CpuTensorHandle.hpp:106</a></div></div> |
| 120 | <div class="ttc" id="_tensor_copy_utils_8hpp_html"><div class="ttname"><a href="_tensor_copy_utils_8hpp.html">TensorCopyUtils.hpp</a></div></div> |
| 121 | <div class="ttc" id="_tensor_helpers_8hpp_html"><div class="ttname"><a href="_tensor_helpers_8hpp.html">TensorHelpers.hpp</a></div></div> |
| 122 | <div class="ttc" id="_fully_connected_test_impl_8cpp_html_a25b72d9cbe9cca2c89ba997e6f2cfb87"><div class="ttname"><a href="_fully_connected_test_impl_8cpp.html#a25b72d9cbe9cca2c89ba997e6f2cfb87">FullyConnectedTest</a></div><div class="ttdeci">LayerTestResult< T, 2 > FullyConnectedTest(armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, bool biasEnabled)</div><div class="ttdef"><b>Definition:</b> <a href="_fully_connected_test_impl_8cpp_source.html#l00071">FullyConnectedTestImpl.cpp:71</a></div></div> |
| 123 | <div class="ttc" id="_data_type_utils_8hpp_html"><div class="ttname"><a href="_data_type_utils_8hpp.html">DataTypeUtils.hpp</a></div></div> |
| 124 | </div><!-- fragment --></div><!-- contents --> |
| 125 | </div><!-- doc-content --> |
| 126 | <!-- start footer part --> |
| 127 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 128 | <ul> |
| 129 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.html">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.html">test</a></li><li class="navelem"><a class="el" href="dir_99a30439342d160875b21dac3498ad7f.html">layerTests</a></li><li class="navelem"><a class="el" href="_fully_connected_test_impl_8cpp.html">FullyConnectedTestImpl.cpp</a></li> |
| 130 | <li class="footer">Generated on Fri Mar 13 2020 16:06:56 for ArmNN by |
| 131 | <a href="http://www.doxygen.org/index.html"> |
| 132 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 133 | </ul> |
| 134 | </div> |
| 135 | </body> |
| 136 | </html> |