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: TfLiteParser Class 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('classarmnn_tf_lite_parser_1_1_tf_lite_parser.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="#nested-classes">Classes</a> | |
| 99 | <a href="#pub-types">Public Types</a> | |
| 100 | <a href="#pub-methods">Public Member Functions</a> | |
| 101 | <a href="#pub-static-methods">Static Public Member Functions</a> | |
| 102 | <a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser-members.xhtml">List of all members</a> </div> |
| 103 | <div class="headertitle"> |
| 104 | <div class="title">TfLiteParser Class Reference</div> </div> |
| 105 | </div><!--header--> |
| 106 | <div class="contents"> |
| 107 | |
| 108 | <p><code>#include <<a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>></code></p> |
| 109 | <div class="dynheader"> |
| 110 | Inheritance diagram for TfLiteParser:</div> |
| 111 | <div class="dyncontent"> |
| 112 | <div class="center"> |
| 113 | <img src="classarmnn_tf_lite_parser_1_1_tf_lite_parser.png" usemap="#TfLiteParser_map" alt=""/> |
| 114 | <map id="TfLiteParser_map" name="TfLiteParser_map"> |
| 115 | <area href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml" alt="ITfLiteParser" shape="rect" coords="0,0,84,24"/> |
| 116 | </map> |
| 117 | </div></div> |
| 118 | <table class="memberdecls"> |
| 119 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| 120 | Public Types</h2></td></tr> |
| 121 | <tr class="memitem:abfc86471394295357a23b3addd0b5b1c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> = std::unique_ptr< tflite::ModelT ></td></tr> |
| 122 | <tr class="separator:abfc86471394295357a23b3addd0b5b1c"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a988cb5e216eb87d854414c6a0282eeb4"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a988cb5e216eb87d854414c6a0282eeb4">SubgraphPtr</a> = std::unique_ptr< tflite::SubGraphT ></td></tr> |
| 124 | <tr class="separator:a988cb5e216eb87d854414c6a0282eeb4"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:aadad81a95152fe5aad839db352d4012c"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aadad81a95152fe5aad839db352d4012c">OperatorPtr</a> = std::unique_ptr< tflite::OperatorT ></td></tr> |
| 126 | <tr class="separator:aadad81a95152fe5aad839db352d4012c"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:ab80edc19da7460a95a0ac05902f244b7"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ab80edc19da7460a95a0ac05902f244b7">OperatorCodePtr</a> = std::unique_ptr< tflite::OperatorCodeT ></td></tr> |
| 128 | <tr class="separator:ab80edc19da7460a95a0ac05902f244b7"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a4ab952e29d01028931f75f997ad7cbd4"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a4ab952e29d01028931f75f997ad7cbd4">TensorPtr</a> = std::unique_ptr< tflite::TensorT ></td></tr> |
| 130 | <tr class="separator:a4ab952e29d01028931f75f997ad7cbd4"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:ac3486e6c1a291aa67efd8b280ffb83cc"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a> = const tflite::TensorT *</td></tr> |
| 132 | <tr class="separator:ac3486e6c1a291aa67efd8b280ffb83cc"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:abd8bee7fb9b86485a60bc7ee05114270"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> = std::vector< <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a> ></td></tr> |
| 134 | <tr class="separator:abd8bee7fb9b86485a60bc7ee05114270"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:a7553cea300edaeb5722990f99f042ef0"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a7553cea300edaeb5722990f99f042ef0">TensorIdRawPtr</a> = std::pair< size_t, <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a> ></td></tr> |
| 136 | <tr class="separator:a7553cea300edaeb5722990f99f042ef0"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a86428e0c674542488c7292dfbe2ce381"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> = std::vector< <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a7553cea300edaeb5722990f99f042ef0">TensorIdRawPtr</a> ></td></tr> |
| 138 | <tr class="separator:a86428e0c674542488c7292dfbe2ce381"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:ab93d9fb8a272789623edfa0b214c40f9"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ab93d9fb8a272789623edfa0b214c40f9">BufferPtr</a> = std::unique_ptr< tflite::BufferT ></td></tr> |
| 140 | <tr class="separator:ab93d9fb8a272789623edfa0b214c40f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:aaafbda6e6816876b3d7963cfe64dd2f8"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aaafbda6e6816876b3d7963cfe64dd2f8">BufferRawPtr</a> = const tflite::BufferT *</td></tr> |
| 142 | <tr class="separator:aaafbda6e6816876b3d7963cfe64dd2f8"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | </table><table class="memberdecls"> |
| 144 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 145 | Public Member Functions</h2></td></tr> |
| 146 | <tr class="memitem:a012b24cafd443425314d4f9e06cec6c1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a012b24cafd443425314d4f9e06cec6c1">CreateNetworkFromBinaryFile</a> (const char *graphFile) override</td></tr> |
| 147 | <tr class="memdesc:a012b24cafd443425314d4f9e06cec6c1"><td class="mdescLeft"> </td><td class="mdescRight">Create the network from a flatbuffers binary file on disk. <a href="#a012b24cafd443425314d4f9e06cec6c1">More...</a><br /></td></tr> |
| 148 | <tr class="separator:a012b24cafd443425314d4f9e06cec6c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ae8ee09f5e3e78ecfdf00acfdc37588dc">CreateNetworkFromBinary</a> (const std::vector< uint8_t > &binaryContent) override</td></tr> |
| 150 | <tr class="memdesc:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="mdescLeft"> </td><td class="mdescRight">Create the network from a flatbuffers binary. <a href="#ae8ee09f5e3e78ecfdf00acfdc37588dc">More...</a><br /></td></tr> |
| 151 | <tr class="separator:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="memitem:a91ba75587a31033088cb4f156e847efb"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacearmnn_tf_lite_parser.xhtml#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a91ba75587a31033088cb4f156e847efb">GetNetworkInputBindingInfo</a> (size_t subgraphId, const std::string &name) const override</td></tr> |
| 153 | <tr class="memdesc:a91ba75587a31033088cb4f156e847efb"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name and subgraph id. <a href="#a91ba75587a31033088cb4f156e847efb">More...</a><br /></td></tr> |
| 154 | <tr class="separator:a91ba75587a31033088cb4f156e847efb"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a475b7cb5db683bb6fbb1c3fae40cb2b3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespacearmnn_tf_lite_parser.xhtml#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a475b7cb5db683bb6fbb1c3fae40cb2b3">GetNetworkOutputBindingInfo</a> (size_t subgraphId, const std::string &name) const override</td></tr> |
| 156 | <tr class="memdesc:a475b7cb5db683bb6fbb1c3fae40cb2b3"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name and subgraph id. <a href="#a475b7cb5db683bb6fbb1c3fae40cb2b3">More...</a><br /></td></tr> |
| 157 | <tr class="separator:a475b7cb5db683bb6fbb1c3fae40cb2b3"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <tr class="memitem:ae18739116b52dbab31bbf490450beb90"><td class="memItemLeft" align="right" valign="top">virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ae18739116b52dbab31bbf490450beb90">GetSubgraphCount</a> () const override</td></tr> |
| 159 | <tr class="memdesc:ae18739116b52dbab31bbf490450beb90"><td class="mdescLeft"> </td><td class="mdescRight">Return the number of subgraphs in the parsed model. <a href="#ae18739116b52dbab31bbf490450beb90">More...</a><br /></td></tr> |
| 160 | <tr class="separator:ae18739116b52dbab31bbf490450beb90"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <tr class="memitem:a58501692772880e7ef55485a4c95aab9"><td class="memItemLeft" align="right" valign="top">virtual std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a58501692772880e7ef55485a4c95aab9">GetSubgraphInputTensorNames</a> (size_t subgraphId) const override</td></tr> |
| 162 | <tr class="memdesc:a58501692772880e7ef55485a4c95aab9"><td class="mdescLeft"> </td><td class="mdescRight">Return the input tensor names for a given subgraph. <a href="#a58501692772880e7ef55485a4c95aab9">More...</a><br /></td></tr> |
| 163 | <tr class="separator:a58501692772880e7ef55485a4c95aab9"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="memitem:ab97e69d07f06e392bd0cc2e5bcbf1be6"><td class="memItemLeft" align="right" valign="top">virtual std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ab97e69d07f06e392bd0cc2e5bcbf1be6">GetSubgraphOutputTensorNames</a> (size_t subgraphId) const override</td></tr> |
| 165 | <tr class="memdesc:ab97e69d07f06e392bd0cc2e5bcbf1be6"><td class="mdescLeft"> </td><td class="mdescRight">Return the output tensor names for a given subgraph. <a href="#ab97e69d07f06e392bd0cc2e5bcbf1be6">More...</a><br /></td></tr> |
| 166 | <tr class="separator:ab97e69d07f06e392bd0cc2e5bcbf1be6"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="memitem:a2ed4853234865d838da50085da99b2a6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a2ed4853234865d838da50085da99b2a6">TfLiteParser</a> (const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>< <a class="el" href="structarmnn_tf_lite_parser_1_1_i_tf_lite_parser_1_1_tf_lite_parser_options.xhtml">ITfLiteParser::TfLiteParserOptions</a> > &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>())</td></tr> |
| 168 | <tr class="separator:a2ed4853234865d838da50085da99b2a6"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:af022366efc39da82d47a5fa390be50f5"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#af022366efc39da82d47a5fa390be50f5">~TfLiteParser</a> ()</td></tr> |
| 170 | <tr class="separator:af022366efc39da82d47a5fa390be50f5"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | </table><table class="memberdecls"> |
| 172 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 173 | Static Public Member Functions</h2></td></tr> |
| 174 | <tr class="memitem:ac5411554ab8c02ca286af52c98f6bd87"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac5411554ab8c02ca286af52c98f6bd87">LoadModelFromFile</a> (const char *fileName)</td></tr> |
| 175 | <tr class="separator:ac5411554ab8c02ca286af52c98f6bd87"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <tr class="memitem:a858104f225c302988fba35c1cb299066"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a858104f225c302988fba35c1cb299066">LoadModelFromBinary</a> (const uint8_t *binaryContent, size_t len)</td></tr> |
| 177 | <tr class="separator:a858104f225c302988fba35c1cb299066"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:a4b49afca01112a4f4d023726ccd38876"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a4b49afca01112a4f4d023726ccd38876">GetInputs</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex, size_t operatorIndex)</td></tr> |
| 179 | <tr class="separator:a4b49afca01112a4f4d023726ccd38876"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:a84ad865bb9b5fa0e4841aa35a14a14d8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a84ad865bb9b5fa0e4841aa35a14a14d8">GetOutputs</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex, size_t operatorIndex)</td></tr> |
| 181 | <tr class="separator:a84ad865bb9b5fa0e4841aa35a14a14d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:abda91b07a94d0f498b76655e03647d9a"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abda91b07a94d0f498b76655e03647d9a">GetSubgraphInputs</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex)</td></tr> |
| 183 | <tr class="separator:abda91b07a94d0f498b76655e03647d9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:afba7f99227765786c4ed9cb2acc09739"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afba7f99227765786c4ed9cb2acc09739">GetSubgraphOutputs</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex)</td></tr> |
| 185 | <tr class="separator:afba7f99227765786c4ed9cb2acc09739"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:a8b4b0b88a5e79a88b8b60db76398f575"><td class="memItemLeft" align="right" valign="top">static std::vector< int32_t > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a8b4b0b88a5e79a88b8b60db76398f575">GetInputTensorIds</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex, size_t operatorIndex)</td></tr> |
| 187 | <tr class="separator:a8b4b0b88a5e79a88b8b60db76398f575"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:afe6c475f92d02dd1eb12acd746e4736f"><td class="memItemLeft" align="right" valign="top">static std::vector< int32_t > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afe6c475f92d02dd1eb12acd746e4736f">GetOutputTensorIds</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t subgraphIndex, size_t operatorIndex)</td></tr> |
| 189 | <tr class="separator:afe6c475f92d02dd1eb12acd746e4736f"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:a5336d7700f4a5bcc272fbc9216541222"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aaafbda6e6816876b3d7963cfe64dd2f8">BufferRawPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a5336d7700f4a5bcc272fbc9216541222">GetBuffer</a> (const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> &model, size_t bufferIndex)</td></tr> |
| 191 | <tr class="separator:a5336d7700f4a5bcc272fbc9216541222"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:aa0a90d432c9c41f9846f41f11c9e54c9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aa0a90d432c9c41f9846f41f11c9e54c9">OutputShapeOfSqueeze</a> (const std::vector< uint32_t > &squeezeDims, const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &inputTensorInfo)</td></tr> |
| 193 | <tr class="separator:aa0a90d432c9c41f9846f41f11c9e54c9"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:aaebfa9a01a0bb8a0935114ff0140cc45"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aaebfa9a01a0bb8a0935114ff0140cc45">OutputShapeOfReshape</a> (const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> &inputTensorInfo, const std::vector< int32_t > &targetDimsIn)</td></tr> |
| 195 | <tr class="separator:aaebfa9a01a0bb8a0935114ff0140cc45"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="inherit_header pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml">ITfLiteParser</a></td></tr> |
| 197 | <tr class="memitem:acf8cc929eadbabf197b36f7364d3d2cb inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml">ITfLiteParser</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#acf8cc929eadbabf197b36f7364d3d2cb">CreateRaw</a> (const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>< <a class="el" href="structarmnn_tf_lite_parser_1_1_i_tf_lite_parser_1_1_tf_lite_parser_options.xhtml">TfLiteParserOptions</a> > &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>())</td></tr> |
| 198 | <tr class="separator:acf8cc929eadbabf197b36f7364d3d2cb inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memSeparator" colspan="2"> </td></tr> |
| 199 | <tr class="memitem:a9932449a89a62cfcfd72a4fedbee1ab7 inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacearmnn_tf_lite_parser.xhtml#af69bedce3c37be895f75146016ba8a17">ITfLiteParserPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a9932449a89a62cfcfd72a4fedbee1ab7">Create</a> (const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>< <a class="el" href="structarmnn_tf_lite_parser_1_1_i_tf_lite_parser_1_1_tf_lite_parser_options.xhtml">TfLiteParserOptions</a> > &<a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a6560146509197f3e197d8d36f76c1347">options</a>=<a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>())</td></tr> |
| 200 | <tr class="separator:a9932449a89a62cfcfd72a4fedbee1ab7 inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memSeparator" colspan="2"> </td></tr> |
| 201 | <tr class="memitem:a29a2a153962a701843d5c8ae953cb032 inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a29a2a153962a701843d5c8ae953cb032">Destroy</a> (<a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml">ITfLiteParser</a> *parser)</td></tr> |
| 202 | <tr class="separator:a29a2a153962a701843d5c8ae953cb032 inherit pub_static_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memSeparator" colspan="2"> </td></tr> |
| 203 | </table><table class="memberdecls"> |
| 204 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 205 | Additional Inherited Members</h2></td></tr> |
| 206 | <tr class="inherit_header pro_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml">ITfLiteParser</a></td></tr> |
| 207 | <tr class="memitem:a13235fd3261f0637807bc8e8970124b0 inherit pro_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a13235fd3261f0637807bc8e8970124b0">~ITfLiteParser</a> ()</td></tr> |
| 208 | <tr class="separator:a13235fd3261f0637807bc8e8970124b0 inherit pro_methods_classarmnn_tf_lite_parser_1_1_i_tf_lite_parser"><td class="memSeparator" colspan="2"> </td></tr> |
| 209 | </table> |
| 210 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 211 | <div class="textblock"> |
| 212 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00019">19</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 213 | </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| 214 | <a id="ab93d9fb8a272789623edfa0b214c40f9"></a> |
| 215 | <h2 class="memtitle"><span class="permalink"><a href="#ab93d9fb8a272789623edfa0b214c40f9">◆ </a></span>BufferPtr</h2> |
| 216 | |
| 217 | <div class="memitem"> |
| 218 | <div class="memproto"> |
| 219 | <table class="memname"> |
| 220 | <tr> |
| 221 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ab93d9fb8a272789623edfa0b214c40f9">BufferPtr</a> = std::unique_ptr<tflite::BufferT></td> |
| 222 | </tr> |
| 223 | </table> |
| 224 | </div><div class="memdoc"> |
| 225 | |
| 226 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00032">32</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 227 | |
| 228 | </div> |
| 229 | </div> |
| 230 | <a id="aaafbda6e6816876b3d7963cfe64dd2f8"></a> |
| 231 | <h2 class="memtitle"><span class="permalink"><a href="#aaafbda6e6816876b3d7963cfe64dd2f8">◆ </a></span>BufferRawPtr</h2> |
| 232 | |
| 233 | <div class="memitem"> |
| 234 | <div class="memproto"> |
| 235 | <table class="memname"> |
| 236 | <tr> |
| 237 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aaafbda6e6816876b3d7963cfe64dd2f8">BufferRawPtr</a> = const tflite::BufferT *</td> |
| 238 | </tr> |
| 239 | </table> |
| 240 | </div><div class="memdoc"> |
| 241 | |
| 242 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00033">33</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 243 | |
| 244 | </div> |
| 245 | </div> |
| 246 | <a id="abfc86471394295357a23b3addd0b5b1c"></a> |
| 247 | <h2 class="memtitle"><span class="permalink"><a href="#abfc86471394295357a23b3addd0b5b1c">◆ </a></span>ModelPtr</h2> |
| 248 | |
| 249 | <div class="memitem"> |
| 250 | <div class="memproto"> |
| 251 | <table class="memname"> |
| 252 | <tr> |
| 253 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> = std::unique_ptr<tflite::ModelT></td> |
| 254 | </tr> |
| 255 | </table> |
| 256 | </div><div class="memdoc"> |
| 257 | |
| 258 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00023">23</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 259 | |
| 260 | </div> |
| 261 | </div> |
| 262 | <a id="ab80edc19da7460a95a0ac05902f244b7"></a> |
| 263 | <h2 class="memtitle"><span class="permalink"><a href="#ab80edc19da7460a95a0ac05902f244b7">◆ </a></span>OperatorCodePtr</h2> |
| 264 | |
| 265 | <div class="memitem"> |
| 266 | <div class="memproto"> |
| 267 | <table class="memname"> |
| 268 | <tr> |
| 269 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ab80edc19da7460a95a0ac05902f244b7">OperatorCodePtr</a> = std::unique_ptr<tflite::OperatorCodeT></td> |
| 270 | </tr> |
| 271 | </table> |
| 272 | </div><div class="memdoc"> |
| 273 | |
| 274 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00026">26</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 275 | |
| 276 | </div> |
| 277 | </div> |
| 278 | <a id="aadad81a95152fe5aad839db352d4012c"></a> |
| 279 | <h2 class="memtitle"><span class="permalink"><a href="#aadad81a95152fe5aad839db352d4012c">◆ </a></span>OperatorPtr</h2> |
| 280 | |
| 281 | <div class="memitem"> |
| 282 | <div class="memproto"> |
| 283 | <table class="memname"> |
| 284 | <tr> |
| 285 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aadad81a95152fe5aad839db352d4012c">OperatorPtr</a> = std::unique_ptr<tflite::OperatorT></td> |
| 286 | </tr> |
| 287 | </table> |
| 288 | </div><div class="memdoc"> |
| 289 | |
| 290 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00025">25</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 291 | |
| 292 | </div> |
| 293 | </div> |
| 294 | <a id="a988cb5e216eb87d854414c6a0282eeb4"></a> |
| 295 | <h2 class="memtitle"><span class="permalink"><a href="#a988cb5e216eb87d854414c6a0282eeb4">◆ </a></span>SubgraphPtr</h2> |
| 296 | |
| 297 | <div class="memitem"> |
| 298 | <div class="memproto"> |
| 299 | <table class="memname"> |
| 300 | <tr> |
| 301 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a988cb5e216eb87d854414c6a0282eeb4">SubgraphPtr</a> = std::unique_ptr<tflite::SubGraphT></td> |
| 302 | </tr> |
| 303 | </table> |
| 304 | </div><div class="memdoc"> |
| 305 | |
| 306 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00024">24</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 307 | |
| 308 | </div> |
| 309 | </div> |
| 310 | <a id="a7553cea300edaeb5722990f99f042ef0"></a> |
| 311 | <h2 class="memtitle"><span class="permalink"><a href="#a7553cea300edaeb5722990f99f042ef0">◆ </a></span>TensorIdRawPtr</h2> |
| 312 | |
| 313 | <div class="memitem"> |
| 314 | <div class="memproto"> |
| 315 | <table class="memname"> |
| 316 | <tr> |
| 317 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a7553cea300edaeb5722990f99f042ef0">TensorIdRawPtr</a> = std::pair<size_t, <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a>></td> |
| 318 | </tr> |
| 319 | </table> |
| 320 | </div><div class="memdoc"> |
| 321 | |
| 322 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00030">30</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 323 | |
| 324 | </div> |
| 325 | </div> |
| 326 | <a id="a86428e0c674542488c7292dfbe2ce381"></a> |
| 327 | <h2 class="memtitle"><span class="permalink"><a href="#a86428e0c674542488c7292dfbe2ce381">◆ </a></span>TensorIdRawPtrVector</h2> |
| 328 | |
| 329 | <div class="memitem"> |
| 330 | <div class="memproto"> |
| 331 | <table class="memname"> |
| 332 | <tr> |
| 333 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> = std::vector<<a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a7553cea300edaeb5722990f99f042ef0">TensorIdRawPtr</a>></td> |
| 334 | </tr> |
| 335 | </table> |
| 336 | </div><div class="memdoc"> |
| 337 | |
| 338 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00031">31</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 339 | |
| 340 | </div> |
| 341 | </div> |
| 342 | <a id="a4ab952e29d01028931f75f997ad7cbd4"></a> |
| 343 | <h2 class="memtitle"><span class="permalink"><a href="#a4ab952e29d01028931f75f997ad7cbd4">◆ </a></span>TensorPtr</h2> |
| 344 | |
| 345 | <div class="memitem"> |
| 346 | <div class="memproto"> |
| 347 | <table class="memname"> |
| 348 | <tr> |
| 349 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a4ab952e29d01028931f75f997ad7cbd4">TensorPtr</a> = std::unique_ptr<tflite::TensorT></td> |
| 350 | </tr> |
| 351 | </table> |
| 352 | </div><div class="memdoc"> |
| 353 | |
| 354 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00027">27</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 355 | |
| 356 | </div> |
| 357 | </div> |
| 358 | <a id="ac3486e6c1a291aa67efd8b280ffb83cc"></a> |
| 359 | <h2 class="memtitle"><span class="permalink"><a href="#ac3486e6c1a291aa67efd8b280ffb83cc">◆ </a></span>TensorRawPtr</h2> |
| 360 | |
| 361 | <div class="memitem"> |
| 362 | <div class="memproto"> |
| 363 | <table class="memname"> |
| 364 | <tr> |
| 365 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a> = const tflite::TensorT *</td> |
| 366 | </tr> |
| 367 | </table> |
| 368 | </div><div class="memdoc"> |
| 369 | |
| 370 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00028">28</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 371 | |
| 372 | </div> |
| 373 | </div> |
| 374 | <a id="abd8bee7fb9b86485a60bc7ee05114270"></a> |
| 375 | <h2 class="memtitle"><span class="permalink"><a href="#abd8bee7fb9b86485a60bc7ee05114270">◆ </a></span>TensorRawPtrVector</h2> |
| 376 | |
| 377 | <div class="memitem"> |
| 378 | <div class="memproto"> |
| 379 | <table class="memname"> |
| 380 | <tr> |
| 381 | <td class="memname">using <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> = std::vector<<a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac3486e6c1a291aa67efd8b280ffb83cc">TensorRawPtr</a>></td> |
| 382 | </tr> |
| 383 | </table> |
| 384 | </div><div class="memdoc"> |
| 385 | |
| 386 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00029">29</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 387 | |
| 388 | </div> |
| 389 | </div> |
| 390 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 391 | <a id="a2ed4853234865d838da50085da99b2a6"></a> |
| 392 | <h2 class="memtitle"><span class="permalink"><a href="#a2ed4853234865d838da50085da99b2a6">◆ </a></span>TfLiteParser()</h2> |
| 393 | |
| 394 | <div class="memitem"> |
| 395 | <div class="memproto"> |
| 396 | <table class="memname"> |
| 397 | <tr> |
| 398 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml">TfLiteParser</a> </td> |
| 399 | <td>(</td> |
| 400 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.xhtml">armnn::Optional</a>< <a class="el" href="structarmnn_tf_lite_parser_1_1_i_tf_lite_parser_1_1_tf_lite_parser_options.xhtml">ITfLiteParser::TfLiteParserOptions</a> > & </td> |
| 401 | <td class="paramname"><em>options</em> = <code><a class="el" href="structarmnn_1_1_empty_optional.xhtml">armnn::EmptyOptional</a>()</code></td><td>)</td> |
| 402 | <td></td> |
| 403 | </tr> |
| 404 | </table> |
| 405 | </div><div class="memdoc"> |
| 406 | |
| 407 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00488">488</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 408 | |
| 409 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">IOutputSlot::Connect()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#afcc1c3a20bd2860e0ddd21674389246f">IConnectableLayer::GetName()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00774">ReshapeDescriptor::m_TargetShape</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00090">TensorInfo::SetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 410 | |
| 411 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03049">ITfLiteParser::CreateRaw()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 412 | <div class="fragment"><div class="line"><a name="l00489"></a><span class="lineno"> 489</span> : m_Options(options)</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> , m_Network(<span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span> , m_ParserFunctions(tflite::BuiltinOperator_MAX+1, &TfLiteParser::ParseUnsupportedOperator)</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span> {</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="comment">// register supported operators</span></div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  m_ParserFunctions[tflite::BuiltinOperator_ADD] = &TfLiteParser::ParseAdd;</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  m_ParserFunctions[tflite::BuiltinOperator_AVERAGE_POOL_2D] = &TfLiteParser::ParseAveragePool2D;</div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  m_ParserFunctions[tflite::BuiltinOperator_BATCH_TO_SPACE_ND] = &TfLiteParser::ParseBatchToSpaceND;</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  m_ParserFunctions[tflite::BuiltinOperator_CONCATENATION] = &TfLiteParser::ParseConcatenation;</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  m_ParserFunctions[tflite::BuiltinOperator_CONV_2D] = &TfLiteParser::ParseConv2D;</div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  m_ParserFunctions[tflite::BuiltinOperator_CUSTOM] = &TfLiteParser::ParseCustomOperator;</div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  m_ParserFunctions[tflite::BuiltinOperator_DEPTHWISE_CONV_2D] = &TfLiteParser::ParseDepthwiseConv2D;</div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  m_ParserFunctions[tflite::BuiltinOperator_DEQUANTIZE] = &TfLiteParser::ParseDequantize;</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  m_ParserFunctions[tflite::BuiltinOperator_FULLY_CONNECTED] = &TfLiteParser::ParseFullyConnected;</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  m_ParserFunctions[tflite::BuiltinOperator_LOGISTIC] = &TfLiteParser::ParseLogistic;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  m_ParserFunctions[tflite::BuiltinOperator_L2_NORMALIZATION] = &TfLiteParser::ParseL2Normalization;</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  m_ParserFunctions[tflite::BuiltinOperator_MAX_POOL_2D] = &TfLiteParser::ParseMaxPool2D;</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  m_ParserFunctions[tflite::BuiltinOperator_MAXIMUM] = &TfLiteParser::ParseMaximum;</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  m_ParserFunctions[tflite::BuiltinOperator_MEAN] = &TfLiteParser::ParseMean;</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  m_ParserFunctions[tflite::BuiltinOperator_MINIMUM] = &TfLiteParser::ParseMinimum;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  m_ParserFunctions[tflite::BuiltinOperator_MUL] = &TfLiteParser::ParseMul;</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  m_ParserFunctions[tflite::BuiltinOperator_PACK] = &TfLiteParser::ParsePack;</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  m_ParserFunctions[tflite::BuiltinOperator_PAD] = &TfLiteParser::ParsePad;</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  m_ParserFunctions[tflite::BuiltinOperator_QUANTIZE] = &TfLiteParser::ParseQuantize;</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  m_ParserFunctions[tflite::BuiltinOperator_RELU] = &TfLiteParser::ParseRelu;</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  m_ParserFunctions[tflite::BuiltinOperator_RELU6] = &TfLiteParser::ParseRelu6;</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  m_ParserFunctions[tflite::BuiltinOperator_RESHAPE] = &TfLiteParser::ParseReshape;</div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  m_ParserFunctions[tflite::BuiltinOperator_RESIZE_BILINEAR] = &TfLiteParser::ParseResizeBilinear;</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  m_ParserFunctions[tflite::BuiltinOperator_RESIZE_NEAREST_NEIGHBOR] = &TfLiteParser::ParseResizeNearestNeighbor;</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  m_ParserFunctions[tflite::BuiltinOperator_SLICE] = &TfLiteParser::ParseSlice;</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  m_ParserFunctions[tflite::BuiltinOperator_SOFTMAX] = &TfLiteParser::ParseSoftmax;</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  m_ParserFunctions[tflite::BuiltinOperator_SPACE_TO_BATCH_ND] = &TfLiteParser::ParseSpaceToBatchND;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  m_ParserFunctions[tflite::BuiltinOperator_SPLIT] = &TfLiteParser::ParseSplit;</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  m_ParserFunctions[tflite::BuiltinOperator_SQUEEZE] = &TfLiteParser::ParseSqueeze;</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  m_ParserFunctions[tflite::BuiltinOperator_STRIDED_SLICE] = &TfLiteParser::ParseStridedSlice;</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  m_ParserFunctions[tflite::BuiltinOperator_SUB] = &TfLiteParser::ParseSub;</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  m_ParserFunctions[tflite::BuiltinOperator_TANH] = &TfLiteParser::ParseTanH;</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  m_ParserFunctions[tflite::BuiltinOperator_TRANSPOSE] = &TfLiteParser::ParseTranspose;</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  m_ParserFunctions[tflite::BuiltinOperator_TRANSPOSE_CONV] = &TfLiteParser::ParseTransposeConv;</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  m_ParserFunctions[tflite::BuiltinOperator_UNPACK] = &TfLiteParser::ParseUnpack;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  <span class="comment">// register supported custom operators</span></div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span>  m_CustomParserFunctions[<span class="stringliteral">"TFLite_Detection_PostProcess"</span>] = &TfLiteParser::ParseDetectionPostProcess;</div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span> }</div></div><!-- fragment --> |
| 413 | </div> |
| 414 | </div> |
| 415 | <a id="af022366efc39da82d47a5fa390be50f5"></a> |
| 416 | <h2 class="memtitle"><span class="permalink"><a href="#af022366efc39da82d47a5fa390be50f5">◆ </a></span>~TfLiteParser()</h2> |
| 417 | |
| 418 | <div class="memitem"> |
| 419 | <div class="memproto"> |
| 420 | <table class="mlabels"> |
| 421 | <tr> |
| 422 | <td class="mlabels-left"> |
| 423 | <table class="memname"> |
| 424 | <tr> |
| 425 | <td class="memname">virtual ~<a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml">TfLiteParser</a> </td> |
| 426 | <td>(</td> |
| 427 | <td class="paramname"></td><td>)</td> |
| 428 | <td></td> |
| 429 | </tr> |
| 430 | </table> |
| 431 | </td> |
| 432 | <td class="mlabels-right"> |
| 433 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span> </td> |
| 434 | </tr> |
| 435 | </table> |
| 436 | </div><div class="memdoc"> |
| 437 | |
| 438 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">63</a> of file <a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a>.</p> |
| 439 | |
| 440 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02886">TfLiteParser::GetBuffer()</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#l02739">TfLiteParser::GetInputTensorIds()</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#l02749">TfLiteParser::GetOutputTensorIds()</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#l02648">TfLiteParser::LoadModelFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02624">TfLiteParser::LoadModelFromFile()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00488">TfLiteParser::TfLiteParser()</a>.</p> |
| 441 | <div class="fragment"><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> {}</div></div><!-- fragment --> |
| 442 | </div> |
| 443 | </div> |
| 444 | <h2 class="groupheader">Member Function Documentation</h2> |
| 445 | <a id="ae8ee09f5e3e78ecfdf00acfdc37588dc"></a> |
| 446 | <h2 class="memtitle"><span class="permalink"><a href="#ae8ee09f5e3e78ecfdf00acfdc37588dc">◆ </a></span>CreateNetworkFromBinary()</h2> |
| 447 | |
| 448 | <div class="memitem"> |
| 449 | <div class="memproto"> |
| 450 | <table class="mlabels"> |
| 451 | <tr> |
| 452 | <td class="mlabels-left"> |
| 453 | <table class="memname"> |
| 454 | <tr> |
| 455 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">INetworkPtr</a> CreateNetworkFromBinary </td> |
| 456 | <td>(</td> |
| 457 | <td class="paramtype">const std::vector< uint8_t > & </td> |
| 458 | <td class="paramname"><em>binaryContent</em></td><td>)</td> |
| 459 | <td></td> |
| 460 | </tr> |
| 461 | </table> |
| 462 | </td> |
| 463 | <td class="mlabels-right"> |
| 464 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 465 | </tr> |
| 466 | </table> |
| 467 | </div><div class="memdoc"> |
| 468 | |
| 469 | <p>Create the network from a flatbuffers binary. </p> |
| 470 | |
| 471 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a7dd0134440a006226f95d547f0b3e89c">ITfLiteParser</a>.</p> |
| 472 | |
| 473 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">605</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 474 | |
| 475 | <p class="reference">References <a class="el" href="_logging_8hpp_source.xhtml#l00163">ARMNN_LOG</a>, <a class="el" href="_tf_parser_8cpp_source.xhtml#l00421">armnnTfParser::CalcPadding()</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00259">CHECK_SUPPORTED_FUSED_ACTIVATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00154">CHECK_TENSOR</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>, <a class="el" href="namespacearmnn.xhtml#a4dc0adc6737b5944e7671bee71788407acb5e100e5a9a3e7f6d1fd97512215282">armnn::error</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02886">TfLiteParser::GetBuffer()</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#l02739">TfLiteParser::GetInputTensorIds()</a>, <a class="el" href="_tensor_8cpp_source.xhtml#l00213">TensorInfo::GetNumBytes()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00093">TensorInfo::GetNumElements()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02686">TfLiteParser::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02648">TfLiteParser::LoadModelFromBinary()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00136">SoftmaxDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00438">Convolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00490">DepthwiseConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01117">TransposeConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00680">BatchToSpaceNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00801">SpaceToBatchNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00682">BatchToSpaceNdDescriptor::m_Crops</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00369">Pooling2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00440">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00492">DepthwiseConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00606">L2NormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00684">BatchToSpaceNdDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00806">SpaceToBatchNdDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01119">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00434">Convolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00486">DepthwiseConvolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00436">Convolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00488">DepthwiseConvolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00365">Pooling2dDescriptor::m_OutputShapeRounding</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00355">Pooling2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00428">Convolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00480">DepthwiseConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01111">TransposeConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00367">Pooling2dDescriptor::m_PaddingMethod</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00349">Pooling2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00422">Convolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00474">DepthwiseConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01105">TransposeConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00804">SpaceToBatchNdDescriptor::m_PadList</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00351">Pooling2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00424">Convolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00476">DepthwiseConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01107">TransposeConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00353">Pooling2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00426">Convolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00478">DepthwiseConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01109">TransposeConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00359">Pooling2dDescriptor::m_PoolHeight</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00347">Pooling2dDescriptor::m_PoolType</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00357">Pooling2dDescriptor::m_PoolWidth</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00361">Pooling2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00430">Convolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00482">DepthwiseConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00363">Pooling2dDescriptor::m_StrideY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00432">Convolution2dDescriptor::m_StrideY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00484">DepthwiseConvolution2dDescriptor::m_StrideY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01115">TransposeConvolution2dDescriptor::m_StrideY</a>, <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">options</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00090">TensorInfo::SetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>, and <a class="el" href="_exceptions_8cpp_source.xhtml#l00032">Exception::what()</a>.</p> |
| 476 | <div class="fragment"><div class="line"><a name="l00606"></a><span class="lineno"> 606</span> {</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  ResetParser();</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  m_Model = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a858104f225c302988fba35c1cb299066">LoadModelFromBinary</a>(binaryContent.data(), binaryContent.size());</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="keywordflow">return</span> CreateNetworkFromModel();</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> }</div><div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_a858104f225c302988fba35c1cb299066"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a858104f225c302988fba35c1cb299066">armnnTfLiteParser::TfLiteParser::LoadModelFromBinary</a></div><div class="ttdeci">static ModelPtr LoadModelFromBinary(const uint8_t *binaryContent, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02648">TfLiteParser.cpp:2648</a></div></div> |
| 477 | </div><!-- fragment --> |
| 478 | </div> |
| 479 | </div> |
| 480 | <a id="a012b24cafd443425314d4f9e06cec6c1"></a> |
| 481 | <h2 class="memtitle"><span class="permalink"><a href="#a012b24cafd443425314d4f9e06cec6c1">◆ </a></span>CreateNetworkFromBinaryFile()</h2> |
| 482 | |
| 483 | <div class="memitem"> |
| 484 | <div class="memproto"> |
| 485 | <table class="mlabels"> |
| 486 | <tr> |
| 487 | <td class="mlabels-left"> |
| 488 | <table class="memname"> |
| 489 | <tr> |
| 490 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#ace74f6f9feb95a964a49d79458232703">INetworkPtr</a> CreateNetworkFromBinaryFile </td> |
| 491 | <td>(</td> |
| 492 | <td class="paramtype">const char * </td> |
| 493 | <td class="paramname"><em>graphFile</em></td><td>)</td> |
| 494 | <td></td> |
| 495 | </tr> |
| 496 | </table> |
| 497 | </td> |
| 498 | <td class="mlabels-right"> |
| 499 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 500 | </tr> |
| 501 | </table> |
| 502 | </div><div class="memdoc"> |
| 503 | |
| 504 | <p>Create the network from a flatbuffers binary file on disk. </p> |
| 505 | |
| 506 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#ad92bc619ba8c78c9a4200d6635fde326">ITfLiteParser</a>.</p> |
| 507 | |
| 508 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00598">598</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 509 | |
| 510 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02624">TfLiteParser::LoadModelFromFile()</a>.</p> |
| 511 | <div class="fragment"><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> {</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  ResetParser();</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  m_Model = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac5411554ab8c02ca286af52c98f6bd87">LoadModelFromFile</a>(graphFile);</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  <span class="keywordflow">return</span> CreateNetworkFromModel();</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span> }</div><div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_ac5411554ab8c02ca286af52c98f6bd87"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#ac5411554ab8c02ca286af52c98f6bd87">armnnTfLiteParser::TfLiteParser::LoadModelFromFile</a></div><div class="ttdeci">static ModelPtr LoadModelFromFile(const char *fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02624">TfLiteParser.cpp:2624</a></div></div> |
| 512 | </div><!-- fragment --> |
| 513 | </div> |
| 514 | </div> |
| 515 | <a id="a5336d7700f4a5bcc272fbc9216541222"></a> |
| 516 | <h2 class="memtitle"><span class="permalink"><a href="#a5336d7700f4a5bcc272fbc9216541222">◆ </a></span>GetBuffer()</h2> |
| 517 | |
| 518 | <div class="memitem"> |
| 519 | <div class="memproto"> |
| 520 | <table class="mlabels"> |
| 521 | <tr> |
| 522 | <td class="mlabels-left"> |
| 523 | <table class="memname"> |
| 524 | <tr> |
| 525 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#aaafbda6e6816876b3d7963cfe64dd2f8">TfLiteParser::BufferRawPtr</a> GetBuffer </td> |
| 526 | <td>(</td> |
| 527 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 528 | <td class="paramname"><em>model</em>, </td> |
| 529 | </tr> |
| 530 | <tr> |
| 531 | <td class="paramkey"></td> |
| 532 | <td></td> |
| 533 | <td class="paramtype">size_t </td> |
| 534 | <td class="paramname"><em>bufferIndex</em> </td> |
| 535 | </tr> |
| 536 | <tr> |
| 537 | <td></td> |
| 538 | <td>)</td> |
| 539 | <td></td><td></td> |
| 540 | </tr> |
| 541 | </table> |
| 542 | </td> |
| 543 | <td class="mlabels-right"> |
| 544 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 545 | </tr> |
| 546 | </table> |
| 547 | </div><div class="memdoc"> |
| 548 | |
| 549 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02886">2886</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 550 | |
| 551 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00210">CHECK_BUFFER</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00238">CHECK_BUFFER_SIZE</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00172">CHECK_TENSOR_PTR</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_types_utils_8hpp_source.xhtml#l00168">armnn::GetDataTypeName()</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a9d02ea768c081d4bdb2b7cab0b3f510d">armnn::QAsymmS8</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6a9945327825b115e93a3b89f4302e76db">armnn::QSymmS8</a>, and <a class="el" href="namespacearmnn.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::Signed32</a>.</p> |
| 552 | |
| 553 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 554 | <div class="fragment"><div class="line"><a name="l02887"></a><span class="lineno"> 2887</span> {</div><div class="line"><a name="l02888"></a><span class="lineno"> 2888</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a7c88d54e3f895030c70330a4c9d76a7a">CHECK_BUFFER</a>(model, bufferIndex);</div><div class="line"><a name="l02889"></a><span class="lineno"> 2889</span>  <span class="keywordflow">return</span> model->buffers[bufferIndex].get();</div><div class="line"><a name="l02890"></a><span class="lineno"> 2890</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a7c88d54e3f895030c70330a4c9d76a7a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a7c88d54e3f895030c70330a4c9d76a7a">CHECK_BUFFER</a></div><div class="ttdeci">#define CHECK_BUFFER(MODEL, BUFFER_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00210">TfLiteParser.cpp:210</a></div></div> |
| 555 | </div><!-- fragment --> |
| 556 | </div> |
| 557 | </div> |
| 558 | <a id="a4b49afca01112a4f4d023726ccd38876"></a> |
| 559 | <h2 class="memtitle"><span class="permalink"><a href="#a4b49afca01112a4f4d023726ccd38876">◆ </a></span>GetInputs()</h2> |
| 560 | |
| 561 | <div class="memitem"> |
| 562 | <div class="memproto"> |
| 563 | <table class="mlabels"> |
| 564 | <tr> |
| 565 | <td class="mlabels-left"> |
| 566 | <table class="memname"> |
| 567 | <tr> |
| 568 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TfLiteParser::TensorRawPtrVector</a> GetInputs </td> |
| 569 | <td>(</td> |
| 570 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 571 | <td class="paramname"><em>model</em>, </td> |
| 572 | </tr> |
| 573 | <tr> |
| 574 | <td class="paramkey"></td> |
| 575 | <td></td> |
| 576 | <td class="paramtype">size_t </td> |
| 577 | <td class="paramname"><em>subgraphIndex</em>, </td> |
| 578 | </tr> |
| 579 | <tr> |
| 580 | <td class="paramkey"></td> |
| 581 | <td></td> |
| 582 | <td class="paramtype">size_t </td> |
| 583 | <td class="paramname"><em>operatorIndex</em> </td> |
| 584 | </tr> |
| 585 | <tr> |
| 586 | <td></td> |
| 587 | <td>)</td> |
| 588 | <td></td><td></td> |
| 589 | </tr> |
| 590 | </table> |
| 591 | </td> |
| 592 | <td class="mlabels-right"> |
| 593 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 594 | </tr> |
| 595 | </table> |
| 596 | </div><div class="memdoc"> |
| 597 | |
| 598 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02667">2667</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 599 | |
| 600 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, and <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>.</p> |
| 601 | |
| 602 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 603 | <div class="fragment"><div class="line"><a name="l02670"></a><span class="lineno"> 2670</span> {</div><div class="line"><a name="l02671"></a><span class="lineno"> 2671</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a>(model, subgraphIndex, operatorIndex);</div><div class="line"><a name="l02672"></a><span class="lineno"> 2672</span> </div><div class="line"><a name="l02673"></a><span class="lineno"> 2673</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02674"></a><span class="lineno"> 2674</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & operatorPtr = subgraphPtr->operators[operatorIndex];</div><div class="line"><a name="l02675"></a><span class="lineno"> 2675</span> </div><div class="line"><a name="l02676"></a><span class="lineno"> 2676</span>  <span class="keywordtype">size_t</span> inputCount = operatorPtr->inputs.size();</div><div class="line"><a name="l02677"></a><span class="lineno"> 2677</span>  <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> result(inputCount);</div><div class="line"><a name="l02678"></a><span class="lineno"> 2678</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i<inputCount; ++i)</div><div class="line"><a name="l02679"></a><span class="lineno"> 2679</span>  {</div><div class="line"><a name="l02680"></a><span class="lineno"> 2680</span>  uint32_t inputId = <a class="code" href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(operatorPtr->inputs[i]);</div><div class="line"><a name="l02681"></a><span class="lineno"> 2681</span>  result[i] = subgraphPtr->tensors[inputId].get();</div><div class="line"><a name="l02682"></a><span class="lineno"> 2682</span>  }</div><div class="line"><a name="l02683"></a><span class="lineno"> 2683</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02684"></a><span class="lineno"> 2684</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_afbe702264a4e175da37c4941c0894bdb"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a></div><div class="ttdeci">#define CHECK_MODEL(MODEL, SUBGRAPH_INDEX, OPERATOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00124">TfLiteParser.cpp:124</a></div></div> |
| 604 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_abd8bee7fb9b86485a60bc7ee05114270"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">armnnTfLiteParser::TfLiteParser::TensorRawPtrVector</a></div><div class="ttdeci">std::vector< TensorRawPtr > TensorRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8hpp_source.xhtml#l00029">TfLiteParser.hpp:29</a></div></div> |
| 605 | <div class="ttc" id="_verification_helpers_8hpp_xhtml_aaef93dc9a69f51b59f3cdd0ff0165927"><div class="ttname"><a href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a></div><div class="ttdeci">#define CHECKED_NON_NEGATIVE(VALUE)</div><div class="ttdef"><b>Definition:</b> <a href="_verification_helpers_8hpp_source.xhtml#l00035">VerificationHelpers.hpp:35</a></div></div> |
| 606 | </div><!-- fragment --> |
| 607 | </div> |
| 608 | </div> |
| 609 | <a id="a8b4b0b88a5e79a88b8b60db76398f575"></a> |
| 610 | <h2 class="memtitle"><span class="permalink"><a href="#a8b4b0b88a5e79a88b8b60db76398f575">◆ </a></span>GetInputTensorIds()</h2> |
| 611 | |
| 612 | <div class="memitem"> |
| 613 | <div class="memproto"> |
| 614 | <table class="mlabels"> |
| 615 | <tr> |
| 616 | <td class="mlabels-left"> |
| 617 | <table class="memname"> |
| 618 | <tr> |
| 619 | <td class="memname">std::vector< int32_t > & GetInputTensorIds </td> |
| 620 | <td>(</td> |
| 621 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 622 | <td class="paramname"><em>model</em>, </td> |
| 623 | </tr> |
| 624 | <tr> |
| 625 | <td class="paramkey"></td> |
| 626 | <td></td> |
| 627 | <td class="paramtype">size_t </td> |
| 628 | <td class="paramname"><em>subgraphIndex</em>, </td> |
| 629 | </tr> |
| 630 | <tr> |
| 631 | <td class="paramkey"></td> |
| 632 | <td></td> |
| 633 | <td class="paramtype">size_t </td> |
| 634 | <td class="paramname"><em>operatorIndex</em> </td> |
| 635 | </tr> |
| 636 | <tr> |
| 637 | <td></td> |
| 638 | <td>)</td> |
| 639 | <td></td><td></td> |
| 640 | </tr> |
| 641 | </table> |
| 642 | </td> |
| 643 | <td class="mlabels-right"> |
| 644 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 645 | </tr> |
| 646 | </table> |
| 647 | </div><div class="memdoc"> |
| 648 | |
| 649 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02739">2739</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 650 | |
| 651 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>.</p> |
| 652 | |
| 653 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 654 | <div class="fragment"><div class="line"><a name="l02742"></a><span class="lineno"> 2742</span> {</div><div class="line"><a name="l02743"></a><span class="lineno"> 2743</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a>(model, subgraphIndex, operatorIndex);</div><div class="line"><a name="l02744"></a><span class="lineno"> 2744</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02745"></a><span class="lineno"> 2745</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & operatorPtr = subgraphPtr->operators[operatorIndex];</div><div class="line"><a name="l02746"></a><span class="lineno"> 2746</span>  <span class="keywordflow">return</span> operatorPtr->inputs;</div><div class="line"><a name="l02747"></a><span class="lineno"> 2747</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_afbe702264a4e175da37c4941c0894bdb"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a></div><div class="ttdeci">#define CHECK_MODEL(MODEL, SUBGRAPH_INDEX, OPERATOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00124">TfLiteParser.cpp:124</a></div></div> |
| 655 | </div><!-- fragment --> |
| 656 | </div> |
| 657 | </div> |
| 658 | <a id="a91ba75587a31033088cb4f156e847efb"></a> |
| 659 | <h2 class="memtitle"><span class="permalink"><a href="#a91ba75587a31033088cb4f156e847efb">◆ </a></span>GetNetworkInputBindingInfo()</h2> |
| 660 | |
| 661 | <div class="memitem"> |
| 662 | <div class="memproto"> |
| 663 | <table class="mlabels"> |
| 664 | <tr> |
| 665 | <td class="mlabels-left"> |
| 666 | <table class="memname"> |
| 667 | <tr> |
| 668 | <td class="memname"><a class="el" href="namespacearmnn_tf_lite_parser.xhtml#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> GetNetworkInputBindingInfo </td> |
| 669 | <td>(</td> |
| 670 | <td class="paramtype">size_t </td> |
| 671 | <td class="paramname"><em>subgraphId</em>, </td> |
| 672 | </tr> |
| 673 | <tr> |
| 674 | <td class="paramkey"></td> |
| 675 | <td></td> |
| 676 | <td class="paramtype">const std::string & </td> |
| 677 | <td class="paramname"><em>name</em> </td> |
| 678 | </tr> |
| 679 | <tr> |
| 680 | <td></td> |
| 681 | <td>)</td> |
| 682 | <td></td><td> const</td> |
| 683 | </tr> |
| 684 | </table> |
| 685 | </td> |
| 686 | <td class="mlabels-right"> |
| 687 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 688 | </tr> |
| 689 | </table> |
| 690 | </div><div class="memdoc"> |
| 691 | |
| 692 | <p>Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name and subgraph id. </p> |
| 693 | |
| 694 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a5a276dd9f2bb03bd0ea4424c5e5512ef">ITfLiteParser</a>.</p> |
| 695 | |
| 696 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02955">2955</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 697 | |
| 698 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02706">TfLiteParser::GetSubgraphInputs()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 699 | <div class="fragment"><div class="line"><a name="l02957"></a><span class="lineno"> 2957</span> {</div><div class="line"><a name="l02958"></a><span class="lineno"> 2958</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(m_Model, subgraphId);</div><div class="line"><a name="l02959"></a><span class="lineno"> 2959</span>  <span class="keyword">auto</span> inputs = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abda91b07a94d0f498b76655e03647d9a">GetSubgraphInputs</a>(m_Model, subgraphId);</div><div class="line"><a name="l02960"></a><span class="lineno"> 2960</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span> & input : inputs)</div><div class="line"><a name="l02961"></a><span class="lineno"> 2961</span>  {</div><div class="line"><a name="l02962"></a><span class="lineno"> 2962</span>  <span class="keywordflow">if</span> (input.second->name == name)</div><div class="line"><a name="l02963"></a><span class="lineno"> 2963</span>  {</div><div class="line"><a name="l02964"></a><span class="lineno"> 2964</span>  <span class="keyword">auto</span> bindingId = GenerateLayerBindingId(subgraphId, input.first);</div><div class="line"><a name="l02965"></a><span class="lineno"> 2965</span>  <span class="keywordflow">return</span> std::make_pair(bindingId, <a class="code" href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">ToTensorInfo</a>(input.second));</div><div class="line"><a name="l02966"></a><span class="lineno"> 2966</span>  }</div><div class="line"><a name="l02967"></a><span class="lineno"> 2967</span>  }</div><div class="line"><a name="l02968"></a><span class="lineno"> 2968</span> </div><div class="line"><a name="l02969"></a><span class="lineno"> 2969</span>  std::stringstream bindings;</div><div class="line"><a name="l02970"></a><span class="lineno"> 2970</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span> & input : inputs)</div><div class="line"><a name="l02971"></a><span class="lineno"> 2971</span>  {</div><div class="line"><a name="l02972"></a><span class="lineno"> 2972</span>  bindings << <span class="stringliteral">"'"</span> << input.second->name << <span class="stringliteral">"' "</span>;</div><div class="line"><a name="l02973"></a><span class="lineno"> 2973</span>  }</div><div class="line"><a name="l02974"></a><span class="lineno"> 2974</span> </div><div class="line"><a name="l02975"></a><span class="lineno"> 2975</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l02976"></a><span class="lineno"> 2976</span>  boost::str(</div><div class="line"><a name="l02977"></a><span class="lineno"> 2977</span>  boost::format(<span class="stringliteral">"No input binding found for subgraph:%1% and name:%2%. "</span></div><div class="line"><a name="l02978"></a><span class="lineno"> 2978</span>  <span class="stringliteral">"Possible inputs are: [%3%] %4%"</span>) %</div><div class="line"><a name="l02979"></a><span class="lineno"> 2979</span>  subgraphId %</div><div class="line"><a name="l02980"></a><span class="lineno"> 2980</span>  name %</div><div class="line"><a name="l02981"></a><span class="lineno"> 2981</span>  bindings.str() %</div><div class="line"><a name="l02982"></a><span class="lineno"> 2982</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l02983"></a><span class="lineno"> 2983</span> }</div><div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_abda91b07a94d0f498b76655e03647d9a"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abda91b07a94d0f498b76655e03647d9a">armnnTfLiteParser::TfLiteParser::GetSubgraphInputs</a></div><div class="ttdeci">static TensorIdRawPtrVector GetSubgraphInputs(const ModelPtr &model, size_t subgraphIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02706">TfLiteParser.cpp:2706</a></div></div> |
| 700 | <div class="ttc" id="namespacearmnn_deserializer_xhtml_aa28868b7dc87dc4d957db6c775a591c1"><div class="ttname"><a href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">armnnDeserializer::ToTensorInfo</a></div><div class="ttdeci">armnn::TensorInfo ToTensorInfo(Deserializer::TensorRawPtr tensorPtr)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00501">Deserializer.cpp:501</a></div></div> |
| 701 | <div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 702 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 703 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 704 | </div><!-- fragment --> |
| 705 | </div> |
| 706 | </div> |
| 707 | <a id="a475b7cb5db683bb6fbb1c3fae40cb2b3"></a> |
| 708 | <h2 class="memtitle"><span class="permalink"><a href="#a475b7cb5db683bb6fbb1c3fae40cb2b3">◆ </a></span>GetNetworkOutputBindingInfo()</h2> |
| 709 | |
| 710 | <div class="memitem"> |
| 711 | <div class="memproto"> |
| 712 | <table class="mlabels"> |
| 713 | <tr> |
| 714 | <td class="mlabels-left"> |
| 715 | <table class="memname"> |
| 716 | <tr> |
| 717 | <td class="memname"><a class="el" href="namespacearmnn_tf_lite_parser.xhtml#a9084adbf804022c874039ad40d1939e9">BindingPointInfo</a> GetNetworkOutputBindingInfo </td> |
| 718 | <td>(</td> |
| 719 | <td class="paramtype">size_t </td> |
| 720 | <td class="paramname"><em>subgraphId</em>, </td> |
| 721 | </tr> |
| 722 | <tr> |
| 723 | <td class="paramkey"></td> |
| 724 | <td></td> |
| 725 | <td class="paramtype">const std::string & </td> |
| 726 | <td class="paramname"><em>name</em> </td> |
| 727 | </tr> |
| 728 | <tr> |
| 729 | <td></td> |
| 730 | <td>)</td> |
| 731 | <td></td><td> const</td> |
| 732 | </tr> |
| 733 | </table> |
| 734 | </td> |
| 735 | <td class="mlabels-right"> |
| 736 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 737 | </tr> |
| 738 | </table> |
| 739 | </div><div class="memdoc"> |
| 740 | |
| 741 | <p>Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name and subgraph id. </p> |
| 742 | |
| 743 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a5da770529a8e9a75a6efd878f6307740">ITfLiteParser</a>.</p> |
| 744 | |
| 745 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02985">2985</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 746 | |
| 747 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02723">TfLiteParser::GetSubgraphOutputs()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 748 | <div class="fragment"><div class="line"><a name="l02987"></a><span class="lineno"> 2987</span> {</div><div class="line"><a name="l02988"></a><span class="lineno"> 2988</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(m_Model, subgraphId);</div><div class="line"><a name="l02989"></a><span class="lineno"> 2989</span>  <span class="keyword">auto</span> outputs = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afba7f99227765786c4ed9cb2acc09739">GetSubgraphOutputs</a>(m_Model, subgraphId);</div><div class="line"><a name="l02990"></a><span class="lineno"> 2990</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < outputs.size(); ++i)</div><div class="line"><a name="l02991"></a><span class="lineno"> 2991</span>  {</div><div class="line"><a name="l02992"></a><span class="lineno"> 2992</span>  <span class="keyword">auto</span> <span class="keyword">const</span> output = outputs[i];</div><div class="line"><a name="l02993"></a><span class="lineno"> 2993</span>  <span class="keywordflow">if</span> (output.second->name == name)</div><div class="line"><a name="l02994"></a><span class="lineno"> 2994</span>  {</div><div class="line"><a name="l02995"></a><span class="lineno"> 2995</span>  <span class="keyword">auto</span> bindingId = GenerateLayerBindingId(subgraphId, output.first);</div><div class="line"><a name="l02996"></a><span class="lineno"> 2996</span>  std::vector<unsigned int> shape = m_OverridenOutputShapes.size() > 0 ?</div><div class="line"><a name="l02997"></a><span class="lineno"> 2997</span>  m_OverridenOutputShapes[i] : AsUnsignedVector(output.second->shape);</div><div class="line"><a name="l02998"></a><span class="lineno"> 2998</span>  <span class="keywordflow">return</span> std::make_pair(bindingId, <a class="code" href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">ToTensorInfo</a>(output.second, shape));</div><div class="line"><a name="l02999"></a><span class="lineno"> 2999</span>  }</div><div class="line"><a name="l03000"></a><span class="lineno"> 3000</span>  }</div><div class="line"><a name="l03001"></a><span class="lineno"> 3001</span> </div><div class="line"><a name="l03002"></a><span class="lineno"> 3002</span>  std::stringstream bindings;</div><div class="line"><a name="l03003"></a><span class="lineno"> 3003</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span> & output : outputs)</div><div class="line"><a name="l03004"></a><span class="lineno"> 3004</span>  {</div><div class="line"><a name="l03005"></a><span class="lineno"> 3005</span>  bindings << <span class="stringliteral">"'"</span> << output.second->name << <span class="stringliteral">"' "</span>;</div><div class="line"><a name="l03006"></a><span class="lineno"> 3006</span>  }</div><div class="line"><a name="l03007"></a><span class="lineno"> 3007</span> </div><div class="line"><a name="l03008"></a><span class="lineno"> 3008</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l03009"></a><span class="lineno"> 3009</span>  boost::str(</div><div class="line"><a name="l03010"></a><span class="lineno"> 3010</span>  boost::format(<span class="stringliteral">"No output binding found for subgraph:%1% and name:%2%. "</span></div><div class="line"><a name="l03011"></a><span class="lineno"> 3011</span>  <span class="stringliteral">"Possible outputs are: [%3%] %4%"</span>) %</div><div class="line"><a name="l03012"></a><span class="lineno"> 3012</span>  subgraphId %</div><div class="line"><a name="l03013"></a><span class="lineno"> 3013</span>  name %</div><div class="line"><a name="l03014"></a><span class="lineno"> 3014</span>  bindings.str() %</div><div class="line"><a name="l03015"></a><span class="lineno"> 3015</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l03016"></a><span class="lineno"> 3016</span> }</div><div class="ttc" id="namespacearmnn_deserializer_xhtml_aa28868b7dc87dc4d957db6c775a591c1"><div class="ttname"><a href="namespacearmnn_deserializer.xhtml#aa28868b7dc87dc4d957db6c775a591c1">armnnDeserializer::ToTensorInfo</a></div><div class="ttdeci">armnn::TensorInfo ToTensorInfo(Deserializer::TensorRawPtr tensorPtr)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.xhtml#l00501">Deserializer.cpp:501</a></div></div> |
| 749 | <div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 750 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_afba7f99227765786c4ed9cb2acc09739"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afba7f99227765786c4ed9cb2acc09739">armnnTfLiteParser::TfLiteParser::GetSubgraphOutputs</a></div><div class="ttdeci">static TensorIdRawPtrVector GetSubgraphOutputs(const ModelPtr &model, size_t subgraphIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02723">TfLiteParser.cpp:2723</a></div></div> |
| 751 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 752 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 753 | </div><!-- fragment --> |
| 754 | </div> |
| 755 | </div> |
| 756 | <a id="a84ad865bb9b5fa0e4841aa35a14a14d8"></a> |
| 757 | <h2 class="memtitle"><span class="permalink"><a href="#a84ad865bb9b5fa0e4841aa35a14a14d8">◆ </a></span>GetOutputs()</h2> |
| 758 | |
| 759 | <div class="memitem"> |
| 760 | <div class="memproto"> |
| 761 | <table class="mlabels"> |
| 762 | <tr> |
| 763 | <td class="mlabels-left"> |
| 764 | <table class="memname"> |
| 765 | <tr> |
| 766 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TfLiteParser::TensorRawPtrVector</a> GetOutputs </td> |
| 767 | <td>(</td> |
| 768 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 769 | <td class="paramname"><em>model</em>, </td> |
| 770 | </tr> |
| 771 | <tr> |
| 772 | <td class="paramkey"></td> |
| 773 | <td></td> |
| 774 | <td class="paramtype">size_t </td> |
| 775 | <td class="paramname"><em>subgraphIndex</em>, </td> |
| 776 | </tr> |
| 777 | <tr> |
| 778 | <td class="paramkey"></td> |
| 779 | <td></td> |
| 780 | <td class="paramtype">size_t </td> |
| 781 | <td class="paramname"><em>operatorIndex</em> </td> |
| 782 | </tr> |
| 783 | <tr> |
| 784 | <td></td> |
| 785 | <td>)</td> |
| 786 | <td></td><td></td> |
| 787 | </tr> |
| 788 | </table> |
| 789 | </td> |
| 790 | <td class="mlabels-right"> |
| 791 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 792 | </tr> |
| 793 | </table> |
| 794 | </div><div class="memdoc"> |
| 795 | |
| 796 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02686">2686</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 797 | |
| 798 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00154">CHECK_TENSOR</a>, and <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>.</p> |
| 799 | |
| 800 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 801 | <div class="fragment"><div class="line"><a name="l02689"></a><span class="lineno"> 2689</span> {</div><div class="line"><a name="l02690"></a><span class="lineno"> 2690</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a>(model, subgraphIndex, operatorIndex);</div><div class="line"><a name="l02691"></a><span class="lineno"> 2691</span> </div><div class="line"><a name="l02692"></a><span class="lineno"> 2692</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02693"></a><span class="lineno"> 2693</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & operatorPtr = subgraphPtr->operators[operatorIndex];</div><div class="line"><a name="l02694"></a><span class="lineno"> 2694</span> </div><div class="line"><a name="l02695"></a><span class="lineno"> 2695</span>  <span class="keywordtype">size_t</span> outputCount = operatorPtr->outputs.size();</div><div class="line"><a name="l02696"></a><span class="lineno"> 2696</span>  <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> result(outputCount);</div><div class="line"><a name="l02697"></a><span class="lineno"> 2697</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i<outputCount; ++i)</div><div class="line"><a name="l02698"></a><span class="lineno"> 2698</span>  {</div><div class="line"><a name="l02699"></a><span class="lineno"> 2699</span>  uint32_t outputId = <a class="code" href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(operatorPtr->outputs[i]);</div><div class="line"><a name="l02700"></a><span class="lineno"> 2700</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#aa1664dc13adbc85ac12fb584b76bfdae">CHECK_TENSOR</a>(model, subgraphIndex, outputId);</div><div class="line"><a name="l02701"></a><span class="lineno"> 2701</span>  result[i] = subgraphPtr->tensors[outputId].get();</div><div class="line"><a name="l02702"></a><span class="lineno"> 2702</span>  }</div><div class="line"><a name="l02703"></a><span class="lineno"> 2703</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02704"></a><span class="lineno"> 2704</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_afbe702264a4e175da37c4941c0894bdb"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a></div><div class="ttdeci">#define CHECK_MODEL(MODEL, SUBGRAPH_INDEX, OPERATOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00124">TfLiteParser.cpp:124</a></div></div> |
| 802 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_abd8bee7fb9b86485a60bc7ee05114270"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abd8bee7fb9b86485a60bc7ee05114270">armnnTfLiteParser::TfLiteParser::TensorRawPtrVector</a></div><div class="ttdeci">std::vector< TensorRawPtr > TensorRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8hpp_source.xhtml#l00029">TfLiteParser.hpp:29</a></div></div> |
| 803 | <div class="ttc" id="_tf_lite_parser_8cpp_xhtml_aa1664dc13adbc85ac12fb584b76bfdae"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#aa1664dc13adbc85ac12fb584b76bfdae">CHECK_TENSOR</a></div><div class="ttdeci">#define CHECK_TENSOR(MODEL, SUBGRAPH_INDEX, TENSOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00154">TfLiteParser.cpp:154</a></div></div> |
| 804 | <div class="ttc" id="_verification_helpers_8hpp_xhtml_aaef93dc9a69f51b59f3cdd0ff0165927"><div class="ttname"><a href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a></div><div class="ttdeci">#define CHECKED_NON_NEGATIVE(VALUE)</div><div class="ttdef"><b>Definition:</b> <a href="_verification_helpers_8hpp_source.xhtml#l00035">VerificationHelpers.hpp:35</a></div></div> |
| 805 | </div><!-- fragment --> |
| 806 | </div> |
| 807 | </div> |
| 808 | <a id="afe6c475f92d02dd1eb12acd746e4736f"></a> |
| 809 | <h2 class="memtitle"><span class="permalink"><a href="#afe6c475f92d02dd1eb12acd746e4736f">◆ </a></span>GetOutputTensorIds()</h2> |
| 810 | |
| 811 | <div class="memitem"> |
| 812 | <div class="memproto"> |
| 813 | <table class="mlabels"> |
| 814 | <tr> |
| 815 | <td class="mlabels-left"> |
| 816 | <table class="memname"> |
| 817 | <tr> |
| 818 | <td class="memname">std::vector< int32_t > & GetOutputTensorIds </td> |
| 819 | <td>(</td> |
| 820 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 821 | <td class="paramname"><em>model</em>, </td> |
| 822 | </tr> |
| 823 | <tr> |
| 824 | <td class="paramkey"></td> |
| 825 | <td></td> |
| 826 | <td class="paramtype">size_t </td> |
| 827 | <td class="paramname"><em>subgraphIndex</em>, </td> |
| 828 | </tr> |
| 829 | <tr> |
| 830 | <td class="paramkey"></td> |
| 831 | <td></td> |
| 832 | <td class="paramtype">size_t </td> |
| 833 | <td class="paramname"><em>operatorIndex</em> </td> |
| 834 | </tr> |
| 835 | <tr> |
| 836 | <td></td> |
| 837 | <td>)</td> |
| 838 | <td></td><td></td> |
| 839 | </tr> |
| 840 | </table> |
| 841 | </td> |
| 842 | <td class="mlabels-right"> |
| 843 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 844 | </tr> |
| 845 | </table> |
| 846 | </div><div class="memdoc"> |
| 847 | |
| 848 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">2749</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 849 | |
| 850 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a9c2cba04b6d7ace4fc2a2436b82a5a63">IConnectableLayer::GetNumInputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#ac2dac3b61c94de52093616be4ab17f8d">IConnectableLayer::GetNumOutputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</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="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 851 | |
| 852 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">TfLiteParser::OutputShapeOfReshape()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">TfLiteParser::OutputShapeOfSqueeze()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 853 | <div class="fragment"><div class="line"><a name="l02752"></a><span class="lineno"> 2752</span> {</div><div class="line"><a name="l02753"></a><span class="lineno"> 2753</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a>(model, subgraphIndex, operatorIndex);</div><div class="line"><a name="l02754"></a><span class="lineno"> 2754</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02755"></a><span class="lineno"> 2755</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & operatorPtr = subgraphPtr->operators[operatorIndex];</div><div class="line"><a name="l02756"></a><span class="lineno"> 2756</span>  <span class="keywordflow">return</span> operatorPtr->outputs;</div><div class="line"><a name="l02757"></a><span class="lineno"> 2757</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_afbe702264a4e175da37c4941c0894bdb"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#afbe702264a4e175da37c4941c0894bdb">CHECK_MODEL</a></div><div class="ttdeci">#define CHECK_MODEL(MODEL, SUBGRAPH_INDEX, OPERATOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00124">TfLiteParser.cpp:124</a></div></div> |
| 854 | </div><!-- fragment --> |
| 855 | </div> |
| 856 | </div> |
| 857 | <a id="ae18739116b52dbab31bbf490450beb90"></a> |
| 858 | <h2 class="memtitle"><span class="permalink"><a href="#ae18739116b52dbab31bbf490450beb90">◆ </a></span>GetSubgraphCount()</h2> |
| 859 | |
| 860 | <div class="memitem"> |
| 861 | <div class="memproto"> |
| 862 | <table class="mlabels"> |
| 863 | <tr> |
| 864 | <td class="mlabels-left"> |
| 865 | <table class="memname"> |
| 866 | <tr> |
| 867 | <td class="memname">size_t GetSubgraphCount </td> |
| 868 | <td>(</td> |
| 869 | <td class="paramname"></td><td>)</td> |
| 870 | <td> const</td> |
| 871 | </tr> |
| 872 | </table> |
| 873 | </td> |
| 874 | <td class="mlabels-right"> |
| 875 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 876 | </tr> |
| 877 | </table> |
| 878 | </div><div class="memdoc"> |
| 879 | |
| 880 | <p>Return the number of subgraphs in the parsed model. </p> |
| 881 | |
| 882 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#ad4185c55afdabd36f63cd50a8cafab00">ITfLiteParser</a>.</p> |
| 883 | |
| 884 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03018">3018</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 885 | <div class="fragment"><div class="line"><a name="l03019"></a><span class="lineno"> 3019</span> {</div><div class="line"><a name="l03020"></a><span class="lineno"> 3020</span>  <span class="keywordflow">return</span> m_Model->subgraphs.size();</div><div class="line"><a name="l03021"></a><span class="lineno"> 3021</span> }</div></div><!-- fragment --> |
| 886 | </div> |
| 887 | </div> |
| 888 | <a id="abda91b07a94d0f498b76655e03647d9a"></a> |
| 889 | <h2 class="memtitle"><span class="permalink"><a href="#abda91b07a94d0f498b76655e03647d9a">◆ </a></span>GetSubgraphInputs()</h2> |
| 890 | |
| 891 | <div class="memitem"> |
| 892 | <div class="memproto"> |
| 893 | <table class="mlabels"> |
| 894 | <tr> |
| 895 | <td class="mlabels-left"> |
| 896 | <table class="memname"> |
| 897 | <tr> |
| 898 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TfLiteParser::TensorIdRawPtrVector</a> GetSubgraphInputs </td> |
| 899 | <td>(</td> |
| 900 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 901 | <td class="paramname"><em>model</em>, </td> |
| 902 | </tr> |
| 903 | <tr> |
| 904 | <td class="paramkey"></td> |
| 905 | <td></td> |
| 906 | <td class="paramtype">size_t </td> |
| 907 | <td class="paramname"><em>subgraphIndex</em> </td> |
| 908 | </tr> |
| 909 | <tr> |
| 910 | <td></td> |
| 911 | <td>)</td> |
| 912 | <td></td><td></td> |
| 913 | </tr> |
| 914 | </table> |
| 915 | </td> |
| 916 | <td class="mlabels-right"> |
| 917 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 918 | </tr> |
| 919 | </table> |
| 920 | </div><div class="memdoc"> |
| 921 | |
| 922 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02706">2706</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 923 | |
| 924 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00154">CHECK_TENSOR</a>, and <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>.</p> |
| 925 | |
| 926 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02955">TfLiteParser::GetNetworkInputBindingInfo()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03023">TfLiteParser::GetSubgraphInputTensorNames()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 927 | <div class="fragment"><div class="line"><a name="l02708"></a><span class="lineno"> 2708</span> {</div><div class="line"><a name="l02709"></a><span class="lineno"> 2709</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(model, subgraphIndex);</div><div class="line"><a name="l02710"></a><span class="lineno"> 2710</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02711"></a><span class="lineno"> 2711</span> </div><div class="line"><a name="l02712"></a><span class="lineno"> 2712</span>  <span class="keywordtype">size_t</span> inputCount = subgraphPtr->inputs.size();</div><div class="line"><a name="l02713"></a><span class="lineno"> 2713</span>  <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> result(inputCount);</div><div class="line"><a name="l02714"></a><span class="lineno"> 2714</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i<inputCount; ++i)</div><div class="line"><a name="l02715"></a><span class="lineno"> 2715</span>  {</div><div class="line"><a name="l02716"></a><span class="lineno"> 2716</span>  uint32_t inputId = <a class="code" href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(subgraphPtr->inputs[i]);</div><div class="line"><a name="l02717"></a><span class="lineno"> 2717</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#aa1664dc13adbc85ac12fb584b76bfdae">CHECK_TENSOR</a>(model, subgraphIndex, inputId);</div><div class="line"><a name="l02718"></a><span class="lineno"> 2718</span>  result[i] = std::make_pair(inputId, subgraphPtr->tensors[inputId].get());</div><div class="line"><a name="l02719"></a><span class="lineno"> 2719</span>  }</div><div class="line"><a name="l02720"></a><span class="lineno"> 2720</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02721"></a><span class="lineno"> 2721</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_aa1664dc13adbc85ac12fb584b76bfdae"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#aa1664dc13adbc85ac12fb584b76bfdae">CHECK_TENSOR</a></div><div class="ttdeci">#define CHECK_TENSOR(MODEL, SUBGRAPH_INDEX, TENSOR_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00154">TfLiteParser.cpp:154</a></div></div> |
| 928 | <div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 929 | <div class="ttc" id="_verification_helpers_8hpp_xhtml_aaef93dc9a69f51b59f3cdd0ff0165927"><div class="ttname"><a href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a></div><div class="ttdeci">#define CHECKED_NON_NEGATIVE(VALUE)</div><div class="ttdef"><b>Definition:</b> <a href="_verification_helpers_8hpp_source.xhtml#l00035">VerificationHelpers.hpp:35</a></div></div> |
| 930 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_a86428e0c674542488c7292dfbe2ce381"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">armnnTfLiteParser::TfLiteParser::TensorIdRawPtrVector</a></div><div class="ttdeci">std::vector< TensorIdRawPtr > TensorIdRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8hpp_source.xhtml#l00031">TfLiteParser.hpp:31</a></div></div> |
| 931 | </div><!-- fragment --> |
| 932 | </div> |
| 933 | </div> |
| 934 | <a id="a58501692772880e7ef55485a4c95aab9"></a> |
| 935 | <h2 class="memtitle"><span class="permalink"><a href="#a58501692772880e7ef55485a4c95aab9">◆ </a></span>GetSubgraphInputTensorNames()</h2> |
| 936 | |
| 937 | <div class="memitem"> |
| 938 | <div class="memproto"> |
| 939 | <table class="mlabels"> |
| 940 | <tr> |
| 941 | <td class="mlabels-left"> |
| 942 | <table class="memname"> |
| 943 | <tr> |
| 944 | <td class="memname">std::vector< std::string > GetSubgraphInputTensorNames </td> |
| 945 | <td>(</td> |
| 946 | <td class="paramtype">size_t </td> |
| 947 | <td class="paramname"><em>subgraphId</em></td><td>)</td> |
| 948 | <td> const</td> |
| 949 | </tr> |
| 950 | </table> |
| 951 | </td> |
| 952 | <td class="mlabels-right"> |
| 953 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 954 | </tr> |
| 955 | </table> |
| 956 | </div><div class="memdoc"> |
| 957 | |
| 958 | <p>Return the input tensor names for a given subgraph. </p> |
| 959 | |
| 960 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a394089772c3eb50f180906c145b5bc11">ITfLiteParser</a>.</p> |
| 961 | |
| 962 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03023">3023</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 963 | |
| 964 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02706">TfLiteParser::GetSubgraphInputs()</a>.</p> |
| 965 | <div class="fragment"><div class="line"><a name="l03024"></a><span class="lineno"> 3024</span> {</div><div class="line"><a name="l03025"></a><span class="lineno"> 3025</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(m_Model, subgraphId);</div><div class="line"><a name="l03026"></a><span class="lineno"> 3026</span>  <span class="keyword">auto</span> inputs = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abda91b07a94d0f498b76655e03647d9a">GetSubgraphInputs</a>(m_Model, subgraphId);</div><div class="line"><a name="l03027"></a><span class="lineno"> 3027</span>  std::vector<std::string> result;</div><div class="line"><a name="l03028"></a><span class="lineno"> 3028</span>  result.reserve(inputs.size());</div><div class="line"><a name="l03029"></a><span class="lineno"> 3029</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span> & input : inputs)</div><div class="line"><a name="l03030"></a><span class="lineno"> 3030</span>  {</div><div class="line"><a name="l03031"></a><span class="lineno"> 3031</span>  result.push_back(input.second->name);</div><div class="line"><a name="l03032"></a><span class="lineno"> 3032</span>  }</div><div class="line"><a name="l03033"></a><span class="lineno"> 3033</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l03034"></a><span class="lineno"> 3034</span> }</div><div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_abda91b07a94d0f498b76655e03647d9a"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abda91b07a94d0f498b76655e03647d9a">armnnTfLiteParser::TfLiteParser::GetSubgraphInputs</a></div><div class="ttdeci">static TensorIdRawPtrVector GetSubgraphInputs(const ModelPtr &model, size_t subgraphIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02706">TfLiteParser.cpp:2706</a></div></div> |
| 966 | <div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 967 | </div><!-- fragment --> |
| 968 | </div> |
| 969 | </div> |
| 970 | <a id="afba7f99227765786c4ed9cb2acc09739"></a> |
| 971 | <h2 class="memtitle"><span class="permalink"><a href="#afba7f99227765786c4ed9cb2acc09739">◆ </a></span>GetSubgraphOutputs()</h2> |
| 972 | |
| 973 | <div class="memitem"> |
| 974 | <div class="memproto"> |
| 975 | <table class="mlabels"> |
| 976 | <tr> |
| 977 | <td class="mlabels-left"> |
| 978 | <table class="memname"> |
| 979 | <tr> |
| 980 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TfLiteParser::TensorIdRawPtrVector</a> GetSubgraphOutputs </td> |
| 981 | <td>(</td> |
| 982 | <td class="paramtype">const <a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">ModelPtr</a> & </td> |
| 983 | <td class="paramname"><em>model</em>, </td> |
| 984 | </tr> |
| 985 | <tr> |
| 986 | <td class="paramkey"></td> |
| 987 | <td></td> |
| 988 | <td class="paramtype">size_t </td> |
| 989 | <td class="paramname"><em>subgraphIndex</em> </td> |
| 990 | </tr> |
| 991 | <tr> |
| 992 | <td></td> |
| 993 | <td>)</td> |
| 994 | <td></td><td></td> |
| 995 | </tr> |
| 996 | </table> |
| 997 | </td> |
| 998 | <td class="mlabels-right"> |
| 999 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1000 | </tr> |
| 1001 | </table> |
| 1002 | </div><div class="memdoc"> |
| 1003 | |
| 1004 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02723">2723</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1005 | |
| 1006 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, and <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>.</p> |
| 1007 | |
| 1008 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02985">TfLiteParser::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03036">TfLiteParser::GetSubgraphOutputTensorNames()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 1009 | <div class="fragment"><div class="line"><a name="l02725"></a><span class="lineno"> 2725</span> {</div><div class="line"><a name="l02726"></a><span class="lineno"> 2726</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(model, subgraphIndex);</div><div class="line"><a name="l02727"></a><span class="lineno"> 2727</span>  <span class="keyword">const</span> <span class="keyword">auto</span> & subgraphPtr = model->subgraphs[subgraphIndex];</div><div class="line"><a name="l02728"></a><span class="lineno"> 2728</span> </div><div class="line"><a name="l02729"></a><span class="lineno"> 2729</span>  <span class="keywordtype">size_t</span> outputCount = subgraphPtr->outputs.size();</div><div class="line"><a name="l02730"></a><span class="lineno"> 2730</span>  <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">TensorIdRawPtrVector</a> result(outputCount);</div><div class="line"><a name="l02731"></a><span class="lineno"> 2731</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i=0; i<outputCount; ++i)</div><div class="line"><a name="l02732"></a><span class="lineno"> 2732</span>  {</div><div class="line"><a name="l02733"></a><span class="lineno"> 2733</span>  uint32_t outputId = <a class="code" href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(subgraphPtr->outputs[i]);</div><div class="line"><a name="l02734"></a><span class="lineno"> 2734</span>  result[i] = std::make_pair(outputId, subgraphPtr->tensors[outputId].get());</div><div class="line"><a name="l02735"></a><span class="lineno"> 2735</span>  }</div><div class="line"><a name="l02736"></a><span class="lineno"> 2736</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l02737"></a><span class="lineno"> 2737</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 1010 | <div class="ttc" id="_verification_helpers_8hpp_xhtml_aaef93dc9a69f51b59f3cdd0ff0165927"><div class="ttname"><a href="_verification_helpers_8hpp.xhtml#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a></div><div class="ttdeci">#define CHECKED_NON_NEGATIVE(VALUE)</div><div class="ttdef"><b>Definition:</b> <a href="_verification_helpers_8hpp_source.xhtml#l00035">VerificationHelpers.hpp:35</a></div></div> |
| 1011 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_a86428e0c674542488c7292dfbe2ce381"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a86428e0c674542488c7292dfbe2ce381">armnnTfLiteParser::TfLiteParser::TensorIdRawPtrVector</a></div><div class="ttdeci">std::vector< TensorIdRawPtr > TensorIdRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8hpp_source.xhtml#l00031">TfLiteParser.hpp:31</a></div></div> |
| 1012 | </div><!-- fragment --> |
| 1013 | </div> |
| 1014 | </div> |
| 1015 | <a id="ab97e69d07f06e392bd0cc2e5bcbf1be6"></a> |
| 1016 | <h2 class="memtitle"><span class="permalink"><a href="#ab97e69d07f06e392bd0cc2e5bcbf1be6">◆ </a></span>GetSubgraphOutputTensorNames()</h2> |
| 1017 | |
| 1018 | <div class="memitem"> |
| 1019 | <div class="memproto"> |
| 1020 | <table class="mlabels"> |
| 1021 | <tr> |
| 1022 | <td class="mlabels-left"> |
| 1023 | <table class="memname"> |
| 1024 | <tr> |
| 1025 | <td class="memname">std::vector< std::string > GetSubgraphOutputTensorNames </td> |
| 1026 | <td>(</td> |
| 1027 | <td class="paramtype">size_t </td> |
| 1028 | <td class="paramname"><em>subgraphId</em></td><td>)</td> |
| 1029 | <td> const</td> |
| 1030 | </tr> |
| 1031 | </table> |
| 1032 | </td> |
| 1033 | <td class="mlabels-right"> |
| 1034 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1035 | </tr> |
| 1036 | </table> |
| 1037 | </div><div class="memdoc"> |
| 1038 | |
| 1039 | <p>Return the output tensor names for a given subgraph. </p> |
| 1040 | |
| 1041 | <p>Implements <a class="el" href="classarmnn_tf_lite_parser_1_1_i_tf_lite_parser.xhtml#a72c5886e46c21556946d4f62eaf16270">ITfLiteParser</a>.</p> |
| 1042 | |
| 1043 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l03036">3036</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1044 | |
| 1045 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00079">CHECK_SUBGRAPH</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02723">TfLiteParser::GetSubgraphOutputs()</a>.</p> |
| 1046 | <div class="fragment"><div class="line"><a name="l03037"></a><span class="lineno"> 3037</span> {</div><div class="line"><a name="l03038"></a><span class="lineno"> 3038</span>  <a class="code" href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a>(m_Model, subgraphId);</div><div class="line"><a name="l03039"></a><span class="lineno"> 3039</span>  <span class="keyword">auto</span> outputs = <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afba7f99227765786c4ed9cb2acc09739">GetSubgraphOutputs</a>(m_Model, subgraphId);</div><div class="line"><a name="l03040"></a><span class="lineno"> 3040</span>  std::vector<std::string> result;</div><div class="line"><a name="l03041"></a><span class="lineno"> 3041</span>  result.reserve(outputs.size());</div><div class="line"><a name="l03042"></a><span class="lineno"> 3042</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> <span class="keyword">const</span> & output : outputs)</div><div class="line"><a name="l03043"></a><span class="lineno"> 3043</span>  {</div><div class="line"><a name="l03044"></a><span class="lineno"> 3044</span>  result.push_back(output.second->name);</div><div class="line"><a name="l03045"></a><span class="lineno"> 3045</span>  }</div><div class="line"><a name="l03046"></a><span class="lineno"> 3046</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l03047"></a><span class="lineno"> 3047</span> }</div><div class="ttc" id="_tf_lite_parser_8cpp_xhtml_a315ccf3e3cb207b1fbd10a2ad3e6333a"><div class="ttname"><a href="_tf_lite_parser_8cpp.xhtml#a315ccf3e3cb207b1fbd10a2ad3e6333a">CHECK_SUBGRAPH</a></div><div class="ttdeci">#define CHECK_SUBGRAPH(MODEL, SUBGRAPH_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l00079">TfLiteParser.cpp:79</a></div></div> |
| 1047 | <div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_afba7f99227765786c4ed9cb2acc09739"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#afba7f99227765786c4ed9cb2acc09739">armnnTfLiteParser::TfLiteParser::GetSubgraphOutputs</a></div><div class="ttdeci">static TensorIdRawPtrVector GetSubgraphOutputs(const ModelPtr &model, size_t subgraphIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02723">TfLiteParser.cpp:2723</a></div></div> |
| 1048 | </div><!-- fragment --> |
| 1049 | </div> |
| 1050 | </div> |
| 1051 | <a id="a858104f225c302988fba35c1cb299066"></a> |
| 1052 | <h2 class="memtitle"><span class="permalink"><a href="#a858104f225c302988fba35c1cb299066">◆ </a></span>LoadModelFromBinary()</h2> |
| 1053 | |
| 1054 | <div class="memitem"> |
| 1055 | <div class="memproto"> |
| 1056 | <table class="mlabels"> |
| 1057 | <tr> |
| 1058 | <td class="mlabels-left"> |
| 1059 | <table class="memname"> |
| 1060 | <tr> |
| 1061 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">TfLiteParser::ModelPtr</a> LoadModelFromBinary </td> |
| 1062 | <td>(</td> |
| 1063 | <td class="paramtype">const uint8_t * </td> |
| 1064 | <td class="paramname"><em>binaryContent</em>, </td> |
| 1065 | </tr> |
| 1066 | <tr> |
| 1067 | <td class="paramkey"></td> |
| 1068 | <td></td> |
| 1069 | <td class="paramtype">size_t </td> |
| 1070 | <td class="paramname"><em>len</em> </td> |
| 1071 | </tr> |
| 1072 | <tr> |
| 1073 | <td></td> |
| 1074 | <td>)</td> |
| 1075 | <td></td><td></td> |
| 1076 | </tr> |
| 1077 | </table> |
| 1078 | </td> |
| 1079 | <td class="mlabels-right"> |
| 1080 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1081 | </tr> |
| 1082 | </table> |
| 1083 | </div><div class="memdoc"> |
| 1084 | |
| 1085 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02648">2648</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1086 | |
| 1087 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>.</p> |
| 1088 | |
| 1089 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00605">TfLiteParser::CreateNetworkFromBinary()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02624">TfLiteParser::LoadModelFromFile()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 1090 | <div class="fragment"><div class="line"><a name="l02649"></a><span class="lineno"> 2649</span> {</div><div class="line"><a name="l02650"></a><span class="lineno"> 2650</span>  <span class="keywordflow">if</span> (binaryContent == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l02651"></a><span class="lineno"> 2651</span>  {</div><div class="line"><a name="l02652"></a><span class="lineno"> 2652</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.xhtml">InvalidArgumentException</a>(boost::str(boost::format(<span class="stringliteral">"Invalid (null) binary content %1%"</span>) %</div><div class="line"><a name="l02653"></a><span class="lineno"> 2653</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l02654"></a><span class="lineno"> 2654</span>  }</div><div class="line"><a name="l02655"></a><span class="lineno"> 2655</span>  flatbuffers::Verifier verifier(binaryContent, len);</div><div class="line"><a name="l02656"></a><span class="lineno"> 2656</span>  <span class="keywordflow">if</span> (verifier.VerifyBuffer<tflite::Model>() == <span class="keyword">false</span>)</div><div class="line"><a name="l02657"></a><span class="lineno"> 2657</span>  {</div><div class="line"><a name="l02658"></a><span class="lineno"> 2658</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l02659"></a><span class="lineno"> 2659</span>  boost::str(boost::format(<span class="stringliteral">"Buffer doesn't conform to the expected Tensorflow Lite "</span></div><div class="line"><a name="l02660"></a><span class="lineno"> 2660</span>  <span class="stringliteral">"flatbuffers format. size:%1% %2%"</span>) %</div><div class="line"><a name="l02661"></a><span class="lineno"> 2661</span>  len %</div><div class="line"><a name="l02662"></a><span class="lineno"> 2662</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l02663"></a><span class="lineno"> 2663</span>  }</div><div class="line"><a name="l02664"></a><span class="lineno"> 2664</span>  <span class="keywordflow">return</span> tflite::UnPackModel(binaryContent);</div><div class="line"><a name="l02665"></a><span class="lineno"> 2665</span> }</div><div class="ttc" id="classarmnn_1_1_invalid_argument_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00080">Exceptions.hpp:80</a></div></div> |
| 1091 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 1092 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 1093 | </div><!-- fragment --> |
| 1094 | </div> |
| 1095 | </div> |
| 1096 | <a id="ac5411554ab8c02ca286af52c98f6bd87"></a> |
| 1097 | <h2 class="memtitle"><span class="permalink"><a href="#ac5411554ab8c02ca286af52c98f6bd87">◆ </a></span>LoadModelFromFile()</h2> |
| 1098 | |
| 1099 | <div class="memitem"> |
| 1100 | <div class="memproto"> |
| 1101 | <table class="mlabels"> |
| 1102 | <tr> |
| 1103 | <td class="mlabels-left"> |
| 1104 | <table class="memname"> |
| 1105 | <tr> |
| 1106 | <td class="memname"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#abfc86471394295357a23b3addd0b5b1c">TfLiteParser::ModelPtr</a> LoadModelFromFile </td> |
| 1107 | <td>(</td> |
| 1108 | <td class="paramtype">const char * </td> |
| 1109 | <td class="paramname"><em>fileName</em></td><td>)</td> |
| 1110 | <td></td> |
| 1111 | </tr> |
| 1112 | </table> |
| 1113 | </td> |
| 1114 | <td class="mlabels-right"> |
| 1115 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1116 | </tr> |
| 1117 | </table> |
| 1118 | </div><div class="memdoc"> |
| 1119 | |
| 1120 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02624">2624</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1121 | |
| 1122 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, and <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02648">TfLiteParser::LoadModelFromBinary()</a>.</p> |
| 1123 | |
| 1124 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00598">TfLiteParser::CreateNetworkFromBinaryFile()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 1125 | <div class="fragment"><div class="line"><a name="l02625"></a><span class="lineno"> 2625</span> {</div><div class="line"><a name="l02626"></a><span class="lineno"> 2626</span>  <span class="keywordflow">if</span> (fileName == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l02627"></a><span class="lineno"> 2627</span>  {</div><div class="line"><a name="l02628"></a><span class="lineno"> 2628</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.xhtml">InvalidArgumentException</a>(boost::str(boost::format(<span class="stringliteral">"Invalid (null) file name %1%"</span>) %</div><div class="line"><a name="l02629"></a><span class="lineno"> 2629</span>  <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l02630"></a><span class="lineno"> 2630</span>  }</div><div class="line"><a name="l02631"></a><span class="lineno"> 2631</span>  boost::system::error_code errorCode;</div><div class="line"><a name="l02632"></a><span class="lineno"> 2632</span>  boost::filesystem::path pathToFile(fileName);</div><div class="line"><a name="l02633"></a><span class="lineno"> 2633</span>  <span class="keywordflow">if</span> (!boost::filesystem::exists(pathToFile, errorCode))</div><div class="line"><a name="l02634"></a><span class="lineno"> 2634</span>  {</div><div class="line"><a name="l02635"></a><span class="lineno"> 2635</span>  std::string locationString = <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString();</div><div class="line"><a name="l02636"></a><span class="lineno"> 2636</span>  std::string msg = boost::str(boost::format(<span class="stringliteral">"Cannot find the file (%1%) errorCode: %2% %3%"</span>) %</div><div class="line"><a name="l02637"></a><span class="lineno"> 2637</span>  fileName %</div><div class="line"><a name="l02638"></a><span class="lineno"> 2638</span>  errorCode %</div><div class="line"><a name="l02639"></a><span class="lineno"> 2639</span>  locationString);</div><div class="line"><a name="l02640"></a><span class="lineno"> 2640</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_file_not_found_exception.xhtml">FileNotFoundException</a>(msg);</div><div class="line"><a name="l02641"></a><span class="lineno"> 2641</span>  }</div><div class="line"><a name="l02642"></a><span class="lineno"> 2642</span>  std::ifstream file(fileName, std::ios::binary);</div><div class="line"><a name="l02643"></a><span class="lineno"> 2643</span>  std::string fileContent((std::istreambuf_iterator<char>(file)), std::istreambuf_iterator<char>());</div><div class="line"><a name="l02644"></a><span class="lineno"> 2644</span>  <span class="keywordflow">return</span> <a class="code" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a858104f225c302988fba35c1cb299066">LoadModelFromBinary</a>(reinterpret_cast<const uint8_t *>(fileContent.c_str()),</div><div class="line"><a name="l02645"></a><span class="lineno"> 2645</span>  fileContent.size());</div><div class="line"><a name="l02646"></a><span class="lineno"> 2646</span> }</div><div class="ttc" id="classarmnn_tf_lite_parser_1_1_tf_lite_parser_xhtml_a858104f225c302988fba35c1cb299066"><div class="ttname"><a href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml#a858104f225c302988fba35c1cb299066">armnnTfLiteParser::TfLiteParser::LoadModelFromBinary</a></div><div class="ttdeci">static ModelPtr LoadModelFromBinary(const uint8_t *binaryContent, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="_tf_lite_parser_8cpp_source.xhtml#l02648">TfLiteParser.cpp:2648</a></div></div> |
| 1126 | <div class="ttc" id="classarmnn_1_1_file_not_found_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_file_not_found_exception.xhtml">armnn::FileNotFoundException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00086">Exceptions.hpp:86</a></div></div> |
| 1127 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00080">Exceptions.hpp:80</a></div></div> |
| 1128 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 1129 | </div><!-- fragment --> |
| 1130 | </div> |
| 1131 | </div> |
| 1132 | <a id="aaebfa9a01a0bb8a0935114ff0140cc45"></a> |
| 1133 | <h2 class="memtitle"><span class="permalink"><a href="#aaebfa9a01a0bb8a0935114ff0140cc45">◆ </a></span>OutputShapeOfReshape()</h2> |
| 1134 | |
| 1135 | <div class="memitem"> |
| 1136 | <div class="memproto"> |
| 1137 | <table class="mlabels"> |
| 1138 | <tr> |
| 1139 | <td class="mlabels-left"> |
| 1140 | <table class="memname"> |
| 1141 | <tr> |
| 1142 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> OutputShapeOfReshape </td> |
| 1143 | <td>(</td> |
| 1144 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> & </td> |
| 1145 | <td class="paramname"><em>inputTensorInfo</em>, </td> |
| 1146 | </tr> |
| 1147 | <tr> |
| 1148 | <td class="paramkey"></td> |
| 1149 | <td></td> |
| 1150 | <td class="paramtype">const std::vector< int32_t > & </td> |
| 1151 | <td class="paramname"><em>targetDimsIn</em> </td> |
| 1152 | </tr> |
| 1153 | <tr> |
| 1154 | <td></td> |
| 1155 | <td>)</td> |
| 1156 | <td></td><td></td> |
| 1157 | </tr> |
| 1158 | </table> |
| 1159 | </td> |
| 1160 | <td class="mlabels-right"> |
| 1161 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1162 | </tr> |
| 1163 | </table> |
| 1164 | </div><div class="memdoc"> |
| 1165 | |
| 1166 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01898">1898</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1167 | |
| 1168 | <p class="reference">References <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00036">ARMNN_THROW_PARSE_EXCEPTION</a>, <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00259">CHECK_SUPPORTED_FUSED_ACTIVATION</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00035">CHECKED_NON_NEGATIVE</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00167">armnnDeserializer::CheckShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#ac1835f8756a9f03c02fcf9664e3a0fce">IOutputSlot::Connect()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02886">TfLiteParser::GetBuffer()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02667">TfLiteParser::GetInputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02739">TfLiteParser::GetInputTensorIds()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#afcc1c3a20bd2860e0ddd21674389246f">IConnectableLayer::GetName()</a>, <a class="el" href="_tensor_8cpp_source.xhtml#l00213">TensorInfo::GetNumBytes()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00093">TensorInfo::GetNumElements()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#ac2dac3b61c94de52093616be4ab17f8d">IConnectableLayer::GetNumOutputSlots()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02686">TfLiteParser::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_tensor_8cpp_source.xhtml#l00264">TensorInfo::GetQuantizationOffset()</a>, <a class="el" href="_tensor_8cpp_source.xhtml#l00247">TensorInfo::GetQuantizationScale()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00037">ActivationDescriptor::m_A</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00972">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00039">ActivationDescriptor::m_B</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00386">FullyConnectedDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00531">DetectionPostProcessDescriptor::m_DetectionsPerClass</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00035">ActivationDescriptor::m_Function</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00976">StackDescriptor::m_InputShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00529">DetectionPostProcessDescriptor::m_MaxClassesPerDetection</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00527">DetectionPostProcessDescriptor::m_MaxDetections</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00749">ResizeDescriptor::m_Method</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00535">DetectionPostProcessDescriptor::m_NmsIouThreshold</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00533">DetectionPostProcessDescriptor::m_NmsScoreThreshold</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00537">DetectionPostProcessDescriptor::m_NumClasses</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00974">StackDescriptor::m_NumInputs</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00547">DetectionPostProcessDescriptor::m_ScaleH</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00545">DetectionPostProcessDescriptor::m_ScaleW</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00541">DetectionPostProcessDescriptor::m_ScaleX</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00543">DetectionPostProcessDescriptor::m_ScaleY</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00774">ReshapeDescriptor::m_TargetShape</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00388">FullyConnectedDescriptor::m_TransposeWeightMatrix</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00539">DetectionPostProcessDescriptor::m_UseRegularNms</a>, <a class="el" href="_types_8hpp_source.xhtml#l00018">armnn::MaxNumOfTensorDimensions</a>, <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="_numeric_cast_8hpp_source.xhtml#l00033">armnn::numeric_cast()</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">options</a>, <a class="el" href="_parser_helper_8cpp_source.xhtml#l00019">armnnUtils::ProcessConcatInputTensorInfo()</a>, <a class="el" href="_descriptors_8cpp_source.xhtml#l00150">OriginsDescriptor::SetConcatAxis()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00090">TensorInfo::SetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_descriptors_8cpp_source.xhtml#l00302">ViewsDescriptor::SetViewOriginCoord()</a>, <a class="el" href="_descriptors_8cpp_source.xhtml#l00307">ViewsDescriptor::SetViewSize()</a>, and <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 1169 | |
| 1170 | <p class="reference">Referenced by <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 1171 | <div class="fragment"><div class="line"><a name="l01900"></a><span class="lineno"> 1900</span> {</div><div class="line"><a name="l01901"></a><span class="lineno"> 1901</span>  std::vector<unsigned int> outputDims(targetDimsIn.begin(), targetDimsIn.end());</div><div class="line"><a name="l01902"></a><span class="lineno"> 1902</span>  <span class="keyword">const</span> <span class="keyword">auto</span> stretchDim = std::find(targetDimsIn.begin(), targetDimsIn.end(), -1);</div><div class="line"><a name="l01903"></a><span class="lineno"> 1903</span> </div><div class="line"><a name="l01904"></a><span class="lineno"> 1904</span>  <span class="keywordflow">if</span> (stretchDim != targetDimsIn.end())</div><div class="line"><a name="l01905"></a><span class="lineno"> 1905</span>  {</div><div class="line"><a name="l01906"></a><span class="lineno"> 1906</span>  <span class="keywordflow">if</span> (std::find(std::next(stretchDim), targetDimsIn.end(), -1) != targetDimsIn.end())</div><div class="line"><a name="l01907"></a><span class="lineno"> 1907</span>  {</div><div class="line"><a name="l01908"></a><span class="lineno"> 1908</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(</div><div class="line"><a name="l01909"></a><span class="lineno"> 1909</span>  boost::str(</div><div class="line"><a name="l01910"></a><span class="lineno"> 1910</span>  boost::format(<span class="stringliteral">"At most one component of shape can be -1 %1%"</span>) % <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l01911"></a><span class="lineno"> 1911</span>  }</div><div class="line"><a name="l01912"></a><span class="lineno"> 1912</span> </div><div class="line"><a name="l01913"></a><span class="lineno"> 1913</span>  <span class="keyword">auto</span> targetNumElements =</div><div class="line"><a name="l01914"></a><span class="lineno"> 1914</span>  <a class="code" href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">boost::numeric_cast</a><<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(</div><div class="line"><a name="l01915"></a><span class="lineno"> 1915</span>  std::accumulate(targetDimsIn.begin(), targetDimsIn.end(), -1, std::multiplies<int32_t>()));</div><div class="line"><a name="l01916"></a><span class="lineno"> 1916</span> </div><div class="line"><a name="l01917"></a><span class="lineno"> 1917</span>  <span class="keyword">auto</span> stretchIndex = <span class="keyword">static_cast<</span><span class="keywordtype">size_t</span><span class="keyword">></span>(std::distance(targetDimsIn.begin(), stretchDim));</div><div class="line"><a name="l01918"></a><span class="lineno"> 1918</span>  outputDims[stretchIndex] = inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>() / targetNumElements;</div><div class="line"><a name="l01919"></a><span class="lineno"> 1919</span>  }</div><div class="line"><a name="l01920"></a><span class="lineno"> 1920</span> </div><div class="line"><a name="l01921"></a><span class="lineno"> 1921</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outputShape = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a>(static_cast<unsigned int>(outputDims.size()), outputDims.data());</div><div class="line"><a name="l01922"></a><span class="lineno"> 1922</span> </div><div class="line"><a name="l01923"></a><span class="lineno"> 1923</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> reshapeInfo = inputTensorInfo;</div><div class="line"><a name="l01924"></a><span class="lineno"> 1924</span>  reshapeInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(outputShape);</div><div class="line"><a name="l01925"></a><span class="lineno"> 1925</span> </div><div class="line"><a name="l01926"></a><span class="lineno"> 1926</span>  <span class="keywordflow">return</span> reshapeInfo;</div><div class="line"><a name="l01927"></a><span class="lineno"> 1927</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 1172 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 1173 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#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.xhtml#l00090">Tensor.hpp:90</a></div></div> |
| 1174 | <div class="ttc" id="namespacearmnn_xhtml_a37fa39012e90d568df7f774cd6d1e956"><div class="ttname"><a href="namespacearmnn.xhtml#a37fa39012e90d568df7f774cd6d1e956">armnn::numeric_cast</a></div><div class="ttdeci">std::enable_if_t< std::is_unsigned< Source >::value &&std::is_unsigned< Dest >::value, Dest > numeric_cast(Source source)</div><div class="ttdef"><b>Definition:</b> <a href="_numeric_cast_8hpp_source.xhtml#l00033">NumericCast.hpp:33</a></div></div> |
| 1175 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 1176 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 1177 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#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.xhtml#l00093">Tensor.hpp:93</a></div></div> |
| 1178 | </div><!-- fragment --> |
| 1179 | </div> |
| 1180 | </div> |
| 1181 | <a id="aa0a90d432c9c41f9846f41f11c9e54c9"></a> |
| 1182 | <h2 class="memtitle"><span class="permalink"><a href="#aa0a90d432c9c41f9846f41f11c9e54c9">◆ </a></span>OutputShapeOfSqueeze()</h2> |
| 1183 | |
| 1184 | <div class="memitem"> |
| 1185 | <div class="memproto"> |
| 1186 | <table class="mlabels"> |
| 1187 | <tr> |
| 1188 | <td class="mlabels-left"> |
| 1189 | <table class="memname"> |
| 1190 | <tr> |
| 1191 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> OutputShapeOfSqueeze </td> |
| 1192 | <td>(</td> |
| 1193 | <td class="paramtype">const std::vector< uint32_t > & </td> |
| 1194 | <td class="paramname"><em>squeezeDims</em>, </td> |
| 1195 | </tr> |
| 1196 | <tr> |
| 1197 | <td class="paramkey"></td> |
| 1198 | <td></td> |
| 1199 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a> & </td> |
| 1200 | <td class="paramname"><em>inputTensorInfo</em> </td> |
| 1201 | </tr> |
| 1202 | <tr> |
| 1203 | <td></td> |
| 1204 | <td>)</td> |
| 1205 | <td></td><td></td> |
| 1206 | </tr> |
| 1207 | </table> |
| 1208 | </td> |
| 1209 | <td class="mlabels-right"> |
| 1210 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1211 | </tr> |
| 1212 | </table> |
| 1213 | </div><div class="memdoc"> |
| 1214 | |
| 1215 | <p class="definition">Definition at line <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l01463">1463</a> of file <a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a>.</p> |
| 1216 | |
| 1217 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.xhtml#l00192">CHECK_LOCATION</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l00124">CHECK_MODEL</a>, <a class="el" href="_verification_helpers_8hpp_source.xhtml#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02886">TfLiteParser::GetBuffer()</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#l02739">TfLiteParser::GetInputTensorIds()</a>, <a class="el" href="_tensor_8cpp_source.xhtml#l00213">TensorInfo::GetNumBytes()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00092">TensorInfo::GetNumDimensions()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00093">TensorInfo::GetNumElements()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02686">TfLiteParser::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.xhtml#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tf_lite_parser_8cpp_source.xhtml#l02749">TfLiteParser::GetOutputTensorIds()</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_ignore_unused_8hpp_source.xhtml#l00014">armnn::IgnoreUnused()</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00037">ActivationDescriptor::m_A</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00895">MeanDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00039">ActivationDescriptor::m_B</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01041">StridedSliceDescriptor::m_Begin</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01049">StridedSliceDescriptor::m_BeginMask</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01062">StridedSliceDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01056">StridedSliceDescriptor::m_EllipsisMask</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01043">StridedSliceDescriptor::m_End</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01052">StridedSliceDescriptor::m_EndMask</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00035">ActivationDescriptor::m_Function</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00897">MeanDescriptor::m_KeepDims</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01059">StridedSliceDescriptor::m_NewAxisMask</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00920">PadDescriptor::m_PadList</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01054">StridedSliceDescriptor::m_ShrinkAxisMask</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l01045">StridedSliceDescriptor::m_Stride</a>, <a class="el" href="_descriptors_8hpp_source.xhtml#l00774">ReshapeDescriptor::m_TargetShape</a>, <a class="el" href="namespacearmnn.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="_file_only_profiling_decorator_tests_8cpp_source.xhtml#l00045">options</a>, <a class="el" href="_tensor_8hpp_source.xhtml#l00090">TensorInfo::SetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.xhtml#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.xhtml#l00501">armnnDeserializer::ToTensorInfo()</a>, and <a class="el" href="_cl_layer_tests_8cpp_source.xhtml#l00202">true</a>.</p> |
| 1218 | |
| 1219 | <p class="reference">Referenced by <a class="el" href="_output_shape_of_squeeze_8cpp_source.xhtml#l00027">BOOST_FIXTURE_TEST_CASE()</a>, and <a class="el" href="_tf_lite_parser_8hpp_source.xhtml#l00063">TfLiteParser::~TfLiteParser()</a>.</p> |
| 1220 | <div class="fragment"><div class="line"><a name="l01465"></a><span class="lineno"> 1465</span> {</div><div class="line"><a name="l01466"></a><span class="lineno"> 1466</span>  <a class="code" href="_verification_helpers_8hpp.xhtml#a479b2821a7a2cbb8fa8eb7f60a47065d">CHECK_VALID_SIZE</a>(squeezeDimsIn.size(), 0, 1, 2, 3, 4);</div><div class="line"><a name="l01467"></a><span class="lineno"> 1467</span>  std::vector<uint32_t> squeezeDims = squeezeDimsIn;</div><div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>  <span class="keyword">static</span> <span class="keyword">const</span> uint32_t dimensionSequence[] = { 0, 1, 2, 3 };</div><div class="line"><a name="l01469"></a><span class="lineno"> 1469</span> </div><div class="line"><a name="l01470"></a><span class="lineno"> 1470</span>  <span class="keywordflow">if</span> (inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>() > 4)</div><div class="line"><a name="l01471"></a><span class="lineno"> 1471</span>  {</div><div class="line"><a name="l01472"></a><span class="lineno"> 1472</span>  std::stringstream ss;</div><div class="line"><a name="l01473"></a><span class="lineno"> 1473</span>  ss << <span class="stringliteral">"Input tensor has unexpected number of dimensions:"</span> << inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()</div><div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>  << <span class="stringliteral">" shape:"</span> << inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>() << <span class="stringliteral">" "</span></div><div class="line"><a name="l01475"></a><span class="lineno"> 1475</span>  << <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString();</div><div class="line"><a name="l01476"></a><span class="lineno"> 1476</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(ss.str());</div><div class="line"><a name="l01477"></a><span class="lineno"> 1477</span>  }</div><div class="line"><a name="l01478"></a><span class="lineno"> 1478</span> </div><div class="line"><a name="l01479"></a><span class="lineno"> 1479</span>  <span class="keywordflow">if</span> (squeezeDims.empty())</div><div class="line"><a name="l01480"></a><span class="lineno"> 1480</span>  {</div><div class="line"><a name="l01481"></a><span class="lineno"> 1481</span>  squeezeDims.assign(dimensionSequence,</div><div class="line"><a name="l01482"></a><span class="lineno"> 1482</span>  dimensionSequence+inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>());</div><div class="line"><a name="l01483"></a><span class="lineno"> 1483</span>  }</div><div class="line"><a name="l01484"></a><span class="lineno"> 1484</span> </div><div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>  std::vector<uint32_t> outputDims;</div><div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>  <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0; i < inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); i++)</div><div class="line"><a name="l01487"></a><span class="lineno"> 1487</span>  {</div><div class="line"><a name="l01488"></a><span class="lineno"> 1488</span>  <span class="keywordtype">bool</span> skipSqueeze = (std::find(squeezeDims.begin(), squeezeDims.end(), i) == squeezeDims.end());</div><div class="line"><a name="l01489"></a><span class="lineno"> 1489</span>  <span class="keyword">auto</span> currentDimension = inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>()[i];</div><div class="line"><a name="l01490"></a><span class="lineno"> 1490</span>  <span class="keywordflow">if</span> (skipSqueeze || currentDimension != 1)</div><div class="line"><a name="l01491"></a><span class="lineno"> 1491</span>  {</div><div class="line"><a name="l01492"></a><span class="lineno"> 1492</span>  outputDims.push_back(currentDimension);</div><div class="line"><a name="l01493"></a><span class="lineno"> 1493</span>  }</div><div class="line"><a name="l01494"></a><span class="lineno"> 1494</span>  }</div><div class="line"><a name="l01495"></a><span class="lineno"> 1495</span> </div><div class="line"><a name="l01496"></a><span class="lineno"> 1496</span>  <span class="keywordflow">if</span> (outputDims.size() > 4)</div><div class="line"><a name="l01497"></a><span class="lineno"> 1497</span>  {</div><div class="line"><a name="l01498"></a><span class="lineno"> 1498</span>  std::stringstream ss;</div><div class="line"><a name="l01499"></a><span class="lineno"> 1499</span>  ss << <span class="stringliteral">"Output tensor has unexpected number of dimensions:"</span> << inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>()</div><div class="line"><a name="l01500"></a><span class="lineno"> 1500</span>  << <span class="stringliteral">" shape:"</span> << inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>() << <span class="stringliteral">" "</span></div><div class="line"><a name="l01501"></a><span class="lineno"> 1501</span>  << <a class="code" href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString();</div><div class="line"><a name="l01502"></a><span class="lineno"> 1502</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.xhtml">ParseException</a>(ss.str());</div><div class="line"><a name="l01503"></a><span class="lineno"> 1503</span>  }</div><div class="line"><a name="l01504"></a><span class="lineno"> 1504</span> </div><div class="line"><a name="l01505"></a><span class="lineno"> 1505</span>  <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a> outShape = <a class="code" href="classarmnn_1_1_tensor_shape.xhtml">TensorShape</a>(static_cast<unsigned int>(outputDims.size()),</div><div class="line"><a name="l01506"></a><span class="lineno"> 1506</span>  outputDims.data());</div><div class="line"><a name="l01507"></a><span class="lineno"> 1507</span> </div><div class="line"><a name="l01508"></a><span class="lineno"> 1508</span>  <span class="comment">// we need to preserve the tensor type and the quantization data as well</span></div><div class="line"><a name="l01509"></a><span class="lineno"> 1509</span>  <a class="code" href="classarmnn_1_1_tensor_info.xhtml">TensorInfo</a> outTensorInfo = inputTensorInfo;</div><div class="line"><a name="l01510"></a><span class="lineno"> 1510</span>  outTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.xhtml#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(outShape);</div><div class="line"><a name="l01511"></a><span class="lineno"> 1511</span> </div><div class="line"><a name="l01512"></a><span class="lineno"> 1512</span>  <span class="keywordflow">return</span> outTensorInfo;</div><div class="line"><a name="l01513"></a><span class="lineno"> 1513</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#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.xhtml#l00088">Tensor.hpp:88</a></div></div> |
| 1221 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00053">Tensor.hpp:53</a></div></div> |
| 1222 | <div class="ttc" id="classarmnn_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.xhtml">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.xhtml#l00020">Tensor.hpp:20</a></div></div> |
| 1223 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#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.xhtml#l00090">Tensor.hpp:90</a></div></div> |
| 1224 | <div class="ttc" id="_verification_helpers_8hpp_xhtml_a479b2821a7a2cbb8fa8eb7f60a47065d"><div class="ttname"><a href="_verification_helpers_8hpp.xhtml#a479b2821a7a2cbb8fa8eb7f60a47065d">CHECK_VALID_SIZE</a></div><div class="ttdeci">#define CHECK_VALID_SIZE(ACTUAL,...)</div><div class="ttdef"><b>Definition:</b> <a href="_verification_helpers_8hpp_source.xhtml#l00032">VerificationHelpers.hpp:32</a></div></div> |
| 1225 | <div class="ttc" id="_exceptions_8hpp_xhtml_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.xhtml#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00192">Exceptions.hpp:192</a></div></div> |
| 1226 | <div class="ttc" id="classarmnn_1_1_parse_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_parse_exception.xhtml">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00092">Exceptions.hpp:92</a></div></div> |
| 1227 | <div class="ttc" id="classarmnn_1_1_tensor_info_xhtml_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_info.xhtml#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.xhtml#l00092">Tensor.hpp:92</a></div></div> |
| 1228 | </div><!-- fragment --> |
| 1229 | </div> |
| 1230 | </div> |
| 1231 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 1232 | <li>src/armnnTfLiteParser/<a class="el" href="_tf_lite_parser_8hpp_source.xhtml">TfLiteParser.hpp</a></li> |
| 1233 | <li>src/armnnTfLiteParser/<a class="el" href="_tf_lite_parser_8cpp_source.xhtml">TfLiteParser.cpp</a></li> |
| 1234 | </ul> |
| 1235 | </div><!-- contents --> |
| 1236 | </div><!-- doc-content --> |
| 1237 | <!-- start footer part --> |
| 1238 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 1239 | <ul> |
| 1240 | <li class="navelem"><a class="el" href="namespacearmnn_tf_lite_parser.xhtml">armnnTfLiteParser</a></li><li class="navelem"><a class="el" href="classarmnn_tf_lite_parser_1_1_tf_lite_parser.xhtml">TfLiteParser</a></li> |
| 1241 | <li class="footer">Generated on Fri Mar 13 2020 16:09:21 for ArmNN by |
| 1242 | <a href="http://www.doxygen.org/index.html"> |
| 1243 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 1244 | </ul> |
| 1245 | </div> |
| 1246 | </body> |
| 1247 | </html> |