diff options
author | Ryan OShea <Ryan.OShea2@arm.com> | 2020-03-13 16:26:19 +0000 |
---|---|---|
committer | Ryan OShea <Ryan.OShea2@arm.com> | 2020-03-13 16:26:19 +0000 |
commit | de36e4a9c299028e792c3a5bd99ad0816d806077 (patch) | |
tree | 6c71d89db68da1033bb422253cee2970580ed692 /Documentation/_common_test_utils_8hpp.html | |
parent | 78b26f024641e763c7252198339c83bad8c0982f (diff) | |
download | armnn-de36e4a9c299028e792c3a5bd99ad0816d806077.tar.gz |
IVGCVSW-3726 Upload ArmNN Doxygen files
* Upload current ArmNN Doxygen files
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285
Diffstat (limited to 'Documentation/_common_test_utils_8hpp.html')
-rw-r--r-- | Documentation/_common_test_utils_8hpp.html | 432 |
1 files changed, 432 insertions, 0 deletions
diff --git a/Documentation/_common_test_utils_8hpp.html b/Documentation/_common_test_utils_8hpp.html new file mode 100644 index 0000000000..edc6936cf9 --- /dev/null +++ b/Documentation/_common_test_utils_8hpp.html @@ -0,0 +1,432 @@ +<!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/CommonTestUtils.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 +  <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('_common_test_utils_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">CommonTestUtils.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> +<div class="textblock"><code>#include <<a class="el" href="_graph_8hpp_source.html">Graph.hpp</a>></code><br /> +<code>#include <<a class="el" href="_subgraph_view_8hpp_source.html">SubgraphView.hpp</a>></code><br /> +<code>#include <<a class="el" href="_subgraph_view_selector_8hpp_source.html">SubgraphViewSelector.hpp</a>></code><br /> +<code>#include <<a class="el" href="_backend_registry_8hpp_source.html">armnn/BackendRegistry.hpp</a>></code><br /> +<code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.html">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> +<code>#include <<a class="el" href="_test_utils_8hpp_source.html">test/TestUtils.hpp</a>></code><br /> +<code>#include <algorithm></code><br /> +</div> +<p><a href="_common_test_utils_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:a551d3e8e273f6ff0f4fc4b0b56e1895d"><td class="memTemplParams" colspan="2">template<typename CollectionType > </td></tr> +<tr class="memitem:a551d3e8e273f6ff0f4fc4b0b56e1895d"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#a551d3e8e273f6ff0f4fc4b0b56e1895d">AreEqual</a> (const CollectionType &lhs, const CollectionType &rhs)</td></tr> +<tr class="separator:a551d3e8e273f6ff0f4fc4b0b56e1895d"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a5fa64e793b38cf9074e6fcdb2c9c7293"><td class="memTemplParams" colspan="2">template<typename CollectionType > </td></tr> +<tr class="memitem:a5fa64e793b38cf9074e6fcdb2c9c7293"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#a5fa64e793b38cf9074e6fcdb2c9c7293">Contains</a> (const CollectionType &collection, const typename CollectionType::value_type &item)</td></tr> +<tr class="separator:a5fa64e793b38cf9074e6fcdb2c9c7293"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a34600ef61efcbbf11322f11ce2cfacab"><td class="memTemplParams" colspan="2">template<typename MapType > </td></tr> +<tr class="memitem:a34600ef61efcbbf11322f11ce2cfacab"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#a34600ef61efcbbf11322f11ce2cfacab">Contains</a> (const MapType &map, const typename MapType::key_type &key)</td></tr> +<tr class="separator:a34600ef61efcbbf11322f11ce2cfacab"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:acacca57727df8ccf5c5597e6026da814"><td class="memTemplParams" colspan="2">template<typename ConvolutionLayer > </td></tr> +<tr class="memitem:acacca57727df8ccf5c5597e6026da814"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#acacca57727df8ccf5c5597e6026da814">SetWeightAndBias</a> (ConvolutionLayer *layer, const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &weightInfo, const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &biasInfo)</td></tr> +<tr class="separator:acacca57727df8ccf5c5597e6026da814"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac0a6b75ad3de58ac7d36f88bd8866078"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">armnn::SubgraphView::InputSlots</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#ac0a6b75ad3de58ac7d36f88bd8866078">CreateInputsFrom</a> (const std::vector< <a class="el" href="classarmnn_1_1_layer.html">armnn::Layer</a> *> &layers)</td></tr> +<tr class="separator:ac0a6b75ad3de58ac7d36f88bd8866078"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aff493fee27236e9ddc581e48c4b931a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">armnn::SubgraphView::OutputSlots</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#aff493fee27236e9ddc581e48c4b931a9">CreateOutputsFrom</a> (const std::vector< <a class="el" href="classarmnn_1_1_layer.html">armnn::Layer</a> *> &layers)</td></tr> +<tr class="separator:aff493fee27236e9ddc581e48c4b931a9"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:abf999283bc03f1bafd01680149ed7e3e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">armnn::SubgraphView::SubgraphViewPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#abf999283bc03f1bafd01680149ed7e3e">CreateSubgraphViewFrom</a> (<a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">armnn::SubgraphView::InputSlots</a> &&inputs, <a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">armnn::SubgraphView::OutputSlots</a> &&outputs, <a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">armnn::SubgraphView::Layers</a> &&layers)</td></tr> +<tr class="separator:abf999283bc03f1bafd01680149ed7e3e"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a7a4090354279f08b1e27244bab25aa86"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#a7a4090354279f08b1e27244bab25aa86">CreateBackendObject</a> (const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> &backendId)</td></tr> +<tr class="separator:a7a4090354279f08b1e27244bab25aa86"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a46d07efd379e728fc3df18a88ec878b0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_common_test_utils_8hpp.html#a46d07efd379e728fc3df18a88ec878b0">MakeTensorShape</a> (unsigned int batches, unsigned int channels, unsigned int height, unsigned int width, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> layout)</td></tr> +<tr class="separator:a46d07efd379e728fc3df18a88ec878b0"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<h2 class="groupheader">Function Documentation</h2> +<a id="a551d3e8e273f6ff0f4fc4b0b56e1895d"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a551d3e8e273f6ff0f4fc4b0b56e1895d">◆ </a></span>AreEqual()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">bool AreEqual </td> + <td>(</td> + <td class="paramtype">const CollectionType & </td> + <td class="paramname"><em>lhs</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const CollectionType & </td> + <td class="paramname"><em>rhs</em> </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="_common_test_utils_8hpp_source.html#l00024">24</a> of file <a class="el" href="_common_test_utils_8hpp_source.html">CommonTestUtils.hpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="keywordflow">if</span> (lhs.size() != rhs.size())</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  }</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keyword">auto</span> lhs_it = std::find_if(lhs.begin(), lhs.end(), [&rhs](<span class="keyword">auto</span>& item)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keywordflow">return</span> std::find(rhs.begin(), rhs.end(), item) == rhs.end();</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  });</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> lhs_it == lhs.end();</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> }</div></div><!-- fragment --> +</div> +</div> +<a id="a5fa64e793b38cf9074e6fcdb2c9c7293"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a5fa64e793b38cf9074e6fcdb2c9c7293">◆ </a></span>Contains() <span class="overload">[1/2]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">bool Contains </td> + <td>(</td> + <td class="paramtype">const CollectionType & </td> + <td class="paramname"><em>collection</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const typename CollectionType::value_type & </td> + <td class="paramname"><em>item</em> </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="_common_test_utils_8hpp_source.html#l00041">41</a> of file <a class="el" href="_common_test_utils_8hpp_source.html">CommonTestUtils.hpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> {</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">return</span> std::find(collection.begin(), collection.end(), item) != collection.end();</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> }</div></div><!-- fragment --> +</div> +</div> +<a id="a34600ef61efcbbf11322f11ce2cfacab"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a34600ef61efcbbf11322f11ce2cfacab">◆ </a></span>Contains() <span class="overload">[2/2]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">bool Contains </td> + <td>(</td> + <td class="paramtype">const MapType & </td> + <td class="paramname"><em>map</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const typename MapType::key_type & </td> + <td class="paramname"><em>key</em> </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="_common_test_utils_8hpp_source.html#l00048">48</a> of file <a class="el" href="_common_test_utils_8hpp_source.html">CommonTestUtils.hpp</a>.</p> +<div class="fragment"><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span> map.find(key) != map.end();</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div></div><!-- fragment --> +</div> +</div> +<a id="a7a4090354279f08b1e27244bab25aa86"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a7a4090354279f08b1e27244bab25aa86">◆ </a></span>CreateBackendObject()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="namespacearmnn.html#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a> CreateBackendObject </td> + <td>(</td> + <td class="paramtype">const <a class="el" href="classarmnn_1_1_backend_id.html">armnn::BackendId</a> & </td> + <td class="paramname"><em>backendId</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p class="definition">Definition at line <a class="el" href="_common_test_utils_8cpp_source.html#l00045">45</a> of file <a class="el" href="_common_test_utils_8cpp_source.html">CommonTestUtils.cpp</a>.</p> + +<p class="reference">References <a class="el" href="_backend_registry_8cpp_source.html#l00013">armnn::BackendRegistryInstance()</a>.</p> + +<p class="reference">Referenced by <a class="el" href="_common_test_utils_8hpp_source.html#l00054">SetWeightAndBias()</a>.</p> +<div class="fragment"><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">auto</span>& backendRegistry = <a class="code" href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">auto</span> backendFactory = backendRegistry.GetFactory(backendId);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keyword">auto</span> backendObjPtr = backendFactory();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordflow">return</span> backendObjPtr;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> }</div><div class="ttc" id="namespacearmnn_html_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.html#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.html#l00013">BackendRegistry.cpp:13</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a id="ac0a6b75ad3de58ac7d36f88bd8866078"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ac0a6b75ad3de58ac7d36f88bd8866078">◆ </a></span>CreateInputsFrom()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">armnn::SubgraphView::InputSlots</a> CreateInputsFrom </td> + <td>(</td> + <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_layer.html">armnn::Layer</a> *> & </td> + <td class="paramname"><em>layers</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p class="definition">Definition at line <a class="el" href="_common_test_utils_8cpp_source.html#l00012">12</a> of file <a class="el" href="_common_test_utils_8cpp_source.html">CommonTestUtils.cpp</a>.</p> + +<p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.html#l00134">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_common_test_utils_8hpp_source.html#l00054">SetWeightAndBias()</a>.</p> +<div class="fragment"><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">SubgraphView::InputSlots</a> result;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& layer : layers)</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="keywordflow">for</span> (<span class="keyword">auto</span>&& it = layer->BeginInputSlots(); it != layer->EndInputSlots(); ++it)</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>  result.push_back(&(*it));</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  }</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  }</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> }</div><div class="ttc" id="classarmnn_1_1_subgraph_view_html_a5cc65e15002dbc33a5c8a7d6680e9a9d"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">armnn::SubgraphView::InputSlots</a></div><div class="ttdeci">std::vector< InputSlot * > InputSlots</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00038">SubgraphView.hpp:38</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a id="aff493fee27236e9ddc581e48c4b931a9"></a> +<h2 class="memtitle"><span class="permalink"><a href="#aff493fee27236e9ddc581e48c4b931a9">◆ </a></span>CreateOutputsFrom()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">armnn::SubgraphView::OutputSlots</a> CreateOutputsFrom </td> + <td>(</td> + <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_layer.html">armnn::Layer</a> *> & </td> + <td class="paramname"><em>layers</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> + +<p class="definition">Definition at line <a class="el" href="_common_test_utils_8cpp_source.html#l00025">25</a> of file <a class="el" href="_common_test_utils_8cpp_source.html">CommonTestUtils.cpp</a>.</p> + +<p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.html#l00134">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_common_test_utils_8hpp_source.html#l00054">SetWeightAndBias()</a>.</p> +<div class="fragment"><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <a class="code" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">SubgraphView::OutputSlots</a> result;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> && layer : layers)</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>&& it = layer->BeginOutputSlots(); it != layer->EndOutputSlots(); ++it)</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  result.push_back(&(*it));</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div><div class="ttc" id="classarmnn_1_1_subgraph_view_html_a78293334750ec5279eb9c96d56deaf08"><div class="ttname"><a href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">armnn::SubgraphView::OutputSlots</a></div><div class="ttdeci">std::vector< OutputSlot * > OutputSlots</div><div class="ttdef"><b>Definition:</b> <a href="_subgraph_view_8hpp_source.html#l00039">SubgraphView.hpp:39</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a id="abf999283bc03f1bafd01680149ed7e3e"></a> +<h2 class="memtitle"><span class="permalink"><a href="#abf999283bc03f1bafd01680149ed7e3e">◆ </a></span>CreateSubgraphViewFrom()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classarmnn_1_1_subgraph_view.html#a4684a457c7786484375f06e9ab2d2265">armnn::SubgraphView::SubgraphViewPtr</a> CreateSubgraphViewFrom </td> + <td>(</td> + <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a5cc65e15002dbc33a5c8a7d6680e9a9d">armnn::SubgraphView::InputSlots</a> && </td> + <td class="paramname"><em>inputs</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a78293334750ec5279eb9c96d56deaf08">armnn::SubgraphView::OutputSlots</a> && </td> + <td class="paramname"><em>outputs</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="classarmnn_1_1_subgraph_view.html#a74798938fdaeae75c8adfa4a7439e7f9">armnn::SubgraphView::Layers</a> && </td> + <td class="paramname"><em>layers</em> </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="_common_test_utils_8cpp_source.html#l00038">38</a> of file <a class="el" href="_common_test_utils_8cpp_source.html">CommonTestUtils.cpp</a>.</p> + +<p class="reference">Referenced by <a class="el" href="_subgraph_view_tests_8cpp_source.html#l00134">BOOST_AUTO_TEST_CASE()</a>, and <a class="el" href="_common_test_utils_8hpp_source.html#l00054">SetWeightAndBias()</a>.</p> +<div class="fragment"><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordflow">return</span> std::make_unique<SubgraphView>(std::move(inputs), std::move(outputs), std::move(layers));</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> }</div></div><!-- fragment --> +</div> +</div> +<a id="a46d07efd379e728fc3df18a88ec878b0"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a46d07efd379e728fc3df18a88ec878b0">◆ </a></span>MakeTensorShape()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a> MakeTensorShape </td> + <td>(</td> + <td class="paramtype">unsigned int </td> + <td class="paramname"><em>batches</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">unsigned int </td> + <td class="paramname"><em>channels</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">unsigned int </td> + <td class="paramname"><em>height</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">unsigned int </td> + <td class="paramname"><em>width</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype"><a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">armnn::DataLayout</a> </td> + <td class="paramname"><em>layout</em> </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="_common_test_utils_8cpp_source.html#l00054">54</a> of file <a class="el" href="_common_test_utils_8cpp_source.html">CommonTestUtils.cpp</a>.</p> + +<p class="reference">References <a class="el" href="_types_utils_8hpp_source.html#l00186">armnn::GetDataLayoutName()</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> + +<p class="reference">Referenced by <a class="el" href="_common_test_utils_8hpp_source.html#l00054">SetWeightAndBias()</a>, and <a class="el" href="_transpose_convolution2d_end_to_end_test_impl_8hpp_source.html#l00048">TransposeConvolution2dEndToEnd()</a>.</p> +<div class="fragment"><div class="line"><a name="l00059"></a><span class="lineno"> 59</span> {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.html">armnn</a>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">switch</span> (layout)</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>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a>:</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>{ batches, channels, height, width };</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordflow">case</span> <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">DataLayout::NHWC</a>:</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>{ batches, height, width, channels };</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(std::string(<span class="stringliteral">"Unsupported data layout: "</span>) + <a class="code" href="namespacearmnn.html#aeef70b7611ae71e97ab55c75ef72b210">GetDataLayoutName</a>(layout));</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> }</div><div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> +<div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div> +<div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> +<div class="ttc" id="namespacearmnn_html_aeef70b7611ae71e97ab55c75ef72b210"><div class="ttname"><a href="namespacearmnn.html#aeef70b7611ae71e97ab55c75ef72b210">armnn::GetDataLayoutName</a></div><div class="ttdeci">constexpr const char * GetDataLayoutName(DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_types_utils_8hpp_source.html#l00186">TypesUtils.hpp:186</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="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> +</div><!-- fragment --> +</div> +</div> +<a id="acacca57727df8ccf5c5597e6026da814"></a> +<h2 class="memtitle"><span class="permalink"><a href="#acacca57727df8ccf5c5597e6026da814">◆ </a></span>SetWeightAndBias()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">void SetWeightAndBias </td> + <td>(</td> + <td class="paramtype">ConvolutionLayer * </td> + <td class="paramname"><em>layer</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td> + <td class="paramname"><em>weightInfo</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td> + <td class="paramname"><em>biasInfo</em> </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="_common_test_utils_8hpp_source.html#l00054">54</a> of file <a class="el" href="_common_test_utils_8hpp_source.html">CommonTestUtils.hpp</a>.</p> + +<p class="reference">References <a class="el" href="_common_test_utils_8cpp_source.html#l00045">CreateBackendObject()</a>, <a class="el" href="_common_test_utils_8cpp_source.html#l00012">CreateInputsFrom()</a>, <a class="el" href="_common_test_utils_8cpp_source.html#l00025">CreateOutputsFrom()</a>, <a class="el" href="_common_test_utils_8cpp_source.html#l00038">CreateSubgraphViewFrom()</a>, and <a class="el" href="_common_test_utils_8cpp_source.html#l00054">MakeTensorShape()</a>.</p> +<div class="fragment"><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>  layer->m_Weight = std::make_unique<armnn::ScopedCpuTensorHandle>(weightInfo);</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  layer->m_Bias = std::make_unique<armnn::ScopedCpuTensorHandle>(biasInfo);</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>  layer->m_Weight->Allocate();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  layer->m_Bias->Allocate();</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> }</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="_common_test_utils_8hpp.html">CommonTestUtils.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> |