IVGCVSW-3726 Upload ArmNN Doxygen files
* Upload current ArmNN Doxygen files
Signed-off-by: Ryan OShea <Ryan.OShea2@arm.com>
Change-Id: I8989ed16ee40a99a4495b100bd009cf3e24a7285
diff --git a/Documentation/_tensor_handle_strategy_test_8cpp.xhtml b/Documentation/_tensor_handle_strategy_test_8cpp.xhtml
new file mode 100644
index 0000000..052e30e
--- /dev/null
+++ b/Documentation/_tensor_handle_strategy_test_8cpp.xhtml
@@ -0,0 +1,202 @@
+<!-- Copyright (c) 2020 ARM Limited. -->
+<!-- -->
+<!-- SPDX-License-Identifier: MIT -->
+<!-- -->
+<!-- HTML header for doxygen 1.8.13-->
+<!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="robots" content="NOINDEX, NOFOLLOW" />
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+<title>ArmNN: src/armnn/test/TensorHandleStrategyTest.cpp 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>
+<script type="text/x-mathjax-config">
+ MathJax.Hub.Config({
+ extensions: ["tex2jax.js"],
+ jax: ["input/TeX","output/HTML-CSS"],
+});
+</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+<link href="stylesheet.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;">
+ <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">
+  <span id="projectnumber">20.02</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('_tensor_handle_strategy_test_8cpp.xhtml','');});
+</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">TensorHandleStrategyTest.cpp File Reference</div> </div>
+</div><!--header-->
+<div class="contents">
+<div class="textblock"><code>#include <boost/test/unit_test.hpp></code><br />
+<code>#include <<a class="el" href="_layer_visitor_base_8hpp_source.xhtml">armnn/LayerVisitorBase.hpp</a>></code><br />
+<code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_context_8hpp_source.xhtml">armnn/backends/IBackendContext.hpp</a>></code><br />
+<code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br />
+<code>#include <<a class="el" href="include_2armnn_2backends_2_i_memory_manager_8hpp_source.xhtml">armnn/backends/IMemoryManager.hpp</a>></code><br />
+<code>#include <<a class="el" href="include_2armnn_2backends_2_i_tensor_handle_factory_8hpp_source.xhtml">armnn/backends/ITensorHandleFactory.hpp</a>></code><br />
+<code>#include <<a class="el" href="_tensor_handle_factory_registry_8hpp_source.xhtml">backendsCommon/TensorHandleFactoryRegistry.hpp</a>></code><br />
+<code>#include <<a class="el" href="_optimization_8hpp_source.xhtml">optimizations/Optimization.hpp</a>></code><br />
+<code>#include <<a class="el" href="_network_8hpp_source.xhtml">Network.hpp</a>></code><br />
+<code>#include <<a class="el" href="_ignore_unused_8hpp_source.xhtml">armnn/utility/IgnoreUnused.hpp</a>></code><br />
+<code>#include <vector></code><br />
+<code>#include <string></code><br />
+</div>
+<p><a href="_tensor_handle_strategy_test_8cpp_source.xhtml">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:ac85858fa4c4f1c9574f249dcc3ac0cf5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_handle_strategy_test_8cpp.xhtml#ac85858fa4c4f1c9574f249dcc3ac0cf5">BOOST_AUTO_TEST_CASE</a> (RegisterFactories)</td></tr>
+<tr class="separator:ac85858fa4c4f1c9574f249dcc3ac0cf5"><td class="memSeparator" colspan="2"> </td></tr>
+<tr class="memitem:a3b686f41b00e6932d0295bc0ba350580"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="_tensor_handle_strategy_test_8cpp.xhtml#a3b686f41b00e6932d0295bc0ba350580">BOOST_AUTO_TEST_CASE</a> (TensorHandleSelectionStrategy)</td></tr>
+<tr class="separator:a3b686f41b00e6932d0295bc0ba350580"><td class="memSeparator" colspan="2"> </td></tr>
+</table>
+<h2 class="groupheader">Function Documentation</h2>
+<a id="ac85858fa4c4f1c9574f249dcc3ac0cf5"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ac85858fa4c4f1c9574f249dcc3ac0cf5">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[1/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">BOOST_AUTO_TEST_CASE </td>
+ <td>(</td>
+ <td class="paramtype">RegisterFactories </td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_tensor_handle_strategy_test_8cpp_source.xhtml#l00274">274</a> of file <a class="el" href="_tensor_handle_strategy_test_8cpp_source.xhtml">TensorHandleStrategyTest.cpp</a>.</p>
+<div class="fragment"><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>  TestBackendA backendA;</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  TestBackendB backendB;</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> </div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  BOOST_TEST(backendA.GetHandleFactoryPreferences()[0] == <span class="stringliteral">"TestHandleFactoryA1"</span>);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  BOOST_TEST(backendA.GetHandleFactoryPreferences()[1] == <span class="stringliteral">"TestHandleFactoryA2"</span>);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  BOOST_TEST(backendA.GetHandleFactoryPreferences()[2] == <span class="stringliteral">"TestHandleFactoryB1"</span>);</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="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> registry;</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  backendA.RegisterTensorHandleFactories(registry);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  backendB.RegisterTensorHandleFactories(registry);</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>  BOOST_TEST((registry.GetFactory(<span class="stringliteral">"Non-existing Backend"</span>) == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  BOOST_TEST((registry.GetFactory(<span class="stringliteral">"TestHandleFactoryA1"</span>) != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  BOOST_TEST((registry.GetFactory(<span class="stringliteral">"TestHandleFactoryA2"</span>) != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  BOOST_TEST((registry.GetFactory(<span class="stringliteral">"TestHandleFactoryB1"</span>) != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_handle_factory_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">armnn::TensorHandleFactoryRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_factory_registry_8hpp_source.xhtml#l00020">TensorHandleFactoryRegistry.hpp:20</a></div></div>
+</div><!-- fragment -->
+</div>
+</div>
+<a id="a3b686f41b00e6932d0295bc0ba350580"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#a3b686f41b00e6932d0295bc0ba350580">◆ </a></span>BOOST_AUTO_TEST_CASE() <span class="overload">[2/2]</span></h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">BOOST_AUTO_TEST_CASE </td>
+ <td>(</td>
+ <td class="paramtype">TensorHandleSelectionStrategy </td>
+ <td class="paramname"></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p class="definition">Definition at line <a class="el" href="_tensor_handle_strategy_test_8cpp_source.xhtml#l00293">293</a> of file <a class="el" href="_tensor_handle_strategy_test_8cpp_source.xhtml">TensorHandleStrategyTest.cpp</a>.</p>
+
+<p class="reference">References <a class="el" href="_graph_8cpp_source.xhtml#l00263">Graph::AddCompatibilityLayers()</a>, <a class="el" href="_graph_8hpp_source.xhtml#l00397">Graph::AddLayer()</a>, <a class="el" href="_profiler_tests_8cpp.xhtml#af7f71af5c6c124222dd1c42c5df892f4">BOOST_AUTO_TEST_SUITE_END()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00079">OutputSlot::Connect()</a>, <a class="el" href="namespacearmnn.xhtml#aff209afc1dc598da399e3e78617ce016ac366da48cc11956ae377a77751936852">armnn::CopyToTarget</a>, <a class="el" href="namespacearmnn.xhtml#aff209afc1dc598da399e3e78617ce016a78d1be0baa31e083ae8da99aaedaf650">armnn::DirectCompatibility</a>, <a class="el" href="namespacearmnn.xhtml#aff209afc1dc598da399e3e78617ce016a46e8b7bfd6fd3c0cb34a100478a39189">armnn::ExportToTarget</a>, <a class="el" href="_graph_8hpp_source.xhtml#l00039">Graph::ForEachLayer()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00182">OutputSlot::GetEdgeStrategyForConnection()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00310">Layer::GetInputSlot()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00312">Layer::GetOutputSlot()</a>, <a class="el" href="_layer_8cpp_source.xhtml#l00172">OutputSlot::GetTensorHandleFactoryId()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00259">Layer::GetType()</a>, <a class="el" href="namespacearmnn.xhtml#a56943a0946e5f15e5e58054b8e7a04a4a4dd48794eb3305a0f5aece88b111a97b">armnn::MemCopy</a>, <a class="el" href="namespacearmnn.xhtml#a56943a0946e5f15e5e58054b8e7a04a4a115bfc5d633eae55c67f9588acdd2bf9">armnn::MemImport</a>, <a class="el" href="_network_8cpp_source.xhtml#l00824">armnn::SelectTensorHandleStrategy()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00264">Layer::SetBackendId()</a>, and <a class="el" href="_graph_8hpp_source.xhtml#l00173">Graph::TopologicalSort()</a>.</p>
+<div class="fragment"><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>  <span class="keyword">auto</span> backendA = std::make_unique<TestBackendA>();</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keyword">auto</span> backendB = std::make_unique<TestBackendB>();</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keyword">auto</span> backendC = std::make_unique<TestBackendC>();</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keyword">auto</span> backendD = std::make_unique<TestBackendD>();</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">TensorHandleFactoryRegistry</a> registry;</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  backendA->RegisterTensorHandleFactories(registry);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  backendB->RegisterTensorHandleFactories(registry);</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  backendC->RegisterTensorHandleFactories(registry);</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  backendD->RegisterTensorHandleFactories(registry);</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>  <a class="code" href="namespacearmnn.xhtml#a9173495a61a0092b5f38b855f02c3585">BackendsMap</a> backends;</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  backends[<span class="stringliteral">"BackendA"</span>] = std::move(backendA);</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  backends[<span class="stringliteral">"BackendB"</span>] = std::move(backendB);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  backends[<span class="stringliteral">"BackendC"</span>] = std::move(backendC);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  backends[<span class="stringliteral">"BackendD"</span>] = std::move(backendD);</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>  <a class="code" href="classarmnn_1_1_graph.xhtml">armnn::Graph</a> graph;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a>* <span class="keyword">const</span> inputLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a>>(0, <span class="stringliteral">"input"</span>);</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  inputLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendA"</span>);</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span> </div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="structarmnn_1_1_softmax_descriptor.xhtml">armnn::SoftmaxDescriptor</a> smDesc;</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>* <span class="keyword">const</span> softmaxLayer1 = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>>(smDesc, <span class="stringliteral">"softmax1"</span>);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  softmaxLayer1-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendA"</span>);</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>* <span class="keyword">const</span> softmaxLayer2 = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>>(smDesc, <span class="stringliteral">"softmax2"</span>);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  softmaxLayer2-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendB"</span>);</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span> </div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>* <span class="keyword">const</span> softmaxLayer3 = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>>(smDesc, <span class="stringliteral">"softmax3"</span>);</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  softmaxLayer3-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendC"</span>);</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>* <span class="keyword">const</span> softmaxLayer4 = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a>>(smDesc, <span class="stringliteral">"softmax4"</span>);</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  softmaxLayer4-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendD"</span>);</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span> </div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <a class="code" href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a>* <span class="keyword">const</span> outputLayer = graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">AddLayer</a><<a class="code" href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a>>(0, <span class="stringliteral">"output"</span>);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  outputLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a>(<span class="stringliteral">"BackendA"</span>);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  inputLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">Connect</a>(softmaxLayer1-><a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  softmaxLayer1-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">Connect</a>(softmaxLayer2-><a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  softmaxLayer2-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">Connect</a>(softmaxLayer3-><a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  softmaxLayer3-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">Connect</a>(softmaxLayer4-><a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  softmaxLayer4-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">Connect</a>(outputLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0));</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>  graph.<a class="code" href="classarmnn_1_1_graph.xhtml#a9a7209345edfdb2b066b0ceb66414d7c">TopologicalSort</a>();</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>  std::vector<std::string> errors;</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keyword">auto</span> result = <a class="code" href="namespacearmnn.xhtml#a5d3468fb5880eb444cd25b55a86220ff">SelectTensorHandleStrategy</a>(graph, backends, registry, errors);</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span> </div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  BOOST_TEST(result.m_Error == <span class="keyword">false</span>);</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  BOOST_TEST(result.m_Warning == <span class="keyword">false</span>);</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <a class="code" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>& inputLayerOut = inputLayer-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0);</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <a class="code" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>& softmaxLayer1Out = softmaxLayer1-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <a class="code" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>& softmaxLayer2Out = softmaxLayer2-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0);</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <a class="code" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>& softmaxLayer3Out = softmaxLayer3-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <a class="code" href="classarmnn_1_1_output_slot.xhtml">OutputSlot</a>& softmaxLayer4Out = softmaxLayer4-><a class="code" href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0);</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="comment">// Check that the correct factory was selected</span></div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  BOOST_TEST(inputLayerOut.<a class="code" href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">GetTensorHandleFactoryId</a>() == <span class="stringliteral">"TestHandleFactoryA1"</span>);</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  BOOST_TEST(softmaxLayer1Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">GetTensorHandleFactoryId</a>() == <span class="stringliteral">"TestHandleFactoryB1"</span>);</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  BOOST_TEST(softmaxLayer2Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">GetTensorHandleFactoryId</a>() == <span class="stringliteral">"TestHandleFactoryB1"</span>);</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  BOOST_TEST(softmaxLayer3Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">GetTensorHandleFactoryId</a>() == <span class="stringliteral">"TestHandleFactoryC1"</span>);</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  BOOST_TEST(softmaxLayer4Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">GetTensorHandleFactoryId</a>() == <span class="stringliteral">"TestHandleFactoryD1"</span>);</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="comment">// Check that the correct strategy was selected</span></div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  BOOST_TEST((inputLayerOut.<a class="code" href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">GetEdgeStrategyForConnection</a>(0) == EdgeStrategy::DirectCompatibility));</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  BOOST_TEST((softmaxLayer1Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">GetEdgeStrategyForConnection</a>(0) == EdgeStrategy::DirectCompatibility));</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  BOOST_TEST((softmaxLayer2Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">GetEdgeStrategyForConnection</a>(0) == EdgeStrategy::CopyToTarget));</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  BOOST_TEST((softmaxLayer3Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">GetEdgeStrategyForConnection</a>(0) == EdgeStrategy::ExportToTarget));</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  BOOST_TEST((softmaxLayer4Out.<a class="code" href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">GetEdgeStrategyForConnection</a>(0) == EdgeStrategy::DirectCompatibility));</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> </div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  graph.<a class="code" href="classarmnn_1_1_graph.xhtml#ad1bbee7bf5f93b792675886f57d3ebe0">AddCompatibilityLayers</a>(backends, registry);</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span> </div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="comment">// Test for copy layers</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordtype">int</span> copyCount= 0;</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  graph.<a class="code" href="classarmnn_1_1_graph.xhtml#ad6521013ad981519904822f2ada2c4ec">ForEachLayer</a>([&copyCount](<a class="code" href="classarmnn_1_1_layer.xhtml">Layer</a>* layer)</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  {</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  <span class="keywordflow">if</span> (layer-><a class="code" href="classarmnn_1_1_layer.xhtml#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == LayerType::MemCopy)</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  {</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  copyCount++;</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  }</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  });</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  BOOST_TEST(copyCount == 1);</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <span class="comment">// Test for import layers</span></div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keywordtype">int</span> importCount= 0;</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  graph.<a class="code" href="classarmnn_1_1_graph.xhtml#ad6521013ad981519904822f2ada2c4ec">ForEachLayer</a>([&importCount](<a class="code" href="classarmnn_1_1_layer.xhtml">Layer</a> *layer)</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  {</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <span class="keywordflow">if</span> (layer-><a class="code" href="classarmnn_1_1_layer.xhtml#aaef29472862381822654ab6cbf7cba2a">GetType</a>() == LayerType::MemImport)</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  {</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  importCount++;</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  }</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  });</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  BOOST_TEST(importCount == 1);</div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span> }</div><div class="ttc" id="classarmnn_1_1_graph_xhtml_a7563c5b899e7d0ada08fd0fdb202f205"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a7563c5b899e7d0ada08fd0fdb202f205">armnn::Graph::AddLayer</a></div><div class="ttdeci">LayerT * AddLayer(Args &&... args)</div><div class="ttdoc">Adds a new layer, of type LayerType, to the graph constructed with the arguments passed. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00397">Graph.hpp:397</a></div></div>
+<div class="ttc" id="classarmnn_1_1_output_slot_xhtml_adcfb97035799ea4c043f9ef370714815"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#adcfb97035799ea4c043f9ef370714815">armnn::OutputSlot::Connect</a></div><div class="ttdeci">int Connect(InputSlot &destination)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.xhtml#l00079">Layer.cpp:79</a></div></div>
+<div class="ttc" id="classarmnn_1_1_output_slot_xhtml_a5b481a458c19fd3807b6e04b94b9b174"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#a5b481a458c19fd3807b6e04b94b9b174">armnn::OutputSlot::GetEdgeStrategyForConnection</a></div><div class="ttdeci">EdgeStrategy GetEdgeStrategyForConnection(unsigned int connectionIdx) const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.xhtml#l00182">Layer.cpp:182</a></div></div>
+<div class="ttc" id="classarmnn_1_1_layer_xhtml_a3f6ad59212fa8a47c9265162fff8a274"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#a3f6ad59212fa8a47c9265162fff8a274">armnn::Layer::SetBackendId</a></div><div class="ttdeci">void SetBackendId(const BackendId &id)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00264">Layer.hpp:264</a></div></div>
+<div class="ttc" id="namespacearmnn_xhtml_a5d3468fb5880eb444cd25b55a86220ff"><div class="ttname"><a href="namespacearmnn.xhtml#a5d3468fb5880eb444cd25b55a86220ff">armnn::SelectTensorHandleStrategy</a></div><div class="ttdeci">OptimizationResult SelectTensorHandleStrategy(Graph &optGraph, BackendsMap &backends, TensorHandleFactoryRegistry &registry, Optional< std::vector< std::string > &> errMessages)</div><div class="ttdef"><b>Definition:</b> <a href="_network_8cpp_source.xhtml#l00824">Network.cpp:824</a></div></div>
+<div class="ttc" id="classarmnn_1_1_layer_xhtml_acf8b8e23bf647836592982f97088d375"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">armnn::Layer::GetInputSlot</a></div><div class="ttdeci">const InputSlot & GetInputSlot(unsigned int index) const override</div><div class="ttdoc">Get a const input slot handle by slot index. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00310">Layer.hpp:310</a></div></div>
+<div class="ttc" id="classarmnn_1_1_output_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_output_layer.xhtml">armnn::OutputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_output_layer_8hpp_source.xhtml#l00013">OutputLayer.hpp:13</a></div></div>
+<div class="ttc" id="classarmnn_1_1_graph_xhtml_ad6521013ad981519904822f2ada2c4ec"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#ad6521013ad981519904822f2ada2c4ec">armnn::Graph::ForEachLayer</a></div><div class="ttdeci">void ForEachLayer(Func func) const</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00039">Graph.hpp:39</a></div></div>
+<div class="ttc" id="classarmnn_1_1_softmax_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_softmax_layer.xhtml">armnn::SoftmaxLayer</a></div><div class="ttdoc">This layer represents a softmax operation. </div><div class="ttdef"><b>Definition:</b> <a href="_softmax_layer_8hpp_source.xhtml#l00013">SoftmaxLayer.hpp:13</a></div></div>
+<div class="ttc" id="classarmnn_1_1_output_slot_xhtml"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml">armnn::OutputSlot</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00083">Layer.hpp:83</a></div></div>
+<div class="ttc" id="classarmnn_1_1_graph_xhtml"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml">armnn::Graph</a></div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00029">Graph.hpp:29</a></div></div>
+<div class="ttc" id="classarmnn_1_1_tensor_handle_factory_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_handle_factory_registry.xhtml">armnn::TensorHandleFactoryRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_handle_factory_registry_8hpp_source.xhtml#l00020">TensorHandleFactoryRegistry.hpp:20</a></div></div>
+<div class="ttc" id="classarmnn_1_1_input_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_input_layer.xhtml">armnn::InputLayer</a></div><div class="ttdoc">A layer user-provided data can be bound to (e.g. inputs, outputs). </div><div class="ttdef"><b>Definition:</b> <a href="_input_layer_8hpp_source.xhtml#l00013">InputLayer.hpp:13</a></div></div>
+<div class="ttc" id="classarmnn_1_1_layer_xhtml_aaef29472862381822654ab6cbf7cba2a"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#aaef29472862381822654ab6cbf7cba2a">armnn::Layer::GetType</a></div><div class="ttdeci">LayerType GetType() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00259">Layer.hpp:259</a></div></div>
+<div class="ttc" id="classarmnn_1_1_layer_xhtml_a0e36688a43c35668d8db5257274c68fe"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml#a0e36688a43c35668d8db5257274c68fe">armnn::Layer::GetOutputSlot</a></div><div class="ttdeci">const OutputSlot & GetOutputSlot(unsigned int index=0) const override</div><div class="ttdoc">Get the const output slot handle by slot index. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00312">Layer.hpp:312</a></div></div>
+<div class="ttc" id="classarmnn_1_1_output_slot_xhtml_af303cf872a3f95e29992e45224e4cf8e"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#af303cf872a3f95e29992e45224e4cf8e">armnn::OutputSlot::GetTensorHandleFactoryId</a></div><div class="ttdeci">ITensorHandleFactory::FactoryId GetTensorHandleFactoryId() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.xhtml#l00172">Layer.cpp:172</a></div></div>
+<div class="ttc" id="classarmnn_1_1_graph_xhtml_a9a7209345edfdb2b066b0ceb66414d7c"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#a9a7209345edfdb2b066b0ceb66414d7c">armnn::Graph::TopologicalSort</a></div><div class="ttdeci">Graph & TopologicalSort()</div><div class="ttdoc">Sorts layers in topological order and return this. </div><div class="ttdef"><b>Definition:</b> <a href="_graph_8hpp_source.xhtml#l00173">Graph.hpp:173</a></div></div>
+<div class="ttc" id="structarmnn_1_1_softmax_descriptor_xhtml"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.xhtml">armnn::SoftmaxDescriptor</a></div><div class="ttdoc">A SoftmaxDescriptor for the SoftmaxLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00123">Descriptors.hpp:123</a></div></div>
+<div class="ttc" id="classarmnn_1_1_graph_xhtml_ad1bbee7bf5f93b792675886f57d3ebe0"><div class="ttname"><a href="classarmnn_1_1_graph.xhtml#ad1bbee7bf5f93b792675886f57d3ebe0">armnn::Graph::AddCompatibilityLayers</a></div><div class="ttdeci">void AddCompatibilityLayers(std::map< BackendId, std::unique_ptr< class IBackendInternal >> &backends, TensorHandleFactoryRegistry &registry)</div><div class="ttdoc">Modifies the graph in-place, removing edges connecting layers using different compute devices...</div><div class="ttdef"><b>Definition:</b> <a href="_graph_8cpp_source.xhtml#l00263">Graph.cpp:263</a></div></div>
+<div class="ttc" id="classarmnn_1_1_layer_xhtml"><div class="ttname"><a href="classarmnn_1_1_layer.xhtml">armnn::Layer</a></div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00209">Layer.hpp:209</a></div></div>
+<div class="ttc" id="namespacearmnn_xhtml_a9173495a61a0092b5f38b855f02c3585"><div class="ttname"><a href="namespacearmnn.xhtml#a9173495a61a0092b5f38b855f02c3585">armnn::BackendsMap</a></div><div class="ttdeci">std::map< BackendId, std::unique_ptr< class IBackendInternal > > BackendsMap</div><div class="ttdef"><b>Definition:</b> <a href="_network_8hpp_source.xhtml#l00305">Network.hpp:305</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.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_e0a84d05c80a2ef4231141dcbbeac5c8.xhtml">armnn</a></li><li class="navelem"><a class="el" href="dir_9d86fd1fbecbedf5bdb69c7e7235fe5f.xhtml">test</a></li><li class="navelem"><a class="el" href="_tensor_handle_strategy_test_8cpp.xhtml">TensorHandleStrategyTest.cpp</a></li>
+ <li class="footer">Generated on Fri Mar 13 2020 16:09:14 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>