aboutsummaryrefslogtreecommitdiff
path: root/23.02/_tosa_layer_support_rules_8hpp_source.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/_tosa_layer_support_rules_8hpp_source.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/_tosa_layer_support_rules_8hpp_source.xhtml')
-rw-r--r--23.02/_tosa_layer_support_rules_8hpp_source.xhtml135
1 files changed, 112 insertions, 23 deletions
diff --git a/23.02/_tosa_layer_support_rules_8hpp_source.xhtml b/23.02/_tosa_layer_support_rules_8hpp_source.xhtml
index 411c982e5d..a73d35bc59 100644
--- a/23.02/_tosa_layer_support_rules_8hpp_source.xhtml
+++ b/23.02/_tosa_layer_support_rules_8hpp_source.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/TosaLayerSupportRules.hpp Source File</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('_tosa_layer_support_rules_8hpp_source.xhtml','');});
+/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
+$(document).ready(function(){initNavTree('_tosa_layer_support_rules_8hpp_source.xhtml',''); initResizable(); });
+/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
@@ -98,28 +101,114 @@ $(document).ready(function(){initNavTree('_tosa_layer_support_rules_8hpp_source.
<div class="title">TosaLayerSupportRules.hpp</div> </div>
</div><!--header-->
<div class="contents">
-<a href="_tosa_layer_support_rules_8hpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// List of Layer Support Rules common to TOSA backends only, for use with CheckSupportRule()</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="struct_tosa_operator_attribute_of_any.xhtml"> 10</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_operator_attribute_of_any.xhtml">TosaOperatorAttributeOfAny</a> : <span class="keyword">public</span> Rule</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;{</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30"> 13</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30">TosaOperatorAttributeOfAny</a>(TosaSerializationOperator* op, <span class="keyword">const</span> Container&amp; c)</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; m_Res = std::any_of(c.begin(), c.end(), [&amp;op](Attribute attribute)</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="keywordflow">return</span> attribute == op-&gt;GetAttributeType();</div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; });</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; }</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;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="struct_tosa_type_any_of.xhtml"> 22</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_type_any_of.xhtml">TosaTypeAnyOf</a> : <span class="keyword">public</span> Rule</div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7"> 25</a></span>&#160; <a class="code" href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7">TosaTypeAnyOf</a>(TosaSerializationTensor* tensor, <span class="keyword">const</span> Container&amp; c)</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; {</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; m_Res = std::any_of(c.begin(), c.end(), [&amp;tensor](DType dt)</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; <span class="keywordflow">return</span> dt == tensor-&gt;GetDtype();</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; }</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;};</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml"> 34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml">TosaTensorNumDimensionsWithinBounds</a> : <span class="keyword">public</span> Rule</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;{</div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55"> 36</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55">TosaTensorNumDimensionsWithinBounds</a>(TosaSerializationTensor* tensor)</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; m_Res = (tensor-&gt;GetShape().size() &lt;= <a class="code" href="namespacearmnn.xhtml#abdcd184ed3bd648bb31d385040cafd5d">MaxNumOfTensorDimensions</a>) || (!tensor-&gt;GetShape().empty());</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; }</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;};</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="struct_tosa_assert_size.xhtml"> 42</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_assert_size.xhtml">TosaAssertSize</a> : <span class="keyword">public</span> Rule</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; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745"> 45</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745">TosaAssertSize</a>(<span class="keyword">const</span> Container&amp; c1, <span class="keyword">const</span> Container&amp; c2)</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; m_Res = (c1.size() == c2.size());</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;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="struct_tosa_container_contains_two_types.xhtml"> 51</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_container_contains_two_types.xhtml">TosaContainerContainsTwoTypes</a> : <span class="keyword">public</span> Rule</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"><a class="line" href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87"> 53</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87">TosaContainerContainsTwoTypes</a>(std::tuple&lt;DType, DType&gt;&amp; check,</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">const</span> std::vector&lt;std::tuple&lt;DType, DType&gt;&gt;&amp; c)</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; {</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> item: c)</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; {</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">if</span> (std::get&lt;0&gt;(check) == std::get&lt;0&gt;(item) &amp;&amp;</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; std::get&lt;1&gt;(check) == std::get&lt;1&gt;(item))</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; m_Res = <span class="keyword">true</span>;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span>;</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; }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; m_Res = <span class="keyword">false</span>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</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;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="struct_tosa_container_contains_three_types.xhtml"> 69</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_container_contains_three_types.xhtml">TosaContainerContainsThreeTypes</a> : <span class="keyword">public</span> Rule</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"><a class="line" href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f"> 71</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f">TosaContainerContainsThreeTypes</a>(std::tuple&lt;DType, DType, DType&gt;&amp; check,</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">const</span> std::vector&lt;std::tuple&lt;DType, DType, DType&gt;&gt;&amp; c)</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="keywordflow">for</span> (<span class="keyword">auto</span> item: c)</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> (std::get&lt;0&gt;(check) == std::get&lt;0&gt;(item) &amp;&amp;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; std::get&lt;1&gt;(check) == std::get&lt;1&gt;(item) &amp;&amp;</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; std::get&lt;2&gt;(check) == std::get&lt;2&gt;(item))</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; m_Res = <span class="keyword">true</span>;</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</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; m_Res = <span class="keyword">false</span>;</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;};</div><div class="ttc" id="struct_tosa_assert_size_xhtml"><div class="ttname"><a href="struct_tosa_assert_size.xhtml">TosaAssertSize</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00042">TosaLayerSupportRules.hpp:42</a></div></div>
-<div class="ttc" id="struct_tosa_container_contains_three_types_xhtml"><div class="ttname"><a href="struct_tosa_container_contains_three_types.xhtml">TosaContainerContainsThreeTypes</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00069">TosaLayerSupportRules.hpp:69</a></div></div>
-<div class="ttc" id="struct_tosa_operator_attribute_of_any_xhtml_ac79cf165b055cd274bbd3202b1400f30"><div class="ttname"><a href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30">TosaOperatorAttributeOfAny::TosaOperatorAttributeOfAny</a></div><div class="ttdeci">TosaOperatorAttributeOfAny(TosaSerializationOperator *op, const Container &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00013">TosaLayerSupportRules.hpp:13</a></div></div>
-<div class="ttc" id="struct_tosa_container_contains_two_types_xhtml"><div class="ttname"><a href="struct_tosa_container_contains_two_types.xhtml">TosaContainerContainsTwoTypes</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00051">TosaLayerSupportRules.hpp:51</a></div></div>
-<div class="ttc" id="struct_tosa_tensor_num_dimensions_within_bounds_xhtml_a7c493baf09a22bbbd3b29106d797dd55"><div class="ttname"><a href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55">TosaTensorNumDimensionsWithinBounds::TosaTensorNumDimensionsWithinBounds</a></div><div class="ttdeci">TosaTensorNumDimensionsWithinBounds(TosaSerializationTensor *tensor)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00036">TosaLayerSupportRules.hpp:36</a></div></div>
-<div class="ttc" id="struct_tosa_operator_attribute_of_any_xhtml"><div class="ttname"><a href="struct_tosa_operator_attribute_of_any.xhtml">TosaOperatorAttributeOfAny</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00010">TosaLayerSupportRules.hpp:10</a></div></div>
-<div class="ttc" id="struct_tosa_container_contains_two_types_xhtml_a75e1811aeedf97ccb0eca56bebec3f87"><div class="ttname"><a href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87">TosaContainerContainsTwoTypes::TosaContainerContainsTwoTypes</a></div><div class="ttdeci">TosaContainerContainsTwoTypes(std::tuple&lt; DType, DType &gt; &amp;check, const std::vector&lt; std::tuple&lt; DType, DType &gt;&gt; &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00053">TosaLayerSupportRules.hpp:53</a></div></div>
-<div class="ttc" id="struct_tosa_tensor_num_dimensions_within_bounds_xhtml"><div class="ttname"><a href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml">TosaTensorNumDimensionsWithinBounds</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00034">TosaLayerSupportRules.hpp:34</a></div></div>
-<div class="ttc" id="struct_tosa_container_contains_three_types_xhtml_a6d18aaa6037d3124f4f8beda7a48be6f"><div class="ttname"><a href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f">TosaContainerContainsThreeTypes::TosaContainerContainsThreeTypes</a></div><div class="ttdeci">TosaContainerContainsThreeTypes(std::tuple&lt; DType, DType, DType &gt; &amp;check, const std::vector&lt; std::tuple&lt; DType, DType, DType &gt;&gt; &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00071">TosaLayerSupportRules.hpp:71</a></div></div>
-<div class="ttc" id="struct_tosa_type_any_of_xhtml_a1703421d54300e5c3b9bf00bceb783f7"><div class="ttname"><a href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7">TosaTypeAnyOf::TosaTypeAnyOf</a></div><div class="ttdeci">TosaTypeAnyOf(TosaSerializationTensor *tensor, const Container &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00025">TosaLayerSupportRules.hpp:25</a></div></div>
-<div class="ttc" id="struct_tosa_assert_size_xhtml_a72f7c0d9e02fd5737ac2f38d5fc60745"><div class="ttname"><a href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745">TosaAssertSize::TosaAssertSize</a></div><div class="ttdeci">TosaAssertSize(const Container &amp;c1, const Container &amp;c2)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00045">TosaLayerSupportRules.hpp:45</a></div></div>
-<div class="ttc" id="struct_tosa_type_any_of_xhtml"><div class="ttname"><a href="struct_tosa_type_any_of.xhtml">TosaTypeAnyOf</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00022">TosaLayerSupportRules.hpp:22</a></div></div>
-<div class="ttc" id="namespacearmnn_xhtml_abdcd184ed3bd648bb31d385040cafd5d"><div class="ttname"><a href="namespacearmnn.xhtml#abdcd184ed3bd648bb31d385040cafd5d">armnn::MaxNumOfTensorDimensions</a></div><div class="ttdeci">constexpr unsigned int MaxNumOfTensorDimensions</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00031">Types.hpp:31</a></div></div>
+<a href="_tosa_layer_support_rules_8hpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment">// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment">// SPDX-License-Identifier: MIT</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment">//</span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160; </div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="preprocessor">#pragma once</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160; </div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">// List of Layer Support Rules common to TOSA backends only, for use with CheckSupportRule()</span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160; </div>
+<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="struct_tosa_operator_attribute_of_any.xhtml"> 10</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_operator_attribute_of_any.xhtml">TosaOperatorAttributeOfAny</a> : <span class="keyword">public</span> Rule</div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;{</div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div>
+<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30"> 13</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30">TosaOperatorAttributeOfAny</a>(TosaSerializationOperator* op, <span class="keyword">const</span> Container&amp; c)</div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; {</div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; m_Res = std::any_of(c.begin(), c.end(), [&amp;op](Attribute attribute)</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; return attribute == op-&gt;GetAttributeType();</div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; });</div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; }</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; </div>
+<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="struct_tosa_type_any_of.xhtml"> 22</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_type_any_of.xhtml">TosaTypeAnyOf</a> : <span class="keyword">public</span> Rule</div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;{</div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div>
+<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7"> 25</a></span>&#160; <a class="code" href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7">TosaTypeAnyOf</a>(TosaSerializationTensor* tensor, <span class="keyword">const</span> Container&amp; c)</div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160; {</div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160; m_Res = std::any_of(c.begin(), c.end(), [&amp;tensor](DType dt)</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; return dt == tensor-&gt;GetDtype();</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; }</div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;};</div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
+<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml"> 34</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml">TosaTensorNumDimensionsWithinBounds</a> : <span class="keyword">public</span> Rule</div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;{</div>
+<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55"> 36</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55">TosaTensorNumDimensionsWithinBounds</a>(TosaSerializationTensor* tensor)</div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; {</div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; m_Res = (tensor-&gt;GetShape().size() &lt;= <a class="code" href="namespacearmnn.xhtml#abdcd184ed3bd648bb31d385040cafd5d">MaxNumOfTensorDimensions</a>) || (!tensor-&gt;GetShape().empty());</div>
+<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; }</div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;};</div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
+<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="struct_tosa_assert_size.xhtml"> 42</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_assert_size.xhtml">TosaAssertSize</a> : <span class="keyword">public</span> Rule</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; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> Container&gt;</div>
+<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745"> 45</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745">TosaAssertSize</a>(<span class="keyword">const</span> Container&amp; c1, <span class="keyword">const</span> Container&amp; c2)</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; m_Res = (c1.size() == c2.size());</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; </div>
+<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="struct_tosa_container_contains_two_types.xhtml"> 51</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_container_contains_two_types.xhtml">TosaContainerContainsTwoTypes</a> : <span class="keyword">public</span> Rule</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"><a class="line" href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87"> 53</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87">TosaContainerContainsTwoTypes</a>(std::tuple&lt;DType, DType&gt;&amp; check,</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keyword">const</span> std::vector&lt;std::tuple&lt;DType, DType&gt;&gt;&amp; c)</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; {</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordflow">for</span> (<span class="keyword">auto</span> item: c)</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; {</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordflow">if</span> (std::get&lt;0&gt;(check) == std::get&lt;0&gt;(item) &amp;&amp;</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; std::get&lt;1&gt;(check) == std::get&lt;1&gt;(item))</div>
+<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; {</div>
+<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; m_Res = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordflow">return</span>;</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; }</div>
+<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; m_Res = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; }</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; </div>
+<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="struct_tosa_container_contains_three_types.xhtml"> 69</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_tosa_container_contains_three_types.xhtml">TosaContainerContainsThreeTypes</a> : <span class="keyword">public</span> Rule</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"><a class="line" href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f"> 71</a></span>&#160; <span class="keyword">explicit</span> <a class="code" href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f">TosaContainerContainsThreeTypes</a>(std::tuple&lt;DType, DType, DType&gt;&amp; check,</div>
+<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keyword">const</span> std::vector&lt;std::tuple&lt;DType, DType, DType&gt;&gt;&amp; c)</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="keywordflow">for</span> (<span class="keyword">auto</span> item: c)</div>
+<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; {</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordflow">if</span> (std::get&lt;0&gt;(check) == std::get&lt;0&gt;(item) &amp;&amp;</div>
+<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; std::get&lt;1&gt;(check) == std::get&lt;1&gt;(item) &amp;&amp;</div>
+<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; std::get&lt;2&gt;(check) == std::get&lt;2&gt;(item))</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; m_Res = <span class="keyword">true</span>;</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <span class="keywordflow">return</span>;</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; }</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; m_Res = <span class="keyword">false</span>;</div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; }</div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;};</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
+<div class="ttc" id="astruct_tosa_tensor_num_dimensions_within_bounds_xhtml_a7c493baf09a22bbbd3b29106d797dd55"><div class="ttname"><a href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml#a7c493baf09a22bbbd3b29106d797dd55">TosaTensorNumDimensionsWithinBounds::TosaTensorNumDimensionsWithinBounds</a></div><div class="ttdeci">TosaTensorNumDimensionsWithinBounds(TosaSerializationTensor *tensor)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00036">TosaLayerSupportRules.hpp:36</a></div></div>
+<div class="ttc" id="astruct_tosa_operator_attribute_of_any_xhtml_ac79cf165b055cd274bbd3202b1400f30"><div class="ttname"><a href="struct_tosa_operator_attribute_of_any.xhtml#ac79cf165b055cd274bbd3202b1400f30">TosaOperatorAttributeOfAny::TosaOperatorAttributeOfAny</a></div><div class="ttdeci">TosaOperatorAttributeOfAny(TosaSerializationOperator *op, const Container &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00013">TosaLayerSupportRules.hpp:13</a></div></div>
+<div class="ttc" id="astruct_tosa_assert_size_xhtml"><div class="ttname"><a href="struct_tosa_assert_size.xhtml">TosaAssertSize</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00042">TosaLayerSupportRules.hpp:42</a></div></div>
+<div class="ttc" id="astruct_tosa_assert_size_xhtml_a72f7c0d9e02fd5737ac2f38d5fc60745"><div class="ttname"><a href="struct_tosa_assert_size.xhtml#a72f7c0d9e02fd5737ac2f38d5fc60745">TosaAssertSize::TosaAssertSize</a></div><div class="ttdeci">TosaAssertSize(const Container &amp;c1, const Container &amp;c2)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00045">TosaLayerSupportRules.hpp:45</a></div></div>
+<div class="ttc" id="astruct_tosa_operator_attribute_of_any_xhtml"><div class="ttname"><a href="struct_tosa_operator_attribute_of_any.xhtml">TosaOperatorAttributeOfAny</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00010">TosaLayerSupportRules.hpp:10</a></div></div>
+<div class="ttc" id="astruct_tosa_type_any_of_xhtml"><div class="ttname"><a href="struct_tosa_type_any_of.xhtml">TosaTypeAnyOf</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00022">TosaLayerSupportRules.hpp:22</a></div></div>
+<div class="ttc" id="astruct_tosa_container_contains_two_types_xhtml_a75e1811aeedf97ccb0eca56bebec3f87"><div class="ttname"><a href="struct_tosa_container_contains_two_types.xhtml#a75e1811aeedf97ccb0eca56bebec3f87">TosaContainerContainsTwoTypes::TosaContainerContainsTwoTypes</a></div><div class="ttdeci">TosaContainerContainsTwoTypes(std::tuple&lt; DType, DType &gt; &amp;check, const std::vector&lt; std::tuple&lt; DType, DType &gt;&gt; &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00053">TosaLayerSupportRules.hpp:53</a></div></div>
+<div class="ttc" id="astruct_tosa_container_contains_three_types_xhtml"><div class="ttname"><a href="struct_tosa_container_contains_three_types.xhtml">TosaContainerContainsThreeTypes</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00069">TosaLayerSupportRules.hpp:69</a></div></div>
+<div class="ttc" id="astruct_tosa_type_any_of_xhtml_a1703421d54300e5c3b9bf00bceb783f7"><div class="ttname"><a href="struct_tosa_type_any_of.xhtml#a1703421d54300e5c3b9bf00bceb783f7">TosaTypeAnyOf::TosaTypeAnyOf</a></div><div class="ttdeci">TosaTypeAnyOf(TosaSerializationTensor *tensor, const Container &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00025">TosaLayerSupportRules.hpp:25</a></div></div>
+<div class="ttc" id="astruct_tosa_container_contains_two_types_xhtml"><div class="ttname"><a href="struct_tosa_container_contains_two_types.xhtml">TosaContainerContainsTwoTypes</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00051">TosaLayerSupportRules.hpp:51</a></div></div>
+<div class="ttc" id="anamespacearmnn_xhtml_abdcd184ed3bd648bb31d385040cafd5d"><div class="ttname"><a href="namespacearmnn.xhtml#abdcd184ed3bd648bb31d385040cafd5d">armnn::MaxNumOfTensorDimensions</a></div><div class="ttdeci">constexpr unsigned int MaxNumOfTensorDimensions</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.xhtml#l00031">Types.hpp:31</a></div></div>
+<div class="ttc" id="astruct_tosa_container_contains_three_types_xhtml_a6d18aaa6037d3124f4f8beda7a48be6f"><div class="ttname"><a href="struct_tosa_container_contains_three_types.xhtml#a6d18aaa6037d3124f4f8beda7a48be6f">TosaContainerContainsThreeTypes::TosaContainerContainsThreeTypes</a></div><div class="ttdeci">TosaContainerContainsThreeTypes(std::tuple&lt; DType, DType, DType &gt; &amp;check, const std::vector&lt; std::tuple&lt; DType, DType, DType &gt;&gt; &amp;c)</div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00071">TosaLayerSupportRules.hpp:71</a></div></div>
+<div class="ttc" id="astruct_tosa_tensor_num_dimensions_within_bounds_xhtml"><div class="ttname"><a href="struct_tosa_tensor_num_dimensions_within_bounds.xhtml">TosaTensorNumDimensionsWithinBounds</a></div><div class="ttdef"><b>Definition:</b> <a href="_tosa_layer_support_rules_8hpp_source.xhtml#l00034">TosaLayerSupportRules.hpp:34</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="_tosa_layer_support_rules_8hpp.xhtml">TosaLayerSupportRules.hpp</a></li>
- <li class="footer">Generated on Fri Feb 24 2023 10:24:27 for ArmNN by
+ <li class="footer">Generated on Wed Mar 22 2023 15:53:02 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>