blob: 9b172901c81876a37c437cddf129b03acfe595c5 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!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.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: GraphManager Class 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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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" async="async" 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="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">19.08</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classarm__compute_1_1graph_1_1_graph_manager.xhtml','');});
/* @license-end */
</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="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">GraphManager Class Reference<span class="mlabels"><span class="mlabel">final</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> manager class.
<a href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_graph_manager_8h_source.xhtml">GraphManager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4e7362b1e7b02f52aa94e150993fc3f8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a4e7362b1e7b02f52aa94e150993fc3f8">GraphManager</a> ()</td></tr>
<tr class="memdesc:a4e7362b1e7b02f52aa94e150993fc3f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default Constructor. <a href="#a4e7362b1e7b02f52aa94e150993fc3f8">More...</a><br /></td></tr>
<tr class="separator:a4e7362b1e7b02f52aa94e150993fc3f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cc3d6b903533416f56a1a30660c112e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a7cc3d6b903533416f56a1a30660c112e">GraphManager</a> (const <a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;)=delete</td></tr>
<tr class="memdesc:a7cc3d6b903533416f56a1a30660c112e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#a7cc3d6b903533416f56a1a30660c112e">More...</a><br /></td></tr>
<tr class="separator:a7cc3d6b903533416f56a1a30660c112e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa742e720f48c2a00c3c1d7cd2e13285c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#aa742e720f48c2a00c3c1d7cd2e13285c">GraphManager</a> (<a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:aa742e720f48c2a00c3c1d7cd2e13285c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default move constructor. <a href="#aa742e720f48c2a00c3c1d7cd2e13285c">More...</a><br /></td></tr>
<tr class="separator:aa742e720f48c2a00c3c1d7cd2e13285c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d30e27e2d3ceaa4f575d84881c099aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a5d30e27e2d3ceaa4f575d84881c099aa">operator=</a> (const <a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;)=delete</td></tr>
<tr class="memdesc:a5d30e27e2d3ceaa4f575d84881c099aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied (As this class contains pointers) <a href="#a5d30e27e2d3ceaa4f575d84881c099aa">More...</a><br /></td></tr>
<tr class="separator:a5d30e27e2d3ceaa4f575d84881c099aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e6bc69b0ad4be79c10f72debc89dfc8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a7e6bc69b0ad4be79c10f72debc89dfc8">operator=</a> (<a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a7e6bc69b0ad4be79c10f72debc89dfc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default move assignment operator. <a href="#a7e6bc69b0ad4be79c10f72debc89dfc8">More...</a><br /></td></tr>
<tr class="separator:a7e6bc69b0ad4be79c10f72debc89dfc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb8c302dc3cdebfe987751793a9aa4b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#afb8c302dc3cdebfe987751793a9aa4b5">finalize_graph</a> (<a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;graph, <a class="el" href="classarm__compute_1_1graph_1_1_graph_context.xhtml">GraphContext</a> &amp;ctx, <a class="el" href="classarm__compute_1_1graph_1_1_pass_manager.xhtml">PassManager</a> &amp;pm, <a class="el" href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35d">Target</a> target)</td></tr>
<tr class="memdesc:afb8c302dc3cdebfe987751793a9aa4b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finalizes a given graph. <a href="#afb8c302dc3cdebfe987751793a9aa4b5">More...</a><br /></td></tr>
<tr class="separator:afb8c302dc3cdebfe987751793a9aa4b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e179588488fda9085167dd70c29ff70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a4e179588488fda9085167dd70c29ff70">execute_graph</a> (<a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;graph)</td></tr>
<tr class="memdesc:a4e179588488fda9085167dd70c29ff70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes a graph. <a href="#a4e179588488fda9085167dd70c29ff70">More...</a><br /></td></tr>
<tr class="separator:a4e179588488fda9085167dd70c29ff70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51543e8fce4ed3bd248eedd96d333099"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml#a51543e8fce4ed3bd248eedd96d333099">invalidate_graph</a> (<a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;graph)</td></tr>
<tr class="memdesc:a51543e8fce4ed3bd248eedd96d333099"><td class="mdescLeft">&#160;</td><td class="mdescRight">Invalidates the graph execution workload. <a href="#a51543e8fce4ed3bd248eedd96d333099">More...</a><br /></td></tr>
<tr class="separator:a51543e8fce4ed3bd248eedd96d333099"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> manager class. </p>
<p>Manages a list of graphs along with their resources </p>
<p class="definition">Definition at line <a class="el" href="_graph_manager_8h_source.xhtml#l00045">45</a> of file <a class="el" href="_graph_manager_8h_source.xhtml">GraphManager.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a4e7362b1e7b02f52aa94e150993fc3f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e7362b1e7b02f52aa94e150993fc3f8">&#9670;&nbsp;</a></span>GraphManager() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Default Constructor. </p>
<p class="definition">Definition at line <a class="el" href="_graph_manager_8cpp_source.xhtml#l00041">41</a> of file <a class="el" href="_graph_manager_8cpp_source.xhtml">GraphManager.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; : _workloads()</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;{</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a7cc3d6b903533416f56a1a30660c112e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cc3d6b903533416f56a1a30660c112e">&#9670;&nbsp;</a></span>GraphManager() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prevent instances of this class from being copied (As this class contains pointers) </p>
</div>
</div>
<a id="aa742e720f48c2a00c3c1d7cd2e13285c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa742e720f48c2a00c3c1d7cd2e13285c">&#9670;&nbsp;</a></span>GraphManager() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Default move constructor. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4e179588488fda9085167dd70c29ff70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e179588488fda9085167dd70c29ff70">&#9670;&nbsp;</a></span>execute_graph()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void execute_graph </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Executes a graph. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> to execute </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_graph_manager_8cpp_source.xhtml#l00109">109</a> of file <a class="el" href="_graph_manager_8cpp_source.xhtml">GraphManager.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;{</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="comment">// Check if graph is finalized</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keyword">auto</span> it = _workloads.find(graph.id());</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a>(it == std::end(_workloads), <span class="stringliteral">&quot;Graph is not registered!&quot;</span>);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordflow">while</span>(<span class="keyword">true</span>)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="comment">// Call input accessors</span></div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#adff00463fb88bf00a886e0ecef6c0b6a">detail::call_all_input_node_accessors</a>(it-&gt;second))</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; }</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">// Run graph</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a7641ee3c6374e97c597ce6ee05545b59">detail::call_all_tasks</a>(it-&gt;second);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="comment">// Call output accessors</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#aaf7f4e1e2142802dd1c5a983ee156e77">detail::call_all_output_node_accessors</a>(it-&gt;second))</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; }</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; }</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_adff00463fb88bf00a886e0ecef6c0b6a"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#adff00463fb88bf00a886e0ecef6c0b6a">arm_compute::graph::detail::call_all_input_node_accessors</a></div><div class="ttdeci">bool call_all_input_node_accessors(ExecutionWorkload &amp;workload)</div><div class="ttdoc">Call all input node accessors.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00205">ExecutionHelpers.cpp:205</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a7641ee3c6374e97c597ce6ee05545b59"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a7641ee3c6374e97c597ce6ee05545b59">arm_compute::graph::detail::call_all_tasks</a></div><div class="ttdeci">void call_all_tasks(ExecutionWorkload &amp;workload)</div><div class="ttdoc">Executes all tasks of a workload.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00226">ExecutionHelpers.cpp:226</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_aaf7f4e1e2142802dd1c5a983ee156e77"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#aaf7f4e1e2142802dd1c5a983ee156e77">arm_compute::graph::detail::call_all_output_node_accessors</a></div><div class="ttdeci">bool call_all_output_node_accessors(ExecutionWorkload &amp;workload)</div><div class="ttdoc">Call all output node accessors.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00255">ExecutionHelpers.cpp:255</a></div></div>
<div class="ttc" id="_error_8h_xhtml_a5bbdcf574d3f5e412fa6a1117911e67b"><div class="ttname"><a href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond,...)</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00328">Error.h:328</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_error_8h_source.xhtml#l00328">ARM_COMPUTE_ERROR_ON_MSG</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00205">arm_compute::graph::detail::call_all_input_node_accessors()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00255">arm_compute::graph::detail::call_all_output_node_accessors()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00226">arm_compute::graph::detail::call_all_tasks()</a>, and <a class="el" href="_graph_8cpp_source.xhtml#l00169">Graph::id()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_stream_8cpp_source.xhtml#l00047">Stream::run()</a>.</p>
</div>
</div>
<a id="afb8c302dc3cdebfe987751793a9aa4b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb8c302dc3cdebfe987751793a9aa4b5">&#9670;&nbsp;</a></span>finalize_graph()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void finalize_graph </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph_context.xhtml">GraphContext</a> &amp;&#160;</td>
<td class="paramname"><em>ctx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_pass_manager.xhtml">PassManager</a> &amp;&#160;</td>
<td class="paramname"><em>pm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35d">Target</a>&#160;</td>
<td class="paramname"><em>target</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Finalizes a given graph. </p>
<dl class="section warning"><dt>Warning</dt><dd>At this given time finalize_graph will alter the passed graph, plan is to avoid by copying the graph structure, or provide another entry-point for this functionality as it will increase the memory requirements</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> to finalize </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">ctx</td><td><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> context </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">pm</td><td>Pass manager to use for any optimization passes </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">target</td><td>Execution target (Single target execution is currently supported) </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_graph_manager_8cpp_source.xhtml#l00046">46</a> of file <a class="el" href="_graph_manager_8cpp_source.xhtml">GraphManager.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="comment">// Check if graph has been registered</span></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordflow">if</span>(_workloads.find(graph.id()) != std::end(_workloads))</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <a class="code" href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a>(<span class="stringliteral">&quot;Graph is already registered!&quot;</span>);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; }</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// Force target to all graph construct</span></div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// TODO (COMPMID-2014) : Support heterogeneous execution</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <a class="code" href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35d">Target</a> forced_target = target;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">if</span>(!<a class="code" href="namespacearm__compute_1_1graph.xhtml#a6fd498c55b126dc3f078d38e8528effb">is_target_supported</a>(target))</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; forced_target = <a class="code" href="namespacearm__compute_1_1graph.xhtml#addc5c907a850a8b4d5458bd14f50c6f7">get_default_target</a>();</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="graph_2_logger_8h.xhtml#ab2d8baa35618bdad1d2814942355311e">ARM_COMPUTE_LOG_GRAPH_INFO</a>(<span class="stringliteral">&quot;Switching target from &quot;</span> &lt;&lt; target &lt;&lt; <span class="stringliteral">&quot; to &quot;</span> &lt;&lt; forced_target &lt;&lt; std::endl);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; }</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <a class="code" href="namespacearm__compute_1_1graph.xhtml#ac5712330ef2d40408efb4eae5665dc6e">force_target_to_graph</a>(graph, forced_target);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="comment">// Setup backend context</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="comment">// TODO (COMPMID-2014) : Setup all backends needed by the graph</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="namespacearm__compute_1_1graph.xhtml#aaef0102f19fc08d670766506b1a0b66e">setup_requested_backend_context</a>(ctx, forced_target);</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="comment">// Configure all tensors</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a68c7ebb89adc0c2b21449cd15f6e8eba">detail::configure_all_tensors</a>(graph);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; <span class="comment">// Apply all mutating passes</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; pm.run_all(graph);</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="comment">// Perform topological sort</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; std::vector&lt;NodeID&gt; topological_sorted_nodes = <a class="code" href="namespacearm__compute_1_1graph.xhtml#a14abdeb0f575e919aa6d586a95f23920">dfs</a>(graph);</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <span class="comment">// Validate all nodes</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#aa1d326a80e16fe0d4034637672d3b122">detail::validate_all_nodes</a>(graph);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="comment">// Configure all nodes</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keyword">auto</span> workload = <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a82d07d3d612bee8ff703226ff9d5d452">detail::configure_all_nodes</a>(graph, ctx, topological_sorted_nodes);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a>(workload.tasks.empty(), <span class="stringliteral">&quot;Could not configure all nodes!&quot;</span>);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">// Allocate const tensors and call accessors</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a3ef7cb28de6aea7026a1e8572639f300">detail::allocate_const_tensors</a>(graph);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a6f2e226c8b1e478b0162c3d9327b032e">detail::call_all_const_node_accessors</a>(graph);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="comment">// Prepare graph</span></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a17b5e700b317feb19fc3cefd23a1d8bb">detail::prepare_all_tasks</a>(workload);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="comment">// Setup tensor memory (Allocate all tensors or setup transition manager)</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">if</span>(ctx.config().use_transition_memory_manager)</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#aa94e771d284b85d820f94b797eecee98">detail::configure_transition_manager</a>(graph, ctx, workload);</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordflow">else</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="namespacearm__compute_1_1graph_1_1detail.xhtml#a766bb5055ef388455c941869b32981ed">detail::allocate_all_tensors</a>(graph);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; }</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="comment">// Finalize Graph context</span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; ctx.finalize();</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="comment">// Register graph</span></div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; _workloads.insert(std::make_pair(graph.id(), std::move(workload)));</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="graph_2_logger_8h.xhtml#a300d153929a99c7b571d4cda3f7987a5">ARM_COMPUTE_LOG_GRAPH_VERBOSE</a>(<span class="stringliteral">&quot;Created workload for graph with ID : &quot;</span> &lt;&lt; graph.id() &lt;&lt; std::endl);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;}</div><div class="ttc" id="namespacearm__compute_1_1graph_xhtml_ac5712330ef2d40408efb4eae5665dc6e"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#ac5712330ef2d40408efb4eae5665dc6e">arm_compute::graph::force_target_to_graph</a></div><div class="ttdeci">void force_target_to_graph(Graph &amp;g, Target target)</div><div class="ttdoc">Forces a single target to all graph constructs.</div><div class="ttdef"><b>Definition:</b> <a href="src_2graph_2_utils_8cpp_source.xhtml#l00056">Utils.cpp:56</a></div></div>
<div class="ttc" id="_error_8h_xhtml_a05b19c75afe9c24200a62b9724734bbd"><div class="ttname"><a href="_error_8h.xhtml#a05b19c75afe9c24200a62b9724734bbd">ARM_COMPUTE_ERROR</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR(...)</div><div class="ttdoc">Print the given message then throw an std::runtime_error.</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00261">Error.h:261</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_aa94e771d284b85d820f94b797eecee98"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#aa94e771d284b85d820f94b797eecee98">arm_compute::graph::detail::configure_transition_manager</a></div><div class="ttdeci">void configure_transition_manager(Graph &amp;g, GraphContext &amp;ctx, ExecutionWorkload &amp;workload)</div><div class="ttdoc">Configures transition manager and execution workload.</div><div class="ttdef"><b>Definition:</b> <a href="_cross_layer_memory_manager_helpers_8cpp_source.xhtml#l00235">CrossLayerMemoryManagerHelpers.cpp:235</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a766bb5055ef388455c941869b32981ed"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a766bb5055ef388455c941869b32981ed">arm_compute::graph::detail::allocate_all_tensors</a></div><div class="ttdeci">void allocate_all_tensors(Graph &amp;g)</div><div class="ttdoc">Allocates all tensors of a graph.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00119">ExecutionHelpers.cpp:119</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a17b5e700b317feb19fc3cefd23a1d8bb"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a17b5e700b317feb19fc3cefd23a1d8bb">arm_compute::graph::detail::prepare_all_tasks</a></div><div class="ttdeci">void prepare_all_tasks(ExecutionWorkload &amp;workload)</div><div class="ttdoc">Prepares all tasks for execution.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00216">ExecutionHelpers.cpp:216</a></div></div>
<div class="ttc" id="graph_2_logger_8h_xhtml_ab2d8baa35618bdad1d2814942355311e"><div class="ttname"><a href="graph_2_logger_8h.xhtml#ab2d8baa35618bdad1d2814942355311e">ARM_COMPUTE_LOG_GRAPH_INFO</a></div><div class="ttdeci">#define ARM_COMPUTE_LOG_GRAPH_INFO(x)</div><div class="ttdef"><b>Definition:</b> <a href="graph_2_logger_8h_source.xhtml#l00054">Logger.h:54</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_addc5c907a850a8b4d5458bd14f50c6f7"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#addc5c907a850a8b4d5458bd14f50c6f7">arm_compute::graph::get_default_target</a></div><div class="ttdeci">Target get_default_target()</div><div class="ttdoc">Returns default target for execution.</div><div class="ttdef"><b>Definition:</b> <a href="src_2graph_2_utils_8cpp_source.xhtml#l00039">Utils.cpp:39</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a68c7ebb89adc0c2b21449cd15f6e8eba"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a68c7ebb89adc0c2b21449cd15f6e8eba">arm_compute::graph::detail::configure_all_tensors</a></div><div class="ttdeci">void configure_all_tensors(Graph &amp;g)</div><div class="ttdoc">Configures all nodes of a graph.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00055">ExecutionHelpers.cpp:55</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_aa1d326a80e16fe0d4034637672d3b122"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#aa1d326a80e16fe0d4034637672d3b122">arm_compute::graph::detail::validate_all_nodes</a></div><div class="ttdeci">void validate_all_nodes(Graph &amp;g)</div><div class="ttdoc">Validates all nodes.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00038">ExecutionHelpers.cpp:38</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_aaef0102f19fc08d670766506b1a0b66e"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#aaef0102f19fc08d670766506b1a0b66e">arm_compute::graph::setup_requested_backend_context</a></div><div class="ttdeci">void setup_requested_backend_context(GraphContext &amp;ctx, Target target)</div><div class="ttdoc">Setups requested backend context if it exists, is supported and hasn't been initialized already.</div><div class="ttdef"><b>Definition:</b> <a href="src_2graph_2_utils_8cpp_source.xhtml#l00107">Utils.cpp:107</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a6fd498c55b126dc3f078d38e8528effb"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a6fd498c55b126dc3f078d38e8528effb">arm_compute::graph::is_target_supported</a></div><div class="ttdeci">bool is_target_supported(Target target)</div><div class="ttdoc">Checks if a specific target is supported.</div><div class="ttdef"><b>Definition:</b> <a href="src_2graph_2_utils_8cpp_source.xhtml#l00034">Utils.cpp:34</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a6f2e226c8b1e478b0162c3d9327b032e"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a6f2e226c8b1e478b0162c3d9327b032e">arm_compute::graph::detail::call_all_const_node_accessors</a></div><div class="ttdeci">void call_all_const_node_accessors(Graph &amp;g)</div><div class="ttdoc">Call all const node accessors.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00192">ExecutionHelpers.cpp:192</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a31488d29805a596498c0234ae392d35d"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a31488d29805a596498c0234ae392d35d">arm_compute::graph::Target</a></div><div class="ttdeci">Target</div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2graph_2_types_8h_source.xhtml#l00089">Types.h:89</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_xhtml_a14abdeb0f575e919aa6d586a95f23920"><div class="ttname"><a href="namespacearm__compute_1_1graph.xhtml#a14abdeb0f575e919aa6d586a95f23920">arm_compute::graph::dfs</a></div><div class="ttdeci">std::vector&lt; NodeID &gt; dfs(Graph &amp;g)</div><div class="ttdoc">Depth first search traversal.</div><div class="ttdef"><b>Definition:</b> <a href="_topological_sort_8cpp_source.xhtml#l00127">TopologicalSort.cpp:127</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a82d07d3d612bee8ff703226ff9d5d452"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a82d07d3d612bee8ff703226ff9d5d452">arm_compute::graph::detail::configure_all_nodes</a></div><div class="ttdeci">ExecutionWorkload configure_all_nodes(Graph &amp;g, GraphContext &amp;ctx, const std::vector&lt; NodeID &gt; &amp;node_order)</div><div class="ttdoc">Configures all nodes of graph.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00132">ExecutionHelpers.cpp:132</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1graph_1_1detail_xhtml_a3ef7cb28de6aea7026a1e8572639f300"><div class="ttname"><a href="namespacearm__compute_1_1graph_1_1detail.xhtml#a3ef7cb28de6aea7026a1e8572639f300">arm_compute::graph::detail::allocate_const_tensors</a></div><div class="ttdeci">void allocate_const_tensors(Graph &amp;g)</div><div class="ttdoc">Allocates const tensor of a given graph.</div><div class="ttdef"><b>Definition:</b> <a href="_execution_helpers_8cpp_source.xhtml#l00098">ExecutionHelpers.cpp:98</a></div></div>
<div class="ttc" id="graph_2_logger_8h_xhtml_a300d153929a99c7b571d4cda3f7987a5"><div class="ttname"><a href="graph_2_logger_8h.xhtml#a300d153929a99c7b571d4cda3f7987a5">ARM_COMPUTE_LOG_GRAPH_VERBOSE</a></div><div class="ttdeci">#define ARM_COMPUTE_LOG_GRAPH_VERBOSE(x)</div><div class="ttdef"><b>Definition:</b> <a href="graph_2_logger_8h_source.xhtml#l00050">Logger.h:50</a></div></div>
<div class="ttc" id="_error_8h_xhtml_a5bbdcf574d3f5e412fa6a1117911e67b"><div class="ttname"><a href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond,...)</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00328">Error.h:328</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00119">arm_compute::graph::detail::allocate_all_tensors()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00098">arm_compute::graph::detail::allocate_const_tensors()</a>, <a class="el" href="_error_8h_source.xhtml#l00261">ARM_COMPUTE_ERROR</a>, <a class="el" href="_error_8h_source.xhtml#l00328">ARM_COMPUTE_ERROR_ON_MSG</a>, <a class="el" href="graph_2_logger_8h_source.xhtml#l00054">ARM_COMPUTE_LOG_GRAPH_INFO</a>, <a class="el" href="graph_2_logger_8h_source.xhtml#l00050">ARM_COMPUTE_LOG_GRAPH_VERBOSE</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00192">arm_compute::graph::detail::call_all_const_node_accessors()</a>, <a class="el" href="_graph_context_8cpp_source.xhtml#l00045">GraphContext::config()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00132">arm_compute::graph::detail::configure_all_nodes()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00055">arm_compute::graph::detail::configure_all_tensors()</a>, <a class="el" href="_cross_layer_memory_manager_helpers_8cpp_source.xhtml#l00235">arm_compute::graph::detail::configure_transition_manager()</a>, <a class="el" href="_topological_sort_8cpp_source.xhtml#l00127">arm_compute::graph::dfs()</a>, <a class="el" href="_graph_context_8cpp_source.xhtml#l00077">GraphContext::finalize()</a>, <a class="el" href="src_2graph_2_utils_8cpp_source.xhtml#l00056">arm_compute::graph::force_target_to_graph()</a>, <a class="el" href="src_2graph_2_utils_8cpp_source.xhtml#l00039">arm_compute::graph::get_default_target()</a>, <a class="el" href="_graph_8cpp_source.xhtml#l00169">Graph::id()</a>, <a class="el" href="src_2graph_2_utils_8cpp_source.xhtml#l00034">arm_compute::graph::is_target_supported()</a>, <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00216">arm_compute::graph::detail::prepare_all_tasks()</a>, <a class="el" href="_pass_manager_8cpp_source.xhtml#l00061">PassManager::run_all()</a>, <a class="el" href="src_2graph_2_utils_8cpp_source.xhtml#l00107">arm_compute::graph::setup_requested_backend_context()</a>, <a class="el" href="arm__compute_2graph_2_types_8h_source.xhtml#l00081">GraphConfig::use_transition_memory_manager</a>, and <a class="el" href="_execution_helpers_8cpp_source.xhtml#l00038">arm_compute::graph::detail::validate_all_nodes()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_stream_8cpp_source.xhtml#l00040">Stream::finalize()</a>.</p>
</div>
</div>
<a id="a51543e8fce4ed3bd248eedd96d333099"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51543e8fce4ed3bd248eedd96d333099">&#9670;&nbsp;</a></span>invalidate_graph()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void invalidate_graph </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml">Graph</a> &amp;&#160;</td>
<td class="paramname"><em>graph</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Invalidates the graph execution workload. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td><a class="el" href="classarm__compute_1_1graph_1_1_graph.xhtml" title="Graph class.">Graph</a> to invalidate </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="_graph_manager_8cpp_source.xhtml#l00134">134</a> of file <a class="el" href="_graph_manager_8cpp_source.xhtml">GraphManager.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;{</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">auto</span> it = _workloads.find(graph.id());</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <a class="code" href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a>(it == std::end(_workloads), <span class="stringliteral">&quot;Graph is not registered!&quot;</span>);</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; _workloads.erase(it);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;}</div><div class="ttc" id="_error_8h_xhtml_a5bbdcf574d3f5e412fa6a1117911e67b"><div class="ttname"><a href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond,...)</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00328">Error.h:328</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_error_8h_source.xhtml#l00328">ARM_COMPUTE_ERROR_ON_MSG</a>, and <a class="el" href="_graph_8cpp_source.xhtml#l00169">Graph::id()</a>.</p>
</div>
</div>
<a id="a5d30e27e2d3ceaa4f575d84881c099aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d30e27e2d3ceaa4f575d84881c099aa">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a>&amp; operator= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prevent instances of this class from being copied (As this class contains pointers) </p>
</div>
</div>
<a id="a7e6bc69b0ad4be79c10f72debc89dfc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e6bc69b0ad4be79c10f72debc89dfc8">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a>&amp; operator= </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a> &amp;&amp;&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Default move assignment operator. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>arm_compute/graph/<a class="el" href="_graph_manager_8h_source.xhtml">GraphManager.h</a></li>
<li>src/graph/<a class="el" href="_graph_manager_8cpp_source.xhtml">GraphManager.cpp</a></li>
</ul>
</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="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="namespacearm__compute_1_1graph.xhtml">graph</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1graph_1_1_graph_manager.xhtml">GraphManager</a></li>
<li class="footer">Generated on Mon Sep 2 2019 11:47:39 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>