blob: e1049200e605acbe9babee926a33082682ee2aeb [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: src/backends/backendsCommon/test/layerTests/LogSoftmaxTestImpl.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ArmNN
&#160;<span id="projectnumber">NotReleased</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_log_softmax_test_impl_8hpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">LogSoftmaxTestImpl.hpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_layer_test_result_8hpp_source.html">LayerTestResult.hpp</a>&quot;</code><br />
<code>#include &lt;<a class="el" href="_resolve_type_8hpp_source.html">ResolveType.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.html">armnn/backends/IBackendInternal.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_workload_factory_8hpp_source.html">backendsCommon/WorkloadFactory.hpp</a>&gt;</code><br />
</div>
<p><a href="_log_softmax_test_impl_8hpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a43d9a2ddae53c0ce8d39131e199ea281"><td class="memTemplParams" colspan="2">template&lt;armnn::DataType ArmnnType, typename T = armnn::ResolveType&lt;ArmnnType&gt;&gt; </td></tr>
<tr class="memitem:a43d9a2ddae53c0ce8d39131e199ea281"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt; T, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_log_softmax_test_impl_8hpp.html#a43d9a2ddae53c0ce8d39131e199ea281">LogSoftmaxTest1</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;memoryManager)</td></tr>
<tr class="separator:a43d9a2ddae53c0ce8d39131e199ea281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae56886d29ed5fa981f5df156bb651df"><td class="memTemplParams" colspan="2">template&lt;armnn::DataType ArmnnType, typename T = armnn::ResolveType&lt;ArmnnType&gt;&gt; </td></tr>
<tr class="memitem:aae56886d29ed5fa981f5df156bb651df"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt; T, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_log_softmax_test_impl_8hpp.html#aae56886d29ed5fa981f5df156bb651df">LogSoftmaxTest2</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;memoryManager)</td></tr>
<tr class="separator:aae56886d29ed5fa981f5df156bb651df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f3566cdee1e8d80fe647d3535f491c4"><td class="memTemplParams" colspan="2">template&lt;armnn::DataType ArmnnType, typename T = armnn::ResolveType&lt;ArmnnType&gt;&gt; </td></tr>
<tr class="memitem:a5f3566cdee1e8d80fe647d3535f491c4"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt; T, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_log_softmax_test_impl_8hpp.html#a5f3566cdee1e8d80fe647d3535f491c4">LogSoftmaxTest3</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;memoryManager)</td></tr>
<tr class="separator:a5f3566cdee1e8d80fe647d3535f491c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af332c6b74251f903ef775d9788c44f7d"><td class="memTemplParams" colspan="2">template&lt;armnn::DataType ArmnnType, typename T = armnn::ResolveType&lt;ArmnnType&gt;&gt; </td></tr>
<tr class="memitem:af332c6b74251f903ef775d9788c44f7d"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt; T, 4 &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_log_softmax_test_impl_8hpp.html#af332c6b74251f903ef775d9788c44f7d">LogSoftmaxTest4</a> (<a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;workloadFactory, const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;memoryManager)</td></tr>
<tr class="separator:af332c6b74251f903ef775d9788c44f7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a43d9a2ddae53c0ce8d39131e199ea281"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43d9a2ddae53c0ce8d39131e199ea281">&#9670;&nbsp;</a></span>LogSoftmaxTest1()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt;T, 4&gt; LogSoftmaxTest1 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;&#160;</td>
<td class="paramname"><em>workloadFactory</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;&#160;</td>
<td class="paramname"><em>memoryManager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_log_softmax_test_impl_8cpp_source.html#l00070">70</a> of file <a class="el" href="_log_softmax_test_impl_8cpp_source.html">LogSoftmaxTestImpl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00138">SoftmaxDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, and <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters&lt; LayerDescriptor &gt;::m_Parameters</a>.</p>
<div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;{</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> inputOutputShape{1, 1, 2, 4};</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; std::vector&lt;float&gt; inputValues</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; 0.f, -6.f, 2.f, 4.f,</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; 3.f, -2.f, 10.f, 1.f</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; };</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; std::vector&lt;float&gt; expectedOutputValues</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; {</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; -4.14297f, -10.14297f, -2.14297f, -0.14297f,</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; -7.00104f, -12.00104f, -0.00105f, -9.00104f</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; };</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a> = 1.0f; <span class="comment">// default beta</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = -1; <span class="comment">// default axis</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordflow">return</span> LogSoftmaxTestImpl&lt;ArmnnType, 4&gt;(</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; workloadFactory,</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; memoryManager,</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; inputTensorInfo,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; outputTensorInfo,</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; inputValues,</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; expectedOutputValues,</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; descriptor);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;}</div><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>
<div class="ttc" id="structarmnn_1_1_log_softmax_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00321">WorkloadData.hpp:321</a></div></div>
<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>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::SoftmaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00138">Descriptors.hpp:138</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aae56886d29ed5fa981f5df156bb651df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae56886d29ed5fa981f5df156bb651df">&#9670;&nbsp;</a></span>LogSoftmaxTest2()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt;T, 4&gt; LogSoftmaxTest2 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;&#160;</td>
<td class="paramname"><em>workloadFactory</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;&#160;</td>
<td class="paramname"><em>memoryManager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_log_softmax_test_impl_8cpp_source.html#l00106">106</a> of file <a class="el" href="_log_softmax_test_impl_8cpp_source.html">LogSoftmaxTestImpl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00138">SoftmaxDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, and <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters&lt; LayerDescriptor &gt;::m_Parameters</a>.</p>
<div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;{</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> inputOutputShape{1, 1, 2, 4};</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; std::vector&lt;float&gt; inputValues</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; 0.f, -6.f, 2.f, 4.f,</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; 3.f, -2.f, 10.f, 1.f</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; };</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; std::vector&lt;float&gt; expectedOutputValues</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; -4.14297f, -10.14297f, -2.14297f, -0.14297f,</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; -7.00104f, -12.00104f, -0.00105f, -9.00104f</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; };</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a> = 1.0f; <span class="comment">// default beta</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 3; <span class="comment">// positive axis</span></div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordflow">return</span> LogSoftmaxTestImpl&lt;ArmnnType, 4&gt;(</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; workloadFactory,</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; memoryManager,</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; inputTensorInfo,</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; outputTensorInfo,</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; inputValues,</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; expectedOutputValues,</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; descriptor);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;}</div><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>
<div class="ttc" id="structarmnn_1_1_log_softmax_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00321">WorkloadData.hpp:321</a></div></div>
<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>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::SoftmaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00138">Descriptors.hpp:138</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a5f3566cdee1e8d80fe647d3535f491c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f3566cdee1e8d80fe647d3535f491c4">&#9670;&nbsp;</a></span>LogSoftmaxTest3()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt;T, 4&gt; LogSoftmaxTest3 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;&#160;</td>
<td class="paramname"><em>workloadFactory</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;&#160;</td>
<td class="paramname"><em>memoryManager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_log_softmax_test_impl_8cpp_source.html#l00142">142</a> of file <a class="el" href="_log_softmax_test_impl_8cpp_source.html">LogSoftmaxTestImpl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00138">SoftmaxDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, and <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters&lt; LayerDescriptor &gt;::m_Parameters</a>.</p>
<div class="fragment"><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;{</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> inputOutputShape{1, 1, 2, 4};</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; std::vector&lt;float&gt; inputValues</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; {</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; 0.0f, -0.6f, 0.2f, 0.4f,</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; 0.3f, -0.2f, 1.0f, 0.1f</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; };</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; std::vector&lt;float&gt; expectedOutputValues</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; {</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; -4.14297f, -10.14297f, -2.14297f, -0.14297f,</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; -7.00104f, -12.00104f, -0.00105f, -9.00104f</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; };</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a> = 10.0f; <span class="comment">// non-default beta</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = 3; <span class="comment">// positive axis</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keywordflow">return</span> LogSoftmaxTestImpl&lt;ArmnnType, 4&gt;(</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; workloadFactory,</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; memoryManager,</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; inputTensorInfo,</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; outputTensorInfo,</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; inputValues,</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; expectedOutputValues,</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; descriptor);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;}</div><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>
<div class="ttc" id="structarmnn_1_1_log_softmax_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00321">WorkloadData.hpp:321</a></div></div>
<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>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::SoftmaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00138">Descriptors.hpp:138</a></div></div>
</div><!-- fragment -->
</div>
</div>
<a id="af332c6b74251f903ef775d9788c44f7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af332c6b74251f903ef775d9788c44f7d">&#9670;&nbsp;</a></span>LogSoftmaxTest4()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_layer_test_result.html">LayerTestResult</a>&lt;T, 4&gt; LogSoftmaxTest4 </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_workload_factory.html">armnn::IWorkloadFactory</a> &amp;&#160;</td>
<td class="paramname"><em>workloadFactory</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classarmnn_1_1_i_backend_internal.html#a693b40e6b94e958836aeb0410ca186bd">armnn::IBackendInternal::IMemoryManagerSharedPtr</a> &amp;&#160;</td>
<td class="paramname"><em>memoryManager</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_log_softmax_test_impl_8cpp_source.html#l00178">178</a> of file <a class="el" href="_log_softmax_test_impl_8cpp_source.html">LogSoftmaxTestImpl.cpp</a>.</p>
<p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00138">SoftmaxDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, and <a class="el" href="_workload_data_8hpp_source.html#l00049">QueueDescriptorWithParameters&lt; LayerDescriptor &gt;::m_Parameters</a>.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;{</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> inputOutputShape{1, 1, 2, 4};</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> inputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> outputTensorInfo(inputOutputShape, ArmnnType);</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; std::vector&lt;float&gt; inputValues</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; {</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; 0.f, -6.f, 2.f, 4.f,</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; 3.f, -2.f, 10.f, 1.f</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; };</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; std::vector&lt;float&gt; expectedOutputValues</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; {</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; -3.048587f, -4.018149f, -8.000336f, -0.048587f,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; -0.048587f, -0.018149f, -0.000335f, -3.048587f</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; };</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; <a class="code" href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a> = 1.0f; <span class="comment">// default beta</span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; descriptor.<a class="code" href="structarmnn_1_1_queue_descriptor_with_parameters.html#aad91b9bbf7aa365d304febe79a3d1333">m_Parameters</a>.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a> = -2; <span class="comment">// negative axis</span></div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keywordflow">return</span> LogSoftmaxTestImpl&lt;ArmnnType, 4&gt;(</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; workloadFactory,</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; memoryManager,</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; inputTensorInfo,</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; outputTensorInfo,</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; inputValues,</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; expectedOutputValues,</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; descriptor);</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;}</div><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>
<div class="ttc" id="structarmnn_1_1_log_softmax_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_log_softmax_queue_descriptor.html">armnn::LogSoftmaxQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00321">WorkloadData.hpp:321</a></div></div>
<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>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div>
<div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div>
<div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::SoftmaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00138">Descriptors.hpp:138</a></div></div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<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="_log_softmax_test_impl_8hpp.html">LogSoftmaxTestImpl.hpp</a></li>
<li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>