aboutsummaryrefslogtreecommitdiff
path: root/23.02/_reshape_operator_8cpp.xhtml
diff options
context:
space:
mode:
authorDavid Monahan <david.monahan@arm.com>2023-03-22 16:48:58 +0000
committerDavid Monahan <david.monahan@arm.com>2023-03-22 16:48:58 +0000
commitae050524109f1ce827962665436ef7430f2ac479 (patch)
treea087fe0c77570971dd7979f2757426c24e91afc7 /23.02/_reshape_operator_8cpp.xhtml
parent8d2ca734165a068478df7cffa46185680b05cd20 (diff)
downloadarmnn-ae050524109f1ce827962665436ef7430f2ac479.tar.gz
IVGCVSW-7255 Update Doxygen Documentation and publish on GitHub.
* Updating Doxygen documentation for 23.02 release. Signed-off-by: David Monahan <david.monahan@arm.com> Change-Id: I545574ff7664b4595d2fe6a91a3c35d2ad55df82
Diffstat (limited to '23.02/_reshape_operator_8cpp.xhtml')
-rw-r--r--23.02/_reshape_operator_8cpp.xhtml110
1 files changed, 82 insertions, 28 deletions
diff --git a/23.02/_reshape_operator_8cpp.xhtml b/23.02/_reshape_operator_8cpp.xhtml
index 695af7dcfe..25ea535b6e 100644
--- a/23.02/_reshape_operator_8cpp.xhtml
+++ b/23.02/_reshape_operator_8cpp.xhtml
@@ -8,7 +8,7 @@
<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="generator" content="Doxygen 1.8.17"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: src/backends/tosaCommon/operatorMappings/ReshapeOperator.cpp File Reference</title>
@@ -19,9 +19,6 @@
<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>
@@ -30,7 +27,8 @@
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
-</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
+</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>
@@ -51,18 +49,21 @@
</table>
</div>
<!-- end header part -->
-<!-- Generated by Doxygen 1.8.13 -->
+<!-- Generated by Doxygen 1.8.17 -->
<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(); });
});
-</script>
+/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
@@ -76,7 +77,9 @@ $(function() {
</div>
</div>
<script type="text/javascript">
-$(document).ready(function(){initNavTree('_reshape_operator_8cpp.xhtml','');});
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
+$(document).ready(function(){initNavTree('_reshape_operator_8cpp.xhtml',''); initResizable(); });
+/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
@@ -106,12 +109,12 @@ $(document).ready(function(){initNavTree('_reshape_operator_8cpp.xhtml','');});
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
-<tr class="memitem:a36088d87250e1e12172ce0e1160ba63f"><td class="memItemLeft" align="right" valign="top">TosaSerializationBasicBlock *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_reshape_operator_8cpp.xhtml#a36088d87250e1e12172ce0e1160ba63f">ConvertReshapeToTosaOperator</a> (const <a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> *layer, const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> *&gt; &amp;inputs, const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> *&gt; &amp;outputs, const <a class="el" href="structarmnn_1_1_reshape_descriptor.xhtml">ReshapeDescriptor</a> *reshapeDescriptor)</td></tr>
-<tr class="separator:a36088d87250e1e12172ce0e1160ba63f"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:afce169c8927468aab621fe3400a8d317"><td class="memItemLeft" align="right" valign="top">TosaSerializationBasicBlock *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_reshape_operator_8cpp.xhtml#afce169c8927468aab621fe3400a8d317">ConvertReshapeToTosaOperator</a> (const <a class="el" href="classarmnn_1_1_layer.xhtml">Layer</a> *layer, const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> * &gt; &amp;inputs, const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> * &gt; &amp;outputs, const <a class="el" href="structarmnn_1_1_reshape_descriptor.xhtml">ReshapeDescriptor</a> *reshapeDescriptor)</td></tr>
+<tr class="separator:afce169c8927468aab621fe3400a8d317"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
-<a id="a36088d87250e1e12172ce0e1160ba63f"></a>
-<h2 class="memtitle"><span class="permalink"><a href="#a36088d87250e1e12172ce0e1160ba63f">&#9670;&nbsp;</a></span>ConvertReshapeToTosaOperator()</h2>
+<a id="afce169c8927468aab621fe3400a8d317"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#afce169c8927468aab621fe3400a8d317">&#9670;&nbsp;</a></span>ConvertReshapeToTosaOperator()</h2>
<div class="memitem">
<div class="memproto">
@@ -125,13 +128,13 @@ Functions</h2></td></tr>
<tr>
<td class="paramkey"></td>
<td></td>
- <td class="paramtype">const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> *&gt; &amp;&#160;</td>
+ <td class="paramtype">const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>inputs</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
- <td class="paramtype">const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> *&gt; &amp;&#160;</td>
+ <td class="paramtype">const std::vector&lt; const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> * &gt; &amp;&#160;</td>
<td class="paramname"><em>outputs</em>, </td>
</tr>
<tr>
@@ -149,32 +152,83 @@ Functions</h2></td></tr>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_reshape_operator_8cpp_source.xhtml#l00008">8</a> of file <a class="el" href="_reshape_operator_8cpp_source.xhtml">ReshapeOperator.cpp</a>.</p>
-
+<div class="fragment"><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;{</div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; std::string inputName = std::string(<span class="stringliteral">&quot;input0_&quot;</span>);</div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; std::string outputName = std::string(<span class="stringliteral">&quot;output0_&quot;</span>);</div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; std::string blockName = std::string(<span class="stringliteral">&quot;Op_RESHAPE_block_&quot;</span>) + <a class="code" href="_tosa_operator_utils_8hpp.xhtml#aadc5d73bd0cb81999bcfdc62bce020e8">GetUniqueTosaMappingID</a>();</div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160; </div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <span class="comment">// If a layer is present then the block will be used for execution, so input and output names need to be determined</span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="comment">// using the previous and following layers so the graph is connected correctly. For validation this doesn&#39;t matter.</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keywordflow">if</span>(layer != <span class="keyword">nullptr</span>)</div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; {</div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">// Get the layers connected to the input slots and determine unique tensor names.</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <a class="code" href="classarmnn_1_1_layer.xhtml">Layer</a>&amp; connectedLayer = layer-&gt;<a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0).<a class="code" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>()-&gt;<a class="code" href="classarmnn_1_1_output_slot.xhtml#a7ddaf04177053a536f0e7be83a642bc6">GetOwningLayer</a>();</div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; inputName = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a1640c964a461e8580837a79829a5c197">GenerateUniqueName</a>(connectedLayer, 0);</div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// Determine unique output tensor name.</span></div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; outputName = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a246662c69dac647833be50ba6dcee024">GenerateUniqueOutputName</a>(*layer, 0);</div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; }</div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; TosaReshapeAttribute attribute(<a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(reshapeDescriptor-&gt;<a class="code" href="structarmnn_1_1_reshape_descriptor.xhtml#a1178f4dafdda81f59c15145ec327f7d9">m_TargetShape</a>));</div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
+<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">auto</span>* op = <span class="keyword">new</span> TosaSerializationOperator(Op_RESHAPE,</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; Attribute_ReshapeAttribute,</div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; &amp;attribute,</div>
+<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; {inputName},</div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; {outputName});</div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; std::vector&lt;TosaSerializationTensor*&gt; tensors;</div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; </div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="comment">// Only add input tensors if connected layer is an input layer.</span></div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="comment">// As intermediate or constant tensors will be created separately.</span></div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// There also can&#39;t be duplicate tensor.</span></div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordflow">if</span>(inputName.find(<span class="stringliteral">&quot;input0_&quot;</span>) != std::string::npos)</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; std::vector&lt;int32_t&gt; inputShape = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(inputs[0]-&gt;GetShape());</div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; DType inputDType = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a>(inputs[0]-&gt;GetDataType());</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; </div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; tensors.push_back(<span class="keyword">new</span> TosaSerializationTensor(inputName, inputShape, inputDType, {}));</div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; }</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; std::vector&lt;int32_t&gt; outputShape = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(outputs[0]-&gt;GetShape());</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; DType outputDType = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a>(outputs[0]-&gt;GetDataType());</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; tensors.push_back(<span class="keyword">new</span> TosaSerializationTensor(outputName, outputShape, outputDType, {}));</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// operatorInputNames/operatorOutputNames ends up being the same as</span></div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// blockInputNames/blockOutputNames for one-to-one ArmNN to TOSA mappings</span></div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> <span class="keyword">new</span> TosaSerializationBasicBlock(blockName, <span class="comment">// name</span></div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {op}, <span class="comment">// operators</span></div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; tensors, <span class="comment">// tensors</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {inputName}, <span class="comment">// inputs</span></div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {outputName}); <span class="comment">// outputs</span></div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div>
+</div><!-- fragment -->
<p class="reference">References <a class="el" href="_tosa_operator_utils_8hpp_source.xhtml#l00060">GenerateUniqueName()</a>, <a class="el" href="_tosa_operator_utils_8hpp_source.xhtml#l00079">GenerateUniqueOutputName()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00056">InputSlot::GetConnectedOutputSlot()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00324">Layer::GetInputSlot()</a>, <a class="el" href="_layer_8hpp_source.xhtml#l00119">OutputSlot::GetOwningLayer()</a>, <a class="el" href="_tosa_operator_utils_8hpp_source.xhtml#l00049">GetTosaTensorShape()</a>, <a class="el" href="_tosa_operator_utils_8hpp_source.xhtml#l00097">GetUniqueTosaMappingID()</a>, and <a class="el" href="_descriptors_8hpp_source.xhtml#l00986">ReshapeDescriptor::m_TargetShape</a>.</p>
<p class="reference">Referenced by <a class="el" href="_tosa_mappings_8cpp_source.xhtml#l00018">GetTosaMapping()</a>.</p>
-<div class="fragment"><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;{</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; std::string inputName = std::string(<span class="stringliteral">&quot;input0_&quot;</span>);</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; std::string outputName = std::string(<span class="stringliteral">&quot;output0_&quot;</span>);</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; std::string blockName = std::string(<span class="stringliteral">&quot;Op_RESHAPE_block_&quot;</span>) + <a class="code" href="_tosa_operator_utils_8hpp.xhtml#aadc5d73bd0cb81999bcfdc62bce020e8">GetUniqueTosaMappingID</a>();</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; <span class="comment">// If a layer is present then the block will be used for execution, so input and output names need to be determined</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; <span class="comment">// using the previous and following layers so the graph is connected correctly. For validation this doesn&#39;t matter.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; <span class="keywordflow">if</span>(layer != <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; <span class="comment">// Get the layers connected to the input slots and determine unique tensor names.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160; <a class="code" href="classarmnn_1_1_layer.xhtml">Layer</a>&amp; connectedLayer = layer-&gt;<a class="code" href="classarmnn_1_1_layer.xhtml#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0).<a class="code" href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">GetConnectedOutputSlot</a>()-&gt;<a class="code" href="classarmnn_1_1_output_slot.xhtml#a7ddaf04177053a536f0e7be83a642bc6">GetOwningLayer</a>();</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; inputName = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a1640c964a461e8580837a79829a5c197">GenerateUniqueName</a>(connectedLayer, 0);</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; <span class="comment">// Determine unique output tensor name.</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; outputName = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a246662c69dac647833be50ba6dcee024">GenerateUniqueOutputName</a>(*layer, 0);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; }</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; TosaReshapeAttribute attribute(<a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(reshapeDescriptor-&gt;<a class="code" href="structarmnn_1_1_reshape_descriptor.xhtml#a1178f4dafdda81f59c15145ec327f7d9">m_TargetShape</a>));</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <span class="keyword">auto</span>* op = <span class="keyword">new</span> TosaSerializationOperator(Op_RESHAPE,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; Attribute_ReshapeAttribute,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; &amp;attribute,</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; {inputName},</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; {outputName});</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; std::vector&lt;TosaSerializationTensor*&gt; tensors;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="comment">// Only add input tensors if connected layer is an input layer.</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="comment">// As intermediate or constant tensors will be created separately.</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="comment">// There also can&#39;t be duplicate tensor.</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordflow">if</span>(inputName.find(<span class="stringliteral">&quot;input0_&quot;</span>) != std::string::npos)</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; std::vector&lt;int32_t&gt; inputShape = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(inputs[0]-&gt;GetShape());</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; DType inputDType = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a>(inputs[0]-&gt;GetDataType());</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; tensors.push_back(<span class="keyword">new</span> TosaSerializationTensor(inputName, inputShape, inputDType, {}));</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; std::vector&lt;int32_t&gt; outputShape = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a>(outputs[0]-&gt;GetShape());</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; DType outputDType = <a class="code" href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a>(outputs[0]-&gt;GetDataType());</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; tensors.push_back(<span class="keyword">new</span> TosaSerializationTensor(outputName, outputShape, outputDType, {}));</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="comment">// operatorInputNames/operatorOutputNames ends up being the same as</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// blockInputNames/blockOutputNames for one-to-one ArmNN to TOSA mappings</span></div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">return</span> <span class="keyword">new</span> TosaSerializationBasicBlock(blockName, <span class="comment">// name</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {op}, <span class="comment">// operators</span></div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; tensors, <span class="comment">// tensors</span></div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {inputName}, <span class="comment">// inputs</span></div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; {outputName}); <span class="comment">// outputs</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div><div class="ttc" id="_tosa_operator_utils_8hpp_xhtml_a7d97964a65be4eb4a5b4109904f2e7f7"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a></div><div class="ttdeci">std::vector&lt; int32_t &gt; GetTosaTensorShape(const TensorShape &amp;shape)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00049">TosaOperatorUtils.hpp:49</a></div></div>
-<div class="ttc" id="classarmnn_1_1_output_slot_xhtml_a7ddaf04177053a536f0e7be83a642bc6"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#a7ddaf04177053a536f0e7be83a642bc6">armnn::OutputSlot::GetOwningLayer</a></div><div class="ttdeci">Layer &amp; GetOwningLayer() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00119">Layer.hpp:119</a></div></div>
-<div class="ttc" id="_tosa_operator_utils_8hpp_xhtml_a45d66f17ad6b0469e469f443b3e03226"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a></div><div class="ttdeci">DType ArmNNToDType(const DataType &amp;type)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00020">TosaOperatorUtils.hpp:20</a></div></div>
-<div class="ttc" id="_tosa_operator_utils_8hpp_xhtml_aadc5d73bd0cb81999bcfdc62bce020e8"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#aadc5d73bd0cb81999bcfdc62bce020e8">GetUniqueTosaMappingID</a></div><div class="ttdeci">std::string GetUniqueTosaMappingID()</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00097">TosaOperatorUtils.hpp:97</a></div></div>
-<div class="ttc" id="structarmnn_1_1_reshape_descriptor_xhtml_a1178f4dafdda81f59c15145ec327f7d9"><div class="ttname"><a href="structarmnn_1_1_reshape_descriptor.xhtml#a1178f4dafdda81f59c15145ec327f7d9">armnn::ReshapeDescriptor::m_TargetShape</a></div><div class="ttdeci">TensorShape m_TargetShape</div><div class="ttdoc">Target shape value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00986">Descriptors.hpp:986</a></div></div>
-<div class="ttc" id="_tosa_operator_utils_8hpp_xhtml_a1640c964a461e8580837a79829a5c197"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a1640c964a461e8580837a79829a5c197">GenerateUniqueName</a></div><div class="ttdeci">std::string GenerateUniqueName(const Layer &amp;layer, uint32_t layerSlot)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00060">TosaOperatorUtils.hpp:60</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 &amp; 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#l00324">Layer.hpp:324</a></div></div>
-<div class="ttc" id="_tosa_operator_utils_8hpp_xhtml_a246662c69dac647833be50ba6dcee024"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a246662c69dac647833be50ba6dcee024">GenerateUniqueOutputName</a></div><div class="ttdeci">std::string GenerateUniqueOutputName(const Layer &amp;layer, uint32_t layerSlot)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00079">TosaOperatorUtils.hpp:79</a></div></div>
-<div class="ttc" id="classarmnn_1_1_input_slot_xhtml_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">armnn::InputSlot::GetConnectedOutputSlot</a></div><div class="ttdeci">const OutputSlot * GetConnectedOutputSlot() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00056">Layer.hpp:56</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#l00217">Layer.hpp:217</a></div></div>
-</div><!-- fragment -->
+
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
+<div class="ttc" id="a_tosa_operator_utils_8hpp_xhtml_a246662c69dac647833be50ba6dcee024"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a246662c69dac647833be50ba6dcee024">GenerateUniqueOutputName</a></div><div class="ttdeci">std::string GenerateUniqueOutputName(const Layer &amp;layer, uint32_t layerSlot)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00079">TosaOperatorUtils.hpp:79</a></div></div>
+<div class="ttc" id="aclassarmnn_1_1_input_slot_xhtml_a9effd325a6d512a3f8ff4bd207d53255"><div class="ttname"><a href="classarmnn_1_1_input_slot.xhtml#a9effd325a6d512a3f8ff4bd207d53255">armnn::InputSlot::GetConnectedOutputSlot</a></div><div class="ttdeci">const OutputSlot * GetConnectedOutputSlot() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00056">Layer.hpp:56</a></div></div>
+<div class="ttc" id="aclassarmnn_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#l00217">Layer.hpp:217</a></div></div>
+<div class="ttc" id="a_tosa_operator_utils_8hpp_xhtml_a7d97964a65be4eb4a5b4109904f2e7f7"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a7d97964a65be4eb4a5b4109904f2e7f7">GetTosaTensorShape</a></div><div class="ttdeci">std::vector&lt; int32_t &gt; GetTosaTensorShape(const TensorShape &amp;shape)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00049">TosaOperatorUtils.hpp:49</a></div></div>
+<div class="ttc" id="a_tosa_operator_utils_8hpp_xhtml_a1640c964a461e8580837a79829a5c197"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a1640c964a461e8580837a79829a5c197">GenerateUniqueName</a></div><div class="ttdeci">std::string GenerateUniqueName(const Layer &amp;layer, uint32_t layerSlot)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00060">TosaOperatorUtils.hpp:60</a></div></div>
+<div class="ttc" id="aclassarmnn_1_1_output_slot_xhtml_a7ddaf04177053a536f0e7be83a642bc6"><div class="ttname"><a href="classarmnn_1_1_output_slot.xhtml#a7ddaf04177053a536f0e7be83a642bc6">armnn::OutputSlot::GetOwningLayer</a></div><div class="ttdeci">Layer &amp; GetOwningLayer() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.xhtml#l00119">Layer.hpp:119</a></div></div>
+<div class="ttc" id="a_tosa_operator_utils_8hpp_xhtml_a45d66f17ad6b0469e469f443b3e03226"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#a45d66f17ad6b0469e469f443b3e03226">ArmNNToDType</a></div><div class="ttdeci">DType ArmNNToDType(const DataType &amp;type)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00020">TosaOperatorUtils.hpp:20</a></div></div>
+<div class="ttc" id="aclassarmnn_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 &amp; 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#l00324">Layer.hpp:324</a></div></div>
+<div class="ttc" id="a_tosa_operator_utils_8hpp_xhtml_aadc5d73bd0cb81999bcfdc62bce020e8"><div class="ttname"><a href="_tosa_operator_utils_8hpp.xhtml#aadc5d73bd0cb81999bcfdc62bce020e8">GetUniqueTosaMappingID</a></div><div class="ttdeci">std::string GetUniqueTosaMappingID()</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_operator_utils_8hpp_source.xhtml#l00097">TosaOperatorUtils.hpp:97</a></div></div>
+<div class="ttc" id="astructarmnn_1_1_reshape_descriptor_xhtml_a1178f4dafdda81f59c15145ec327f7d9"><div class="ttname"><a href="structarmnn_1_1_reshape_descriptor.xhtml#a1178f4dafdda81f59c15145ec327f7d9">armnn::ReshapeDescriptor::m_TargetShape</a></div><div class="ttdeci">TensorShape m_TargetShape</div><div class="ttdoc">Target shape value.</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.xhtml#l00986">Descriptors.hpp:986</a></div></div>
<!-- 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_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_3eeadfb79f8e6e284b92aba47a7684a1.xhtml">tosaCommon</a></li><li class="navelem"><a class="el" href="dir_44a5c203710327e1068d2575c20cb7c6.xhtml">operatorMappings</a></li><li class="navelem"><a class="el" href="_reshape_operator_8cpp.xhtml">ReshapeOperator.cpp</a></li>
- <li class="footer">Generated on Fri Feb 24 2023 10:24:28 for ArmNN by
+ <li class="footer">Generated on Wed Mar 22 2023 15:53:03 for ArmNN by
<a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
+ <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
</ul>
</div>
</body>