Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/armnnUtils/VerificationHelpers.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_verification_helpers_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#namespaces">Namespaces</a> | |
| 99 | <a href="#define-members">Macros</a> | |
| 100 | <a href="#func-members">Functions</a> </div> |
| 101 | <div class="headertitle"> |
| 102 | <div class="title">VerificationHelpers.hpp File Reference</div> </div> |
| 103 | </div><!--header--> |
| 104 | <div class="contents"> |
| 105 | <div class="textblock"><code>#include <iostream></code><br /> |
| 106 | <code>#include <sstream></code><br /> |
| 107 | <code>#include <<a class="el" href="_exceptions_8hpp_source.xhtml">armnn/Exceptions.hpp</a>></code><br /> |
| 108 | </div> |
| 109 | <p><a href="_verification_helpers_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 110 | <table class="memberdecls"> |
| 111 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a> |
| 112 | Namespaces</h2></td></tr> |
| 113 | <tr class="memitem:namespacearmnn_utils"><td class="memItemLeft" align="right" valign="top">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.xhtml">armnnUtils</a></td></tr> |
| 114 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | </table><table class="memberdecls"> |
| 116 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> |
| 117 | Macros</h2></td></tr> |
| 118 | <tr class="memitem:aa693ef8620e450b6362938828002f2a6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_verification_helpers_8hpp.xhtml#aa693ef8620e450b6362938828002f2a6">CHECKED_INT32</a>(VALUE)   <a class="el" href="namespacearmnn_utils.xhtml#a2e0aa273755368a1bf5fc65102df4a92">armnnUtils::VerifyInt32</a>(#VALUE, VALUE, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td></tr> |
| 119 | <tr class="separator:aa693ef8620e450b6362938828002f2a6"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a479b2821a7a2cbb8fa8eb7f60a47065d"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_verification_helpers_8hpp.xhtml#a479b2821a7a2cbb8fa8eb7f60a47065d">CHECK_VALID_SIZE</a>(ACTUAL, ...)   <a class="el" href="namespacearmnn_utils.xhtml#a97dc68ae76f04b81c833184724836c9a">armnnUtils::CheckValidSize</a>({__VA_ARGS__}, ACTUAL, #__VA_ARGS__, #ACTUAL, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td></tr> |
| 121 | <tr class="separator:a479b2821a7a2cbb8fa8eb7f60a47065d"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:aaef93dc9a69f51b59f3cdd0ff0165927"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(VALUE)   <a class="el" href="namespacearmnn_utils.xhtml#ab075020544612cd151ebdd08db537396">armnnUtils::NonNegative</a>(#VALUE, VALUE, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td></tr> |
| 123 | <tr class="separator:aaef93dc9a69f51b59f3cdd0ff0165927"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | </table><table class="memberdecls"> |
| 125 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 126 | Functions</h2></td></tr> |
| 127 | <tr class="memitem:a97dc68ae76f04b81c833184724836c9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.xhtml#a97dc68ae76f04b81c833184724836c9a">CheckValidSize</a> (std::initializer_list< size_t > validInputCounts, size_t actualValue, const char *validExpr, const char *actualExpr, const <a class="el" href="structarmnn_1_1_check_location.xhtml">CheckLocation</a> &location)</td></tr> |
| 128 | <tr class="separator:a97dc68ae76f04b81c833184724836c9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:ab075020544612cd151ebdd08db537396"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.xhtml#ab075020544612cd151ebdd08db537396">NonNegative</a> (const char *expr, int32_t value, const <a class="el" href="structarmnn_1_1_check_location.xhtml">CheckLocation</a> &location)</td></tr> |
| 130 | <tr class="separator:ab075020544612cd151ebdd08db537396"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a2e0aa273755368a1bf5fc65102df4a92"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_utils.xhtml#a2e0aa273755368a1bf5fc65102df4a92">VerifyInt32</a> (const char *expr, int64_t value, const <a class="el" href="structarmnn_1_1_check_location.xhtml">armnn::CheckLocation</a> &location)</td></tr> |
| 132 | <tr class="separator:a2e0aa273755368a1bf5fc65102df4a92"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | </table> |
| 134 | <h2 class="groupheader">Macro Definition Documentation</h2> |
| 135 | <a id="a479b2821a7a2cbb8fa8eb7f60a47065d"></a> |
| 136 | <h2 class="memtitle"><span class="permalink"><a href="#a479b2821a7a2cbb8fa8eb7f60a47065d">◆ </a></span>CHECK_VALID_SIZE</h2> |
| 137 | |
| 138 | <div class="memitem"> |
| 139 | <div class="memproto"> |
| 140 | <table class="memname"> |
| 141 | <tr> |
| 142 | <td class="memname">#define CHECK_VALID_SIZE</td> |
| 143 | <td>(</td> |
| 144 | <td class="paramtype"> </td> |
| 145 | <td class="paramname">ACTUAL, </td> |
| 146 | </tr> |
| 147 | <tr> |
| 148 | <td class="paramkey"></td> |
| 149 | <td></td> |
| 150 | <td class="paramtype"> </td> |
| 151 | <td class="paramname"><em>...</em> </td> |
| 152 | </tr> |
| 153 | <tr> |
| 154 | <td></td> |
| 155 | <td>)</td> |
| 156 | <td></td><td>   <a class="el" href="namespacearmnn_utils.xhtml#a97dc68ae76f04b81c833184724836c9a">armnnUtils::CheckValidSize</a>({__VA_ARGS__}, ACTUAL, #__VA_ARGS__, #ACTUAL, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td> |
| 157 | </tr> |
| 158 | </table> |
| 159 | </div><div class="memdoc"> |
| 160 | |
| 161 | <p class="definition">Definition at line <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00032">32</a> of file <a class="el" href="_verification_helpers_8hpp_source.xhtml">VerificationHelpers.hpp</a>.</p> |
| 162 | |
| 163 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_onnx_parser_8cpp_source.xhtml#l00584">OnnxParser::CreateNetworkFromString()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l02465">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00764">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l02159">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01554">armnnDeserializer::GetOriginsDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01808">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l01938">Deserializer::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>.</p> |
| 164 | |
| 165 | </div> |
| 166 | </div> |
| 167 | <a id="aa693ef8620e450b6362938828002f2a6"></a> |
| 168 | <h2 class="memtitle"><span class="permalink"><a href="#aa693ef8620e450b6362938828002f2a6">◆ </a></span>CHECKED_INT32</h2> |
| 169 | |
| 170 | <div class="memitem"> |
| 171 | <div class="memproto"> |
| 172 | <table class="memname"> |
| 173 | <tr> |
| 174 | <td class="memname">#define CHECKED_INT32</td> |
| 175 | <td>(</td> |
| 176 | <td class="paramtype"> </td> |
| 177 | <td class="paramname">VALUE</td><td>)</td> |
| 178 | <td>   <a class="el" href="namespacearmnn_utils.xhtml#a2e0aa273755368a1bf5fc65102df4a92">armnnUtils::VerifyInt32</a>(#VALUE, VALUE, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td> |
| 179 | </tr> |
| 180 | </table> |
| 181 | </div><div class="memdoc"> |
| 182 | |
| 183 | <p class="definition">Definition at line <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00030">30</a> of file <a class="el" href="_verification_helpers_8hpp_source.xhtml">VerificationHelpers.hpp</a>.</p> |
| 184 | |
| 185 | </div> |
| 186 | </div> |
| 187 | <a id="aaef93dc9a69f51b59f3cdd0ff0165927"></a> |
| 188 | <h2 class="memtitle"><span class="permalink"><a href="#aaef93dc9a69f51b59f3cdd0ff0165927">◆ </a></span>CHECKED_NON_NEGATIVE</h2> |
| 189 | |
| 190 | <div class="memitem"> |
| 191 | <div class="memproto"> |
| 192 | <table class="memname"> |
| 193 | <tr> |
| 194 | <td class="memname">#define CHECKED_NON_NEGATIVE</td> |
| 195 | <td>(</td> |
| 196 | <td class="paramtype"> </td> |
| 197 | <td class="paramname">VALUE</td><td>)</td> |
| 198 | <td>   <a class="el" href="namespacearmnn_utils.xhtml#ab075020544612cd151ebdd08db537396">armnnUtils::NonNegative</a>(#VALUE, VALUE, <a class="el" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>())</td> |
| 199 | </tr> |
| 200 | </table> |
| 201 | </div><div class="memdoc"> |
| 202 | |
| 203 | <p class="definition">Definition at line <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">35</a> of file <a class="el" href="_verification_helpers_8hpp_source.xhtml">VerificationHelpers.hpp</a>.</p> |
| 204 | |
| 205 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00601">Deserializer::GetInputs()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02667">TfLiteParser::GetInputs()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02686">TfLiteParser::GetOutputs()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02706">TfLiteParser::GetSubgraphInputs()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02723">TfLiteParser::GetSubgraphOutputs()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00488">TfLiteParser::TfLiteParser()</a>.</p> |
| 206 | |
| 207 | </div> |
| 208 | </div> |
| 209 | </div><!-- contents --> |
| 210 | </div><!-- doc-content --> |
| 211 | <!-- start footer part --> |
| 212 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 213 | <ul> |
| 214 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_5d9c764a006d252ff232a5efbbd99a46.xhtml">armnnUtils</a></li><li class="navelem"><a class="el" href="_verification_helpers_8hpp.xhtml">VerificationHelpers.hpp</a></li> |
| 215 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 216 | <a href="http://www.doxygen.org/index.html"> |
| 217 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 218 | </ul> |
| 219 | </div> |
| 220 | </body> |
| 221 | </html> |