Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: include/armnn/Tensor.hpp Source File</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('_tensor_8hpp_source.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="headertitle"> |
| 84 | <div class="title">Tensor.hpp</div> </div> |
| 85 | </div><!--header--> |
| 86 | <div class="contents"> |
| 87 | <a href="_tensor_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// Copyright © 2017 Arm Ltd. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> </div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include "<a class="code" href="_tensor_fwd_8hpp.html">TensorFwd.hpp</a>"</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include "<a class="code" href="_exceptions_8hpp.html">Exceptions.hpp</a>"</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="_optional_8hpp.html">Optional.hpp</a>"</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include "<a class="code" href="_types_8hpp.html">Types.hpp</a>"</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <array></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <initializer_list></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="keyword">namespace </span><a class="code" href="namespacearmnn.html">armnn</a></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_shape.html"> 20</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> {</div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">TensorShape</a>();</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">TensorShape</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDimensions);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">TensorShape</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDimensions, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* dimensionSizes);</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">TensorShape</a>(std::initializer_list<unsigned int> dimensionSizeList);</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">TensorShape</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& other);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& <a class="code" href="classarmnn_1_1_tensor_shape.html#a0ca6f42172d27e9799da3e3f7840ac31">operator=</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& other);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a6e6dab22049a4432e8306a301dceff52">operator[]</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>& <a class="code" href="classarmnn_1_1_tensor_shape.html#a6e6dab22049a4432e8306a301dceff52">operator[]</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a07e348fae6036aecdaf41e738d1ae9ff">operator==</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& other) <span class="keyword">const</span>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a77d202fcd47612eb5a4d6d23a7d4b349">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& other) <span class="keyword">const</span>;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24"> 43</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_NumDimensions; }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  std::array<unsigned int, MaxNumOfTensorDimensions> m_Dimensions;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_NumDimensions;</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> CheckDimensionIndex(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> };</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html"> 53</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a></div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> {</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>();</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& shape,</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> dataType,</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">float</span> quantizationScale = 0.0f,</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  int32_t quantizationOffset = 0);</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDimensions,</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* dimensionSizes,</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> dataType,</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">float</span> quantizationScale = 0.0f,</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  int32_t quantizationOffset = 0);</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& shape,</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> dataType,</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">const</span> std::vector<float>& quantizationScales,</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> quantizationDim);</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numDimensions,</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>* dimensionSizes,</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> dataType,</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">const</span> std::vector<float>& quantizationScales,</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> quantizationDim);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& other);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& <a class="code" href="classarmnn_1_1_tensor_shape.html#a0ca6f42172d27e9799da3e3f7840ac31">operator=</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& other);</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a07e348fae6036aecdaf41e738d1ae9ff">operator==</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& other) <span class="keyword">const</span>;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a77d202fcd47612eb5a4d6d23a7d4b349">operator!=</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& other) <span class="keyword">const</span>;</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8"> 88</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& <a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Shape; }</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#a350bcc7d86f7d9333340a0a04be078f6"> 89</a></span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& <a class="code" href="classarmnn_1_1_tensor_info.html#a350bcc7d86f7d9333340a0a04be078f6">GetShape</a>() { <span class="keywordflow">return</span> m_Shape; }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298"> 90</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& newShape) { m_Shape = newShape; }</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24"> 92</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Shape.GetNumDimensions(); }</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7"> 93</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Shape.GetNumElements(); }</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3"> 95</a></span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> <a class="code" href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">GetDataType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_DataType; }</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#a71975fcec1464d639f1a78f73164d1bd"> 96</a></span>  <span class="keywordtype">void</span> <a class="code" href="classarmnn_1_1_tensor_info.html#a71975fcec1464d639f1a78f73164d1bd">SetDataType</a>(<a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> type) { m_DataType = type; }</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor_info.html#af672d1c9e2a120a18926cb645981fbb7"> 98</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_info.html#af672d1c9e2a120a18926cb645981fbb7">HasMultipleQuantizationScales</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Quantization.m_Scales.size() > 1; }</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">bool</span> HasPerAxisQuantization() <span class="keyword">const</span>;</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span> </div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  std::vector<float> GetQuantizationScales() <span class="keyword">const</span>;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">void</span> SetQuantizationScales(<span class="keyword">const</span> std::vector<float>& scales);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">float</span> GetQuantizationScale() <span class="keyword">const</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">void</span> <a class="code" href="_neon_end_to_end_tests_8cpp.html#a522a440dc1e26bed45fd3f68be8484e9">SetQuantizationScale</a>(<span class="keywordtype">float</span> scale);</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  int32_t GetQuantizationOffset() <span class="keyword">const</span>;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">void</span> <a class="code" href="_neon_end_to_end_tests_8cpp.html#aec48a5a5ab6ecf86c8db0f6d0859fe2f">SetQuantizationOffset</a>(int32_t offset);</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="classarmnn_1_1_optional.html">Optional<unsigned int></a> GetQuantizationDim() <span class="keyword">const</span>;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordtype">void</span> SetQuantizationDim(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_optional.html">Optional<unsigned int></a>& quantizationDim);</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">bool</span> IsQuantized() <span class="keyword">const</span>;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keywordtype">bool</span> IsTypeSpaceMatch(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& other) <span class="keyword">const</span>;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> GetNumBytes() <span class="keyword">const</span>;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> m_Shape;</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> m_DataType;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keyword">struct </span>Quantization</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  {</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  Quantization()</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  : m_Scales{}</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  , m_Offset(<a class="code" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>())</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  , m_QuantizationDim(<a class="code" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>()) {}</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  <span class="keywordtype">bool</span> <a class="code" href="classarmnn_1_1_tensor_shape.html#a07e348fae6036aecdaf41e738d1ae9ff">operator==</a>(<span class="keyword">const</span> Quantization& other)<span class="keyword"> const</span></div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> <span class="keyword"> </span>{</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">return</span> ((m_Scales == other.m_Scales) && (m_Offset == other.m_Offset) &&</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  (m_QuantizationDim == other.m_QuantizationDim));</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  }</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  std::vector<float> m_Scales;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="classarmnn_1_1_optional.html">Optional<int32_t></a> m_Offset;</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classarmnn_1_1_optional.html">Optional<unsigned int></a> m_QuantizationDim;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> </div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  } m_Quantization;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> };</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44"> 146</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">BindingPointInfo</a> = std::pair<armnn::LayerBindingId, armnn::TensorInfo>;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">template</span><<span class="keyword">typename</span> MemoryType></div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html"> 149</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> {</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>();</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>, MemoryType memoryArea);</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>& other);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>& <a class="code" href="classarmnn_1_1_tensor_shape.html#a0ca6f42172d27e9799da3e3f7840ac31">operator=</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a>&);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#a8aeddebdcf02e1832b22203c08a6b678"> 167</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& <a class="code" href="classarmnn_1_1_base_tensor.html#a8aeddebdcf02e1832b22203c08a6b678">GetInfo</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info; }</div><div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#ab2e02564acd2ce6db36de310702a75de"> 168</a></span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& <a class="code" href="classarmnn_1_1_base_tensor.html#ab2e02564acd2ce6db36de310702a75de">GetInfo</a>() { <span class="keywordflow">return</span> m_Info; }</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#a8b5d0f8a24e9d9238f412260a552acf8"> 169</a></span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& <a class="code" href="classarmnn_1_1_base_tensor.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info.GetShape(); }</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#a350bcc7d86f7d9333340a0a04be078f6"> 170</a></span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& <a class="code" href="classarmnn_1_1_base_tensor.html#a350bcc7d86f7d9333340a0a04be078f6">GetShape</a>() { <span class="keywordflow">return</span> m_Info.GetShape(); }</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#aea909c7327109228ef618d459015def3"> 172</a></span>  <a class="code" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> <a class="code" href="classarmnn_1_1_base_tensor.html#aea909c7327109228ef618d459015def3">GetDataType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info.GetDataType(); }</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#a157e27d41e9f6b21f0d3c025fa47dc24"> 173</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_base_tensor.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info.GetNumDimensions(); }</div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#abcbdfb544ece4c31d0b37715ad0f3be0"> 174</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_base_tensor.html#abcbdfb544ece4c31d0b37715ad0f3be0">GetNumBytes</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info.GetNumBytes(); }</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#a8846406ac37fbd2204f0be16ee05d5b7"> 175</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classarmnn_1_1_base_tensor.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_Info.GetNumElements(); }</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> </div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#aa81f67ac64f0c249e26499600c45d996"> 177</a></span>  MemoryType <a class="code" href="classarmnn_1_1_base_tensor.html#aa81f67ac64f0c249e26499600c45d996">GetMemoryArea</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_MemoryArea; }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">protected</span>:</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <span class="comment">// Protected destructor to stop users from making these</span></div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// (could still new one on the heap and then leak it...)</span></div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#abac025efeffc6e099a365bdb17b5ca3e"> 182</a></span>  <a class="code" href="classarmnn_1_1_base_tensor.html#abac025efeffc6e099a365bdb17b5ca3e">~BaseTensor</a>() {}</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"><a class="line" href="classarmnn_1_1_base_tensor.html#aba26e5decca8be8786d8a5faf2e06a49"> 184</a></span>  MemoryType <a class="code" href="classarmnn_1_1_base_tensor.html#aba26e5decca8be8786d8a5faf2e06a49">m_MemoryArea</a>;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> m_Info;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> };</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00191"></a><span class="lineno"><a class="line" href="classarmnn_1_1_tensor.html"> 191</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_tensor.html">Tensor</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a><void*></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> {</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keyword">using</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor<void*>::BaseTensor</a>;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> };</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classarmnn_1_1_const_tensor.html"> 199</a></span> <span class="keyword">class </span><a class="code" href="classarmnn_1_1_const_tensor.html">ConstTensor</a> : <span class="keyword">public</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a><const void*></div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span> {</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keyword">using</span> <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor<const void*>::BaseTensor</a>;</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classarmnn_1_1_const_tensor.html#a6b6561873c02b1bd9b7a7ae8dd4a339c"> 204</a></span>  <a class="code" href="classarmnn_1_1_const_tensor.html#a6b6561873c02b1bd9b7a7ae8dd4a339c">ConstTensor</a>() : <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a><const void*>() {} <span class="comment">// This needs to be redefined explicitly??</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00207"></a><span class="lineno"><a class="line" href="classarmnn_1_1_const_tensor.html#a42aec46c635aa2e38932ca103d2064ed"> 207</a></span>  <a class="code" href="classarmnn_1_1_const_tensor.html#a42aec46c635aa2e38932ca103d2064ed">ConstTensor</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor.html">Tensor</a>& other) : <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a><const void*>(other.GetInfo(), other.GetMemoryArea()) {}</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keyword">template</span> < <span class="keyword">template</span><<span class="keyword">typename</span>, <span class="keyword">typename</span>...> <span class="keyword">class </span>ContainerType, <span class="keyword">typename</span> T, <span class="keyword">typename</span>...ContainerArgs ></div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classarmnn_1_1_const_tensor.html#aa04de06d072895b6df9125338d55c205"> 215</a></span>  <a class="code" href="classarmnn_1_1_const_tensor.html#aa04de06d072895b6df9125338d55c205">ConstTensor</a>(<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_info.html">TensorInfo</a>& <a class="code" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>, <span class="keyword">const</span> ContainerType<T, ContainerArgs...>& container)</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  : <a class="code" href="classarmnn_1_1_base_tensor.html">BaseTensor</a><const void*>(info, container.data())</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  {</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">if</span> (container.size() * <span class="keyword">sizeof</span>(T) != info.<a class="code" href="classarmnn_1_1_tensor_info.html#abcbdfb544ece4c31d0b37715ad0f3be0">GetNumBytes</a>())</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  {</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(<span class="stringliteral">"Container size is not correct"</span>);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  }</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  }</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> };</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527"> 225</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">InputTensors</a> = std::vector<std::pair<LayerBindingId, class ConstTensor>>;</div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea"> 226</a></span> <span class="keyword">using</span> <a class="code" href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">OutputTensors</a> = std::vector<std::pair<LayerBindingId, class Tensor>>;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span> } <span class="comment">// namespace armnn</span></div><div class="ttc" id="classarmnn_1_1_base_tensor_html_abcbdfb544ece4c31d0b37715ad0f3be0"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#abcbdfb544ece4c31d0b37715ad0f3be0">armnn::BaseTensor::GetNumBytes</a></div><div class="ttdeci">unsigned int GetNumBytes() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00174">Tensor.hpp:174</a></div></div> |
| 88 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div> |
| 89 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#aea909c7327109228ef618d459015def3">armnn::BaseTensor::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00172">Tensor.hpp:172</a></div></div> |
| 90 | <div class="ttc" id="_exceptions_8hpp_html"><div class="ttname"><a href="_exceptions_8hpp.html">Exceptions.hpp</a></div></div> |
| 91 | <div class="ttc" id="classarmnn_1_1_const_tensor_html"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00199">Tensor.hpp:199</a></div></div> |
| 92 | <div class="ttc" id="namespacearmnn_html_a8f091a512915d1cb29a4ebf13dfc53ea"><div class="ttname"><a href="namespacearmnn.html#a8f091a512915d1cb29a4ebf13dfc53ea">armnn::OutputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class Tensor > > OutputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00226">Tensor.hpp:226</a></div></div> |
| 93 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_abac025efeffc6e099a365bdb17b5ca3e"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#abac025efeffc6e099a365bdb17b5ca3e">armnn::BaseTensor::~BaseTensor</a></div><div class="ttdeci">~BaseTensor()</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00182">Tensor.hpp:182</a></div></div> |
| 94 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorInfo::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00092">Tensor.hpp:92</a></div></div> |
| 95 | <div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional< unsigned int ></a></div></div> |
| 96 | <div class="ttc" id="namespacearmnn_html_a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c"><div class="ttname"><a href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">armnn::BoostLogSeverityMapping::info</a></div></div> |
| 97 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::BaseTensor::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00175">Tensor.hpp:175</a></div></div> |
| 98 | <div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 99 | <div class="ttc" id="classarmnn_1_1_const_tensor_html_aa04de06d072895b6df9125338d55c205"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html#aa04de06d072895b6df9125338d55c205">armnn::ConstTensor::ConstTensor</a></div><div class="ttdeci">ConstTensor(const TensorInfo &info, const ContainerType< T, ContainerArgs... > &container)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00215">Tensor.hpp:215</a></div></div> |
| 100 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a350bcc7d86f7d9333340a0a04be078f6"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a350bcc7d86f7d9333340a0a04be078f6">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">TensorShape & GetShape()</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00089">Tensor.hpp:89</a></div></div> |
| 101 | <div class="ttc" id="namespacearmnn_html_a280670a263dc4fd40491f6d0a2737f44"><div class="ttname"><a href="namespacearmnn.html#a280670a263dc4fd40491f6d0a2737f44">armnn::BindingPointInfo</a></div><div class="ttdeci">std::pair< armnn::LayerBindingId, armnn::TensorInfo > BindingPointInfo</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00146">Tensor.hpp:146</a></div></div> |
| 102 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::BaseTensor::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00169">Tensor.hpp:169</a></div></div> |
| 103 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a77d202fcd47612eb5a4d6d23a7d4b349"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a77d202fcd47612eb5a4d6d23a7d4b349">armnn::TensorShape::operator!=</a></div><div class="ttdeci">bool operator!=(const TensorShape &other) const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00101">Tensor.cpp:101</a></div></div> |
| 104 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a76d053cd9b4373d90682ad646dad334c"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a76d053cd9b4373d90682ad646dad334c">armnn::TensorShape::TensorShape</a></div><div class="ttdeci">TensorShape()</div><div class="ttdoc">Empty (invalid) constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00023">Tensor.cpp:23</a></div></div> |
| 105 | <div class="ttc" id="_tensor_fwd_8hpp_html"><div class="ttname"><a href="_tensor_fwd_8hpp.html">TensorFwd.hpp</a></div></div> |
| 106 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div> |
| 107 | <div class="ttc" id="_neon_end_to_end_tests_8cpp_html_aec48a5a5ab6ecf86c8db0f6d0859fe2f"><div class="ttname"><a href="_neon_end_to_end_tests_8cpp.html#aec48a5a5ab6ecf86c8db0f6d0859fe2f">SetQuantizationOffset</a></div><div class="ttdeci">boxEncodingsInfo SetQuantizationOffset(1)</div></div> |
| 108 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_ab2e02564acd2ce6db36de310702a75de"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#ab2e02564acd2ce6db36de310702a75de">armnn::BaseTensor::GetInfo</a></div><div class="ttdeci">TensorInfo & GetInfo()</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00168">Tensor.hpp:168</a></div></div> |
| 109 | <div class="ttc" id="classarmnn_1_1_const_tensor_html_a42aec46c635aa2e38932ca103d2064ed"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html#a42aec46c635aa2e38932ca103d2064ed">armnn::ConstTensor::ConstTensor</a></div><div class="ttdeci">ConstTensor(const Tensor &other)</div><div class="ttdoc">Can be implicitly constructed from non-const Tensor. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00207">Tensor.hpp:207</a></div></div> |
| 110 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_abcbdfb544ece4c31d0b37715ad0f3be0"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#abcbdfb544ece4c31d0b37715ad0f3be0">armnn::TensorInfo::GetNumBytes</a></div><div class="ttdeci">unsigned int GetNumBytes() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00213">Tensor.cpp:213</a></div></div> |
| 111 | <div class="ttc" id="classarmnn_1_1_tensor_html"><div class="ttname"><a href="classarmnn_1_1_tensor.html">armnn::Tensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and a mutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00191">Tensor.hpp:191</a></div></div> |
| 112 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a07e348fae6036aecdaf41e738d1ae9ff"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a07e348fae6036aecdaf41e738d1ae9ff">armnn::TensorShape::operator==</a></div><div class="ttdeci">bool operator==(const TensorShape &other) const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00095">Tensor.cpp:95</a></div></div> |
| 113 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a6e6dab22049a4432e8306a301dceff52"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a6e6dab22049a4432e8306a301dceff52">armnn::TensorShape::operator[]</a></div><div class="ttdeci">unsigned int operator[](unsigned int i) const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00083">Tensor.cpp:83</a></div></div> |
| 114 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_aba26e5decca8be8786d8a5faf2e06a49"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#aba26e5decca8be8786d8a5faf2e06a49">armnn::BaseTensor::m_MemoryArea</a></div><div class="ttdeci">MemoryType m_MemoryArea</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00184">Tensor.hpp:184</a></div></div> |
| 115 | <div class="ttc" id="namespacearmnn_html_aa01bce88f89975a5a031db4cc8861527"><div class="ttname"><a href="namespacearmnn.html#aa01bce88f89975a5a031db4cc8861527">armnn::InputTensors</a></div><div class="ttdeci">std::vector< std::pair< LayerBindingId, class ConstTensor > > InputTensors</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00225">Tensor.hpp:225</a></div></div> |
| 116 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::BaseTensor::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00173">Tensor.hpp:173</a></div></div> |
| 117 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorShape::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00106">Tensor.cpp:106</a></div></div> |
| 118 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_a350bcc7d86f7d9333340a0a04be078f6"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a350bcc7d86f7d9333340a0a04be078f6">armnn::BaseTensor::GetShape</a></div><div class="ttdeci">TensorShape & GetShape()</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00170">Tensor.hpp:170</a></div></div> |
| 119 | <div class="ttc" id="structarmnn_1_1_empty_optional_html"><div class="ttname"><a href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00032">Optional.hpp:32</a></div></div> |
| 120 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a71975fcec1464d639f1a78f73164d1bd"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a71975fcec1464d639f1a78f73164d1bd">armnn::TensorInfo::SetDataType</a></div><div class="ttdeci">void SetDataType(DataType type)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00096">Tensor.hpp:96</a></div></div> |
| 121 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">armnn::TensorInfo::SetShape</a></div><div class="ttdeci">void SetShape(const TensorShape &newShape)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00090">Tensor.hpp:90</a></div></div> |
| 122 | <div class="ttc" id="namespacearmnn_html"><div class="ttname"><a href="namespacearmnn.html">armnn</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_helper_8hpp_source.html#l00011">BackendHelper.hpp:11</a></div></div> |
| 123 | <div class="ttc" id="_types_8hpp_html"><div class="ttname"><a href="_types_8hpp.html">Types.hpp</a></div></div> |
| 124 | <div class="ttc" id="classarmnn_1_1_base_tensor_html"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html">armnn::BaseTensor</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00149">Tensor.hpp:149</a></div></div> |
| 125 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_af672d1c9e2a120a18926cb645981fbb7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#af672d1c9e2a120a18926cb645981fbb7">armnn::TensorInfo::HasMultipleQuantizationScales</a></div><div class="ttdeci">bool HasMultipleQuantizationScales() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00098">Tensor.hpp:98</a></div></div> |
| 126 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_a8aeddebdcf02e1832b22203c08a6b678"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#a8aeddebdcf02e1832b22203c08a6b678">armnn::BaseTensor::GetInfo</a></div><div class="ttdeci">const TensorInfo & GetInfo() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00167">Tensor.hpp:167</a></div></div> |
| 127 | <div class="ttc" id="_optional_8hpp_html"><div class="ttname"><a href="_optional_8hpp.html">Optional.hpp</a></div></div> |
| 128 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a0ca6f42172d27e9799da3e3f7840ac31"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a0ca6f42172d27e9799da3e3f7840ac31">armnn::TensorShape::operator=</a></div><div class="ttdeci">TensorShape & operator=(const TensorShape &other)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8cpp_source.html#l00076">Tensor.cpp:76</a></div></div> |
| 129 | <div class="ttc" id="classarmnn_1_1_const_tensor_html_a6b6561873c02b1bd9b7a7ae8dd4a339c"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html#a6b6561873c02b1bd9b7a7ae8dd4a339c">armnn::ConstTensor::ConstTensor</a></div><div class="ttdeci">ConstTensor()</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00204">Tensor.hpp:204</a></div></div> |
| 130 | <div class="ttc" id="_neon_end_to_end_tests_8cpp_html_a522a440dc1e26bed45fd3f68be8484e9"><div class="ttname"><a href="_neon_end_to_end_tests_8cpp.html#a522a440dc1e26bed45fd3f68be8484e9">SetQuantizationScale</a></div><div class="ttdeci">boxEncodingsInfo SetQuantizationScale(1.0f)</div></div> |
| 131 | <div class="ttc" id="namespacearmnn_html_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">armnn::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00032">Types.hpp:32</a></div></div> |
| 132 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 133 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 134 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_aea909c7327109228ef618d459015def3"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#aea909c7327109228ef618d459015def3">armnn::TensorInfo::GetDataType</a></div><div class="ttdeci">DataType GetDataType() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00095">Tensor.hpp:95</a></div></div> |
| 135 | <div class="ttc" id="classarmnn_1_1_base_tensor_html_aa81f67ac64f0c249e26499600c45d996"><div class="ttname"><a href="classarmnn_1_1_base_tensor.html#aa81f67ac64f0c249e26499600c45d996">armnn::BaseTensor::GetMemoryArea</a></div><div class="ttdeci">MemoryType GetMemoryArea() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00177">Tensor.hpp:177</a></div></div> |
| 136 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 137 | </div><!-- fragment --></div><!-- contents --> |
| 138 | </div><!-- doc-content --> |
| 139 | <!-- start footer part --> |
| 140 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 141 | <ul> |
| 142 | <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_2b72cc348e06937955e62ebdd8a13436.html">armnn</a></li><li class="navelem"><a class="el" href="_tensor_8hpp.html">Tensor.hpp</a></li> |
| 143 | <li class="footer">Generated on Fri Mar 13 2020 16:06:53 for ArmNN by |
| 144 | <a href="http://www.doxygen.org/index.html"> |
| 145 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 146 | </ul> |
| 147 | </div> |
| 148 | </body> |
| 149 | </html> |