Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/armnn/Network.cpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_network_8cpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#namespaces">Namespaces</a> | |
| 99 | <a href="#func-members">Functions</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">Network.cpp File Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | <div class="textblock"><code>#include "<a class="el" href="_network_8hpp_source.xhtml">Network.hpp</a>"</code><br /> |
| 105 | <code>#include "<a class="el" href="_graph_8hpp_source.xhtml">Graph.hpp</a>"</code><br /> |
| 106 | <code>#include "<a class="el" href="_layer_8hpp_source.xhtml">Layer.hpp</a>"</code><br /> |
| 107 | <code>#include "<a class="el" href="_device_spec_8hpp_source.xhtml">DeviceSpec.hpp</a>"</code><br /> |
| 108 | <code>#include "<a class="el" href="_optimizer_8hpp_source.xhtml">Optimizer.hpp</a>"</code><br /> |
| 109 | <code>#include "<a class="el" href="_subgraph_view_selector_8hpp_source.xhtml">SubgraphViewSelector.hpp</a>"</code><br /> |
| 110 | <code>#include "<a class="el" href="_backend_settings_8hpp_source.xhtml">BackendSettings.hpp</a>"</code><br /> |
| 111 | <code>#include "<a class="el" href="_all_8hpp_source.xhtml">optimizations/All.hpp</a>"</code><br /> |
| 112 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 113 | <code>#include <<a class="el" href="_workload_factory_8hpp_source.xhtml">backendsCommon/WorkloadFactory.hpp</a>></code><br /> |
| 114 | <code>#include <<a class="el" href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml">armnn/backends/IBackendInternal.hpp</a>></code><br /> |
| 115 | <code>#include <<a class="el" href="_tensor_handle_factory_registry_8hpp_source.xhtml">backendsCommon/TensorHandleFactoryRegistry.hpp</a>></code><br /> |
| 116 | <code>#include <<a class="el" href="_exceptions_8hpp_source.xhtml">armnn/Exceptions.hpp</a>></code><br /> |
| 117 | <code>#include <<a class="el" href="_utils_8hpp_source.xhtml">armnn/Utils.hpp</a>></code><br /> |
| 118 | <code>#include <<a class="el" href="_types_utils_8hpp_source.xhtml">armnn/TypesUtils.hpp</a>></code><br /> |
| 119 | <code>#include <<a class="el" href="_backend_registry_8hpp_source.xhtml">armnn/BackendRegistry.hpp</a>></code><br /> |
| 120 | <code>#include <<a class="el" href="_logging_8hpp_source.xhtml">armnn/Logging.hpp</a>></code><br /> |
| 121 | <code>#include <<a class="el" href="_ignore_unused_8hpp_source.xhtml">armnn/utility/IgnoreUnused.hpp</a>></code><br /> |
| 122 | <code>#include <<a class="el" href="_profiling_service_8hpp_source.xhtml">ProfilingService.hpp</a>></code><br /> |
| 123 | <code>#include <fcntl.h></code><br /> |
| 124 | <code>#include <algorithm></code><br /> |
| 125 | <code>#include <fstream></code><br /> |
| 126 | <code>#include <memory></code><br /> |
| 127 | <code>#include <vector></code><br /> |
| 128 | <code>#include <boost/assert.hpp></code><br /> |
| 129 | <code>#include <boost/format.hpp></code><br /> |
| 130 | <code>#include <boost/numeric/conversion/converter_policies.hpp></code><br /> |
| 131 | <code>#include <boost/cast.hpp></code><br /> |
| 132 | </div> |
| 133 | <p><a href="_network_8cpp_source.xhtml">Go to the source code of this file.</a></p> |
| 134 | <table class="memberdecls"> |
| 135 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> |
| 136 | Namespaces</h2></td></tr> |
| 137 | <tr class="memitem:namespacearmnn"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml">armnn</a></td></tr> |
| 138 | <tr class="memdesc:namespacearmnn"><td class="mdescLeft"> </td><td class="mdescRight">Copyright (c) 2020 ARM Limited. <br /></td></tr> |
| 139 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | </table><table class="memberdecls"> |
| 141 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 142 | Functions</h2></td></tr> |
| 143 | <tr class="memitem:a7658f93d899c8646515a29370e6aa994"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a7658f93d899c8646515a29370e6aa994">ReportError</a> (const std::string &errorMessage, Optional< std::vector< std::string > &> errorMessages)</td></tr> |
| 144 | <tr class="separator:a7658f93d899c8646515a29370e6aa994"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:a38e626422579decc13e3ee37da1a84c9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a38e626422579decc13e3ee37da1a84c9">ReportWarning</a> (const std::string &warningMessage, Optional< std::vector< std::string > &> warningMessages)</td></tr> |
| 146 | <tr class="separator:a38e626422579decc13e3ee37da1a84c9"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:ae50fff9aa2a1ce46392d8641c10aa3bc"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ae50fff9aa2a1ce46392d8641c10aa3bc">ReturnWithError</a> (OptimizationResult res, const Layer *layer, const BackendSettings &backendSettings, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 148 | <tr class="separator:ae50fff9aa2a1ce46392d8641c10aa3bc"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:af002111f64aee648e3258247075cae36"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#af002111f64aee648e3258247075cae36">CheckScaleSetOnQuantizedType</a> (Layer *layer, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 150 | <tr class="separator:af002111f64aee648e3258247075cae36"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:a56f168327453ea4461cbc1c0ac7f15b6"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a56f168327453ea4461cbc1c0ac7f15b6">AttemptBackendAssignment</a> (BackendSettings &backendSettings, Graph &graph, Layer *layer, BackendId backend, DataType dataTypeIn, DataType dataTypeOut, const std::vector< BackendId > &availablePreferredBackends, std::string &reasonIfUnsupported, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 152 | <tr class="separator:a56f168327453ea4461cbc1c0ac7f15b6"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | <tr class="memitem:a8acab870a91373c720c9822b59ecf3b8"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a8acab870a91373c720c9822b59ecf3b8">AssignBackends</a> (OptimizedNetwork *optNetObjPtr, BackendSettings &backendSettings, Graph::Iterator &firstLayer, Graph::Iterator &lastLayer, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 154 | <tr class="separator:a8acab870a91373c720c9822b59ecf3b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a76dca645d0d0665f74e171bbc1901469"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a76dca645d0d0665f74e171bbc1901469">AssignBackends</a> (OptimizedNetwork *optNetObjPtr, BackendSettings &backendSettings, SubgraphView &subgraph, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 156 | <tr class="separator:a76dca645d0d0665f74e171bbc1901469"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a1ec6b4c20ed294a96cf94c33c24caaf5"><td class="memItemLeft" align="right" valign="top">BackendsMap </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a1ec6b4c20ed294a96cf94c33c24caaf5">CreateSupportedBackends</a> (TensorHandleFactoryRegistry &handleFactoryRegistry, BackendSettings &backendSettings)</td></tr> |
| 158 | <tr class="separator:a1ec6b4c20ed294a96cf94c33c24caaf5"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <tr class="memitem:ae97734279fd10b4c754cc15bc8ed9dad"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ae97734279fd10b4c754cc15bc8ed9dad">ApplyBackendOptimizations</a> (OptimizedNetwork *optNetObjPtr, BackendSettings &backendSettings, BackendsMap &backends, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 160 | <tr class="separator:ae97734279fd10b4c754cc15bc8ed9dad"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <tr class="memitem:a5ee4a1cca55f69b31e625c786655ed1a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a5ee4a1cca55f69b31e625c786655ed1a">RequiresCopy</a> (ITensorHandleFactory::FactoryId src, ITensorHandleFactory::FactoryId dst, TensorHandleFactoryRegistry &registry)</td></tr> |
| 162 | <tr class="separator:a5ee4a1cca55f69b31e625c786655ed1a"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | <tr class="memitem:accb1637c58e1523f740025e0d0e7c6dd"><td class="memItemLeft" align="right" valign="top">ITensorHandleFactory::FactoryId </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#accb1637c58e1523f740025e0d0e7c6dd">CalculateSlotOptionForInput</a> (BackendsMap &backends, OutputSlot &slot, TensorHandleFactoryRegistry &registry)</td></tr> |
| 164 | <tr class="separator:accb1637c58e1523f740025e0d0e7c6dd"><td class="memSeparator" colspan="2"> </td></tr> |
| 165 | <tr class="memitem:ab46c7f5f4736d550ab0e5e05a0fff4a9"><td class="memItemLeft" align="right" valign="top">ITensorHandleFactory::FactoryId </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ab46c7f5f4736d550ab0e5e05a0fff4a9">CalculateSlotOptionForOutput</a> (BackendsMap &backends, OutputSlot &slot, TensorHandleFactoryRegistry &registry)</td></tr> |
| 166 | <tr class="separator:ab46c7f5f4736d550ab0e5e05a0fff4a9"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="memitem:a8d9f52bbb69750456acca06988beabda"><td class="memItemLeft" align="right" valign="top">ITensorHandleFactory::FactoryId </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a8d9f52bbb69750456acca06988beabda">CalculateSlotOption</a> (BackendsMap &backends, OutputSlot &outputSlot, TensorHandleFactoryRegistry &registry)</td></tr> |
| 168 | <tr class="separator:a8d9f52bbb69750456acca06988beabda"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:ab6ed577caec49def150e231c63af0d12"><td class="memItemLeft" align="right" valign="top">EdgeStrategy </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#ab6ed577caec49def150e231c63af0d12">CalculateEdgeStrategy</a> (BackendsMap &backends, ITensorHandleFactory::FactoryId srcFactoryId, const Layer &layer, const Layer &connectedLayer, TensorHandleFactoryRegistry &registry)</td></tr> |
| 170 | <tr class="separator:ab6ed577caec49def150e231c63af0d12"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | <tr class="memitem:a5d3468fb5880eb444cd25b55a86220ff"><td class="memItemLeft" align="right" valign="top">OptimizationResult </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a5d3468fb5880eb444cd25b55a86220ff">SelectTensorHandleStrategy</a> (Graph &optGraph, BackendsMap &backends, TensorHandleFactoryRegistry &registry, Optional< std::vector< std::string > &> errMessages)</td></tr> |
| 172 | <tr class="separator:a5d3468fb5880eb444cd25b55a86220ff"><td class="memSeparator" colspan="2"> </td></tr> |
| 173 | <tr class="memitem:a82e98ef05fd67036d1195ba17174d685"><td class="memItemLeft" align="right" valign="top">IOptimizedNetworkPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.xhtml#a82e98ef05fd67036d1195ba17174d685">Optimize</a> (const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())</td></tr> |
| 174 | <tr class="memdesc:a82e98ef05fd67036d1195ba17174d685"><td class="mdescLeft"> </td><td class="mdescRight">Create an optimized version of the network. <a href="namespacearmnn.xhtml#a82e98ef05fd67036d1195ba17174d685">More...</a><br /></td></tr> |
| 175 | <tr class="separator:a82e98ef05fd67036d1195ba17174d685"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | </table> |
| 177 | </div><!-- contents --> |
| 178 | </div><!-- doc-content --> |
| 179 | <!-- start footer part --> |
| 180 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 181 | <ul> |
| 182 | <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="_network_8cpp.xhtml">Network.cpp</a></li> |
| 183 | <li class="footer">Generated on Fri Mar 13 2020 16:09:13 for ArmNN by |
| 184 | <a href="http://www.doxygen.org/index.html"> |
| 185 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 186 | </ul> |
| 187 | </div> |
| 188 | </body> |
| 189 | </html> |