Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 | <title>ArmNN: Deserializer Class Reference</title> |
| 9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 | <script type="text/javascript" src="jquery.js"></script> |
| 11 | <script type="text/javascript" src="dynsections.js"></script> |
| 12 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 13 | <script type="text/javascript" src="resize.js"></script> |
| 14 | <script type="text/javascript" src="navtreedata.js"></script> |
| 15 | <script type="text/javascript" src="navtree.js"></script> |
| 16 | <script type="text/javascript"> |
| 17 | $(document).ready(initResizable); |
| 18 | </script> |
| 19 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 20 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 21 | <script type="text/javascript" src="search/search.js"></script> |
| 22 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 23 | </head> |
| 24 | <body> |
| 25 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 26 | <div id="titlearea"> |
| 27 | <table cellspacing="0" cellpadding="0"> |
| 28 | <tbody> |
| 29 | <tr style="height: 56px;"> |
| 30 | <td id="projectalign" style="padding-left: 0.5em;"> |
| 31 | <div id="projectname">ArmNN |
| 32 |  <span id="projectnumber">NotReleased</span> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </div> |
| 39 | <!-- end header part --> |
| 40 | <!-- Generated by Doxygen 1.8.13 --> |
| 41 | <script type="text/javascript"> |
| 42 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 43 | </script> |
| 44 | <script type="text/javascript" src="menudata.js"></script> |
| 45 | <script type="text/javascript" src="menu.js"></script> |
| 46 | <script type="text/javascript"> |
| 47 | $(function() { |
| 48 | initMenu('',true,false,'search.php','Search'); |
| 49 | $(document).ready(function() { init_search(); }); |
| 50 | }); |
| 51 | </script> |
| 52 | <div id="main-nav"></div> |
| 53 | </div><!-- top --> |
| 54 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 55 | <div id="nav-tree"> |
| 56 | <div id="nav-tree-contents"> |
| 57 | <div id="nav-sync" class="sync"></div> |
| 58 | </div> |
| 59 | </div> |
| 60 | <div id="splitbar" style="-moz-user-select:none;" |
| 61 | class="ui-resizable-handle"> |
| 62 | </div> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | $(document).ready(function(){initNavTree('classarmnn_deserializer_1_1_deserializer.html','');}); |
| 66 | </script> |
| 67 | <div id="doc-content"> |
| 68 | <!-- window showing the filter options --> |
| 69 | <div id="MSearchSelectWindow" |
| 70 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 71 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 72 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 73 | </div> |
| 74 | |
| 75 | <!-- iframe showing the search results (closed by default) --> |
| 76 | <div id="MSearchResultsWindow"> |
| 77 | <iframe src="javascript:void(0)" frameborder="0" |
| 78 | name="MSearchResults" id="MSearchResults"> |
| 79 | </iframe> |
| 80 | </div> |
| 81 | |
| 82 | <div class="header"> |
| 83 | <div class="summary"> |
| 84 | <a href="#nested-classes">Classes</a> | |
| 85 | <a href="#pub-types">Public Types</a> | |
| 86 | <a href="#pub-methods">Public Member Functions</a> | |
| 87 | <a href="#pub-static-methods">Static Public Member Functions</a> | |
| 88 | <a href="classarmnn_deserializer_1_1_deserializer-members.html">List of all members</a> </div> |
| 89 | <div class="headertitle"> |
| 90 | <div class="title">Deserializer Class Reference</div> </div> |
| 91 | </div><!--header--> |
| 92 | <div class="contents"> |
| 93 | |
| 94 | <p><code>#include <<a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>></code></p> |
| 95 | <div class="dynheader"> |
| 96 | Inheritance diagram for Deserializer:</div> |
| 97 | <div class="dyncontent"> |
| 98 | <div class="center"> |
| 99 | <img src="classarmnn_deserializer_1_1_deserializer.png" usemap="#Deserializer_map" alt=""/> |
| 100 | <map id="Deserializer_map" name="Deserializer_map"> |
| 101 | <area href="classarmnn_deserializer_1_1_i_deserializer.html" alt="IDeserializer" shape="rect" coords="0,0,83,24"/> |
| 102 | </map> |
| 103 | </div></div> |
| 104 | <table class="memberdecls"> |
| 105 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| 106 | Public Types</h2></td></tr> |
| 107 | <tr class="memitem:a68b76ee033fdd629404369171c3d4f90"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a68b76ee033fdd629404369171c3d4f90">ConstTensorRawPtr</a> = const armnnSerializer::ConstTensor *</td></tr> |
| 108 | <tr class="separator:a68b76ee033fdd629404369171c3d4f90"><td class="memSeparator" colspan="2"> </td></tr> |
| 109 | <tr class="memitem:a38c1f8ba8e51364802669c968cf98ff5"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> = const armnnSerializer::SerializedGraph *</td></tr> |
| 110 | <tr class="separator:a38c1f8ba8e51364802669c968cf98ff5"><td class="memSeparator" colspan="2"> </td></tr> |
| 111 | <tr class="memitem:a80888061963ddd18e87105807a035d9a"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a80888061963ddd18e87105807a035d9a">TensorRawPtr</a> = const armnnSerializer::TensorInfo *</td></tr> |
| 112 | <tr class="separator:a80888061963ddd18e87105807a035d9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:a0dc66e036f16781886a1ce530e11c2d8"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0dc66e036f16781886a1ce530e11c2d8">PoolingDescriptor</a> = const armnnSerializer::Pooling2dDescriptor *</td></tr> |
| 114 | <tr class="separator:a0dc66e036f16781886a1ce530e11c2d8"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a2a282cf18fcfe848b47e946327ca1048"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a2a282cf18fcfe848b47e946327ca1048">NormalizationDescriptorPtr</a> = const armnnSerializer::NormalizationDescriptor *</td></tr> |
| 116 | <tr class="separator:a2a282cf18fcfe848b47e946327ca1048"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a15397ee26bc4b7d3a459b05e457be428"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">LstmDescriptorPtr</a> = const armnnSerializer::LstmDescriptor *</td></tr> |
| 118 | <tr class="separator:a15397ee26bc4b7d3a459b05e457be428"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a93460fcf78d1b2dcab72dd8378739145"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a93460fcf78d1b2dcab72dd8378739145">LstmInputParamsPtr</a> = const armnnSerializer::LstmInputParams *</td></tr> |
| 120 | <tr class="separator:a93460fcf78d1b2dcab72dd8378739145"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a7acf3a0a92158bf8a2df8ab5467ad6f4"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a7acf3a0a92158bf8a2df8ab5467ad6f4">QunatizedLstmInputParamsPtr</a> = const armnnSerializer::QuantizedLstmInputParams *</td></tr> |
| 122 | <tr class="separator:a7acf3a0a92158bf8a2df8ab5467ad6f4"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:abd8bee7fb9b86485a60bc7ee05114270"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> = std::vector< <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a80888061963ddd18e87105807a035d9a">TensorRawPtr</a> ></td></tr> |
| 124 | <tr class="separator:abd8bee7fb9b86485a60bc7ee05114270"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:a39be8e36d57d85162d1d72c320bc22f6"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a39be8e36d57d85162d1d72c320bc22f6">LayerRawPtr</a> = const armnnSerializer::LayerBase *</td></tr> |
| 126 | <tr class="separator:a39be8e36d57d85162d1d72c320bc22f6"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:a91ade61b5704e4f2c38c263c2be148ef"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">LayerBaseRawPtr</a> = const armnnSerializer::LayerBase *</td></tr> |
| 128 | <tr class="separator:a91ade61b5704e4f2c38c263c2be148ef"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:aaabcc180b1c18918e92459fc282848c1"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#aaabcc180b1c18918e92459fc282848c1">LayerBaseRawPtrVector</a> = std::vector< <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">LayerBaseRawPtr</a> ></td></tr> |
| 130 | <tr class="separator:aaabcc180b1c18918e92459fc282848c1"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | </table><table class="memberdecls"> |
| 132 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 133 | Public Member Functions</h2></td></tr> |
| 134 | <tr class="memitem:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#ae8ee09f5e3e78ecfdf00acfdc37588dc">CreateNetworkFromBinary</a> (const std::vector< uint8_t > &binaryContent) override</td></tr> |
| 135 | <tr class="memdesc:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="mdescLeft"> </td><td class="mdescRight">Create an input network from binary file contents. <a href="#ae8ee09f5e3e78ecfdf00acfdc37588dc">More...</a><br /></td></tr> |
| 136 | <tr class="separator:ae8ee09f5e3e78ecfdf00acfdc37588dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:aba8f9e71e60dd58b6e1165b3accd43b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#aba8f9e71e60dd58b6e1165b3accd43b8">CreateNetworkFromBinary</a> (std::istream &binaryContent) override</td></tr> |
| 138 | <tr class="memdesc:aba8f9e71e60dd58b6e1165b3accd43b8"><td class="mdescLeft"> </td><td class="mdescRight">Create an input network from a binary input stream. <a href="#aba8f9e71e60dd58b6e1165b3accd43b8">More...</a><br /></td></tr> |
| 139 | <tr class="separator:aba8f9e71e60dd58b6e1165b3accd43b8"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a66c5e4250559faefd7f0fa35ccbdc9eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_deserializer_1_1_binding_point_info.html">BindingPointInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a66c5e4250559faefd7f0fa35ccbdc9eb">GetNetworkInputBindingInfo</a> (unsigned int layerId, const std::string &name) const override</td></tr> |
| 141 | <tr class="memdesc:a66c5e4250559faefd7f0fa35ccbdc9eb"><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. <a href="#a66c5e4250559faefd7f0fa35ccbdc9eb">More...</a><br /></td></tr> |
| 142 | <tr class="separator:a66c5e4250559faefd7f0fa35ccbdc9eb"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:ae9cf8ca62e8da6d21e08dc130f68dce4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_deserializer_1_1_binding_point_info.html">BindingPointInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#ae9cf8ca62e8da6d21e08dc130f68dce4">GetNetworkOutputBindingInfo</a> (unsigned int layerId, const std::string &name) const override</td></tr> |
| 144 | <tr class="memdesc:ae9cf8ca62e8da6d21e08dc130f68dce4"><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. <a href="#ae9cf8ca62e8da6d21e08dc130f68dce4">More...</a><br /></td></tr> |
| 145 | <tr class="separator:ae9cf8ca62e8da6d21e08dc130f68dce4"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:a43e0ec855f3a7ebf9f98fbee5321edcf"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a43e0ec855f3a7ebf9f98fbee5321edcf">Deserializer</a> ()</td></tr> |
| 147 | <tr class="separator:a43e0ec855f3a7ebf9f98fbee5321edcf"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:adcc4ae100496aaa3e6766dce0271033d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#adcc4ae100496aaa3e6766dce0271033d">~Deserializer</a> ()</td></tr> |
| 149 | <tr class="separator:adcc4ae100496aaa3e6766dce0271033d"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | </table><table class="memberdecls"> |
| 151 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 152 | Static Public Member Functions</h2></td></tr> |
| 153 | <tr class="memitem:a0ba4effa5ee7ef715b1f452365c41f97"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0ba4effa5ee7ef715b1f452365c41f97">LoadGraphFromBinary</a> (const uint8_t *binaryContent, size_t len)</td></tr> |
| 154 | <tr class="separator:a0ba4effa5ee7ef715b1f452365c41f97"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:a0953e42cc1f6bb2a50504b631d68b114"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0953e42cc1f6bb2a50504b631d68b114">GetInputs</a> (const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> &graph, unsigned int layerIndex)</td></tr> |
| 156 | <tr class="separator:a0953e42cc1f6bb2a50504b631d68b114"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:a0c9267a47f5d254898c67bc0cb2535b9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0c9267a47f5d254898c67bc0cb2535b9">GetOutputs</a> (const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> &graph, unsigned int layerIndex)</td></tr> |
| 158 | <tr class="separator:a0c9267a47f5d254898c67bc0cb2535b9"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <tr class="memitem:a6f332fc8fc6cf6488f8d8e374a4264fc"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">LayerBaseRawPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">GetBaseLayer</a> (const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> &graphPtr, unsigned int layerIndex)</td></tr> |
| 160 | <tr class="separator:a6f332fc8fc6cf6488f8d8e374a4264fc"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <tr class="memitem:afcc87bf0e20779861dd5d01a4bedcda9"><td class="memItemLeft" align="right" valign="top">static int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#afcc87bf0e20779861dd5d01a4bedcda9">GetBindingLayerInfo</a> (const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> &graphPtr, unsigned int layerIndex)</td></tr> |
| 162 | <tr class="separator:afcc87bf0e20779861dd5d01a4bedcda9"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | <tr class="memitem:af2e5b4595b6abc056779ecd12bd271c2"><td class="memItemLeft" align="right" valign="top">static std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#af2e5b4595b6abc056779ecd12bd271c2">GetLayerName</a> (const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> &graph, unsigned int index)</td></tr> |
| 164 | <tr class="separator:af2e5b4595b6abc056779ecd12bd271c2"><td class="memSeparator" colspan="2"> </td></tr> |
| 165 | <tr class="memitem:a271f00048f7e48392794c2eee17c1e2c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a271f00048f7e48392794c2eee17c1e2c">GetPoolingDescriptor</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0dc66e036f16781886a1ce530e11c2d8">PoolingDescriptor</a> pooling2dDescriptor, unsigned int layerIndex)</td></tr> |
| 166 | <tr class="separator:a271f00048f7e48392794c2eee17c1e2c"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="memitem:a920251d49a8f32085d458ba23f776800"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a920251d49a8f32085d458ba23f776800">GetNormalizationDescriptor</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a2a282cf18fcfe848b47e946327ca1048">NormalizationDescriptorPtr</a> normalizationDescriptor, unsigned int layerIndex)</td></tr> |
| 168 | <tr class="separator:a920251d49a8f32085d458ba23f776800"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:af7bb02c61c6a5663121da024b7e042e8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#af7bb02c61c6a5663121da024b7e042e8">GetLstmDescriptor</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">LstmDescriptorPtr</a> lstmDescriptor)</td></tr> |
| 170 | <tr class="separator:af7bb02c61c6a5663121da024b7e042e8"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | <tr class="memitem:a327a399d46f8216c9f4c1eea5f18a542"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structarmnn_1_1_lstm_input_params.html">armnn::LstmInputParams</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a327a399d46f8216c9f4c1eea5f18a542">GetLstmInputParams</a> (<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">LstmDescriptorPtr</a> lstmDescriptor, <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a93460fcf78d1b2dcab72dd8378739145">LstmInputParamsPtr</a> lstmInputParams)</td></tr> |
| 172 | <tr class="separator:a327a399d46f8216c9f4c1eea5f18a542"><td class="memSeparator" colspan="2"> </td></tr> |
| 173 | <tr class="memitem:a8752c2b994619ae67201a297c2c76be2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a8752c2b994619ae67201a297c2c76be2">OutputShapeOfReshape</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> &inputTensorInfo, const std::vector< uint32_t > &targetDimsIn)</td></tr> |
| 174 | <tr class="separator:a8752c2b994619ae67201a297c2c76be2"><td class="memSeparator" colspan="2"> </td></tr> |
| 175 | <tr class="inherit_header pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classarmnn_deserializer_1_1_i_deserializer')"><img src="closed.png" alt="-"/> Static Public Member Functions inherited from <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html">IDeserializer</a></td></tr> |
| 176 | <tr class="memitem:a85f0c438b389992a68adeb6af59f362d inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html">IDeserializer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#a85f0c438b389992a68adeb6af59f362d">CreateRaw</a> ()</td></tr> |
| 177 | <tr class="separator:a85f0c438b389992a68adeb6af59f362d inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:af116abd698a7feb92876ae48917005a4 inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacearmnn_deserializer.html#ad33c6040680106b9af566d7269d8c949">IDeserializerPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#af116abd698a7feb92876ae48917005a4">Create</a> ()</td></tr> |
| 179 | <tr class="separator:af116abd698a7feb92876ae48917005a4 inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:afe33a6c8701eff4d2f7233ce441e0426 inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#afe33a6c8701eff4d2f7233ce441e0426">Destroy</a> (<a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html">IDeserializer</a> *parser)</td></tr> |
| 181 | <tr class="separator:afe33a6c8701eff4d2f7233ce441e0426 inherit pub_static_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | </table><table class="memberdecls"> |
| 183 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 184 | Additional Inherited Members</h2></td></tr> |
| 185 | <tr class="inherit_header pro_methods_classarmnn_deserializer_1_1_i_deserializer"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_deserializer_1_1_i_deserializer')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html">IDeserializer</a></td></tr> |
| 186 | <tr class="memitem:aa46cab6453307d54a7ff94f19ee47d53 inherit pro_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#aa46cab6453307d54a7ff94f19ee47d53">~IDeserializer</a> ()</td></tr> |
| 187 | <tr class="separator:aa46cab6453307d54a7ff94f19ee47d53 inherit pro_methods_classarmnn_deserializer_1_1_i_deserializer"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | </table> |
| 189 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 190 | <div class="textblock"> |
| 191 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00016">16</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 192 | </div><h2 class="groupheader">Member Typedef Documentation</h2> |
| 193 | <a id="a68b76ee033fdd629404369171c3d4f90"></a> |
| 194 | <h2 class="memtitle"><span class="permalink"><a href="#a68b76ee033fdd629404369171c3d4f90">◆ </a></span>ConstTensorRawPtr</h2> |
| 195 | |
| 196 | <div class="memitem"> |
| 197 | <div class="memproto"> |
| 198 | <table class="memname"> |
| 199 | <tr> |
| 200 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a68b76ee033fdd629404369171c3d4f90">ConstTensorRawPtr</a> = const armnnSerializer::ConstTensor *</td> |
| 201 | </tr> |
| 202 | </table> |
| 203 | </div><div class="memdoc"> |
| 204 | |
| 205 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00020">20</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 206 | |
| 207 | </div> |
| 208 | </div> |
| 209 | <a id="a38c1f8ba8e51364802669c968cf98ff5"></a> |
| 210 | <h2 class="memtitle"><span class="permalink"><a href="#a38c1f8ba8e51364802669c968cf98ff5">◆ </a></span>GraphPtr</h2> |
| 211 | |
| 212 | <div class="memitem"> |
| 213 | <div class="memproto"> |
| 214 | <table class="memname"> |
| 215 | <tr> |
| 216 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> = const armnnSerializer::SerializedGraph *</td> |
| 217 | </tr> |
| 218 | </table> |
| 219 | </div><div class="memdoc"> |
| 220 | |
| 221 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00021">21</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 222 | |
| 223 | </div> |
| 224 | </div> |
| 225 | <a id="a91ade61b5704e4f2c38c263c2be148ef"></a> |
| 226 | <h2 class="memtitle"><span class="permalink"><a href="#a91ade61b5704e4f2c38c263c2be148ef">◆ </a></span>LayerBaseRawPtr</h2> |
| 227 | |
| 228 | <div class="memitem"> |
| 229 | <div class="memproto"> |
| 230 | <table class="memname"> |
| 231 | <tr> |
| 232 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">LayerBaseRawPtr</a> = const armnnSerializer::LayerBase *</td> |
| 233 | </tr> |
| 234 | </table> |
| 235 | </div><div class="memdoc"> |
| 236 | |
| 237 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00030">30</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 238 | |
| 239 | </div> |
| 240 | </div> |
| 241 | <a id="aaabcc180b1c18918e92459fc282848c1"></a> |
| 242 | <h2 class="memtitle"><span class="permalink"><a href="#aaabcc180b1c18918e92459fc282848c1">◆ </a></span>LayerBaseRawPtrVector</h2> |
| 243 | |
| 244 | <div class="memitem"> |
| 245 | <div class="memproto"> |
| 246 | <table class="memname"> |
| 247 | <tr> |
| 248 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#aaabcc180b1c18918e92459fc282848c1">LayerBaseRawPtrVector</a> = std::vector<<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">LayerBaseRawPtr</a>></td> |
| 249 | </tr> |
| 250 | </table> |
| 251 | </div><div class="memdoc"> |
| 252 | |
| 253 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00031">31</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 254 | |
| 255 | </div> |
| 256 | </div> |
| 257 | <a id="a39be8e36d57d85162d1d72c320bc22f6"></a> |
| 258 | <h2 class="memtitle"><span class="permalink"><a href="#a39be8e36d57d85162d1d72c320bc22f6">◆ </a></span>LayerRawPtr</h2> |
| 259 | |
| 260 | <div class="memitem"> |
| 261 | <div class="memproto"> |
| 262 | <table class="memname"> |
| 263 | <tr> |
| 264 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a39be8e36d57d85162d1d72c320bc22f6">LayerRawPtr</a> = const armnnSerializer::LayerBase *</td> |
| 265 | </tr> |
| 266 | </table> |
| 267 | </div><div class="memdoc"> |
| 268 | |
| 269 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00029">29</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 270 | |
| 271 | </div> |
| 272 | </div> |
| 273 | <a id="a15397ee26bc4b7d3a459b05e457be428"></a> |
| 274 | <h2 class="memtitle"><span class="permalink"><a href="#a15397ee26bc4b7d3a459b05e457be428">◆ </a></span>LstmDescriptorPtr</h2> |
| 275 | |
| 276 | <div class="memitem"> |
| 277 | <div class="memproto"> |
| 278 | <table class="memname"> |
| 279 | <tr> |
| 280 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">LstmDescriptorPtr</a> = const armnnSerializer::LstmDescriptor *</td> |
| 281 | </tr> |
| 282 | </table> |
| 283 | </div><div class="memdoc"> |
| 284 | |
| 285 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00025">25</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 286 | |
| 287 | </div> |
| 288 | </div> |
| 289 | <a id="a93460fcf78d1b2dcab72dd8378739145"></a> |
| 290 | <h2 class="memtitle"><span class="permalink"><a href="#a93460fcf78d1b2dcab72dd8378739145">◆ </a></span>LstmInputParamsPtr</h2> |
| 291 | |
| 292 | <div class="memitem"> |
| 293 | <div class="memproto"> |
| 294 | <table class="memname"> |
| 295 | <tr> |
| 296 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a93460fcf78d1b2dcab72dd8378739145">LstmInputParamsPtr</a> = const armnnSerializer::LstmInputParams *</td> |
| 297 | </tr> |
| 298 | </table> |
| 299 | </div><div class="memdoc"> |
| 300 | |
| 301 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00026">26</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 302 | |
| 303 | </div> |
| 304 | </div> |
| 305 | <a id="a2a282cf18fcfe848b47e946327ca1048"></a> |
| 306 | <h2 class="memtitle"><span class="permalink"><a href="#a2a282cf18fcfe848b47e946327ca1048">◆ </a></span>NormalizationDescriptorPtr</h2> |
| 307 | |
| 308 | <div class="memitem"> |
| 309 | <div class="memproto"> |
| 310 | <table class="memname"> |
| 311 | <tr> |
| 312 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a2a282cf18fcfe848b47e946327ca1048">NormalizationDescriptorPtr</a> = const armnnSerializer::NormalizationDescriptor *</td> |
| 313 | </tr> |
| 314 | </table> |
| 315 | </div><div class="memdoc"> |
| 316 | |
| 317 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00024">24</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 318 | |
| 319 | </div> |
| 320 | </div> |
| 321 | <a id="a0dc66e036f16781886a1ce530e11c2d8"></a> |
| 322 | <h2 class="memtitle"><span class="permalink"><a href="#a0dc66e036f16781886a1ce530e11c2d8">◆ </a></span>PoolingDescriptor</h2> |
| 323 | |
| 324 | <div class="memitem"> |
| 325 | <div class="memproto"> |
| 326 | <table class="memname"> |
| 327 | <tr> |
| 328 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0dc66e036f16781886a1ce530e11c2d8">PoolingDescriptor</a> = const armnnSerializer::Pooling2dDescriptor *</td> |
| 329 | </tr> |
| 330 | </table> |
| 331 | </div><div class="memdoc"> |
| 332 | |
| 333 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00023">23</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 334 | |
| 335 | </div> |
| 336 | </div> |
| 337 | <a id="a7acf3a0a92158bf8a2df8ab5467ad6f4"></a> |
| 338 | <h2 class="memtitle"><span class="permalink"><a href="#a7acf3a0a92158bf8a2df8ab5467ad6f4">◆ </a></span>QunatizedLstmInputParamsPtr</h2> |
| 339 | |
| 340 | <div class="memitem"> |
| 341 | <div class="memproto"> |
| 342 | <table class="memname"> |
| 343 | <tr> |
| 344 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a7acf3a0a92158bf8a2df8ab5467ad6f4">QunatizedLstmInputParamsPtr</a> = const armnnSerializer::QuantizedLstmInputParams *</td> |
| 345 | </tr> |
| 346 | </table> |
| 347 | </div><div class="memdoc"> |
| 348 | |
| 349 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00027">27</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 350 | |
| 351 | </div> |
| 352 | </div> |
| 353 | <a id="a80888061963ddd18e87105807a035d9a"></a> |
| 354 | <h2 class="memtitle"><span class="permalink"><a href="#a80888061963ddd18e87105807a035d9a">◆ </a></span>TensorRawPtr</h2> |
| 355 | |
| 356 | <div class="memitem"> |
| 357 | <div class="memproto"> |
| 358 | <table class="memname"> |
| 359 | <tr> |
| 360 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a80888061963ddd18e87105807a035d9a">TensorRawPtr</a> = const armnnSerializer::TensorInfo *</td> |
| 361 | </tr> |
| 362 | </table> |
| 363 | </div><div class="memdoc"> |
| 364 | |
| 365 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00022">22</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 366 | |
| 367 | </div> |
| 368 | </div> |
| 369 | <a id="abd8bee7fb9b86485a60bc7ee05114270"></a> |
| 370 | <h2 class="memtitle"><span class="permalink"><a href="#abd8bee7fb9b86485a60bc7ee05114270">◆ </a></span>TensorRawPtrVector</h2> |
| 371 | |
| 372 | <div class="memitem"> |
| 373 | <div class="memproto"> |
| 374 | <table class="memname"> |
| 375 | <tr> |
| 376 | <td class="memname">using <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> = std::vector<<a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a80888061963ddd18e87105807a035d9a">TensorRawPtr</a>></td> |
| 377 | </tr> |
| 378 | </table> |
| 379 | </div><div class="memdoc"> |
| 380 | |
| 381 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00028">28</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 382 | |
| 383 | </div> |
| 384 | </div> |
| 385 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 386 | <a id="a43e0ec855f3a7ebf9f98fbee5321edcf"></a> |
| 387 | <h2 class="memtitle"><span class="permalink"><a href="#a43e0ec855f3a7ebf9f98fbee5321edcf">◆ </a></span>Deserializer()</h2> |
| 388 | |
| 389 | <div class="memitem"> |
| 390 | <div class="memproto"> |
| 391 | <table class="memname"> |
| 392 | <tr> |
| 393 | <td class="memname"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html">Deserializer</a> </td> |
| 394 | <td>(</td> |
| 395 | <td class="paramname"></td><td>)</td> |
| 396 | <td></td> |
| 397 | </tr> |
| 398 | </table> |
| 399 | </div><div class="memdoc"> |
| 400 | |
| 401 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00185">185</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 402 | |
| 403 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l00645">IDeserializer::CreateRaw()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 404 | <div class="fragment"><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> : m_Network(<span class="keyword">nullptr</span>, <span class="keyword">nullptr</span>),</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> <span class="comment">//May require LayerType_Max to be included</span></div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> m_ParserFunctions(Layer_MAX+1, &Deserializer::ParseUnsupportedLayer)</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="comment">// register supported layers</span></div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  m_ParserFunctions[Layer_AbsLayer] = &Deserializer::ParseAbs;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  m_ParserFunctions[Layer_ActivationLayer] = &Deserializer::ParseActivation;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  m_ParserFunctions[Layer_AdditionLayer] = &Deserializer::ParseAdd;</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  m_ParserFunctions[Layer_ArgMinMaxLayer] = &Deserializer::ParseArgMinMax;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  m_ParserFunctions[Layer_BatchToSpaceNdLayer] = &Deserializer::ParseBatchToSpaceNd;</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  m_ParserFunctions[Layer_BatchNormalizationLayer] = &Deserializer::ParseBatchNormalization;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  m_ParserFunctions[Layer_ComparisonLayer] = &Deserializer::ParseComparison;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  m_ParserFunctions[Layer_ConcatLayer] = &Deserializer::ParseConcat;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  m_ParserFunctions[Layer_ConstantLayer] = &Deserializer::ParseConstant;</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  m_ParserFunctions[Layer_Convolution2dLayer] = &Deserializer::ParseConvolution2d;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  m_ParserFunctions[Layer_DepthToSpaceLayer] = &Deserializer::ParseDepthToSpace;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  m_ParserFunctions[Layer_DepthwiseConvolution2dLayer] = &Deserializer::ParseDepthwiseConvolution2d;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  m_ParserFunctions[Layer_DequantizeLayer] = &Deserializer::ParseDequantize;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  m_ParserFunctions[Layer_DetectionPostProcessLayer] = &Deserializer::ParseDetectionPostProcess;</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  m_ParserFunctions[Layer_DivisionLayer] = &Deserializer::ParseDivision;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  m_ParserFunctions[Layer_ElementwiseUnaryLayer] = &Deserializer::ParseElementwiseUnary;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  m_ParserFunctions[Layer_EqualLayer] = &Deserializer::ParseEqual;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  m_ParserFunctions[Layer_FullyConnectedLayer] = &Deserializer::ParseFullyConnected;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  m_ParserFunctions[Layer_FloorLayer] = &Deserializer::ParseFloor;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  m_ParserFunctions[Layer_GatherLayer] = &Deserializer::ParseGather;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  m_ParserFunctions[Layer_GreaterLayer] = &Deserializer::ParseGreater;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  m_ParserFunctions[Layer_InstanceNormalizationLayer] = &Deserializer::ParseInstanceNormalization;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  m_ParserFunctions[Layer_L2NormalizationLayer] = &Deserializer::ParseL2Normalization;</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  m_ParserFunctions[Layer_LogSoftmaxLayer] = &Deserializer::ParseLogSoftmax;</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  m_ParserFunctions[Layer_LstmLayer] = &Deserializer::ParseLstm;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  m_ParserFunctions[Layer_MaximumLayer] = &Deserializer::ParseMaximum;</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  m_ParserFunctions[Layer_MeanLayer] = &Deserializer::ParseMean;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  m_ParserFunctions[Layer_MinimumLayer] = &Deserializer::ParseMinimum;</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  m_ParserFunctions[Layer_MergeLayer] = &Deserializer::ParseMerge;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  m_ParserFunctions[Layer_MergerLayer] = &Deserializer::ParseConcat;</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  m_ParserFunctions[Layer_MultiplicationLayer] = &Deserializer::ParseMultiplication;</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  m_ParserFunctions[Layer_NormalizationLayer] = &Deserializer::ParseNormalization;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  m_ParserFunctions[Layer_PadLayer] = &Deserializer::ParsePad;</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  m_ParserFunctions[Layer_PermuteLayer] = &Deserializer::ParsePermute;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  m_ParserFunctions[Layer_Pooling2dLayer] = &Deserializer::ParsePooling2d;</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  m_ParserFunctions[Layer_PreluLayer] = &Deserializer::ParsePrelu;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  m_ParserFunctions[Layer_QuantizeLayer] = &Deserializer::ParseQuantize;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  m_ParserFunctions[Layer_QuantizedLstmLayer] = &Deserializer::ParseQuantizedLstm;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  m_ParserFunctions[Layer_ReshapeLayer] = &Deserializer::ParseReshape;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  m_ParserFunctions[Layer_ResizeBilinearLayer] = &Deserializer::ParseResizeBilinear;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  m_ParserFunctions[Layer_ResizeLayer] = &Deserializer::ParseResize;</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  m_ParserFunctions[Layer_RsqrtLayer] = &Deserializer::ParseRsqrt;</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  m_ParserFunctions[Layer_SliceLayer] = &Deserializer::ParseSlice;</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>  m_ParserFunctions[Layer_SoftmaxLayer] = &Deserializer::ParseSoftmax;</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  m_ParserFunctions[Layer_SpaceToBatchNdLayer] = &Deserializer::ParseSpaceToBatchNd;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  m_ParserFunctions[Layer_SpaceToDepthLayer] = &Deserializer::ParseSpaceToDepth;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  m_ParserFunctions[Layer_SplitterLayer] = &Deserializer::ParseSplitter;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  m_ParserFunctions[Layer_StackLayer] = &Deserializer::ParseStack;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  m_ParserFunctions[Layer_StandInLayer] = &Deserializer::ParseStandIn;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  m_ParserFunctions[Layer_StridedSliceLayer] = &Deserializer::ParseStridedSlice;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  m_ParserFunctions[Layer_SubtractionLayer] = &Deserializer::ParseSubtraction;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  m_ParserFunctions[Layer_SwitchLayer] = &Deserializer::ParseSwitch;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  m_ParserFunctions[Layer_TransposeConvolution2dLayer] = &Deserializer::ParseTransposeConvolution2d;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> }</div></div><!-- fragment --> |
| 405 | </div> |
| 406 | </div> |
| 407 | <a id="adcc4ae100496aaa3e6766dce0271033d"></a> |
| 408 | <h2 class="memtitle"><span class="permalink"><a href="#adcc4ae100496aaa3e6766dce0271033d">◆ </a></span>~Deserializer()</h2> |
| 409 | |
| 410 | <div class="memitem"> |
| 411 | <div class="memproto"> |
| 412 | <table class="mlabels"> |
| 413 | <tr> |
| 414 | <td class="mlabels-left"> |
| 415 | <table class="memname"> |
| 416 | <tr> |
| 417 | <td class="memname">~<a class="el" href="classarmnn_deserializer_1_1_deserializer.html">Deserializer</a> </td> |
| 418 | <td>(</td> |
| 419 | <td class="paramname"></td><td>)</td> |
| 420 | <td></td> |
| 421 | </tr> |
| 422 | </table> |
| 423 | </td> |
| 424 | <td class="mlabels-right"> |
| 425 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 426 | </tr> |
| 427 | </table> |
| 428 | </div><div class="memdoc"> |
| 429 | |
| 430 | <p class="definition">Definition at line <a class="el" href="_deserializer_8hpp_source.html#l00048">48</a> of file <a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a>.</p> |
| 431 | |
| 432 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00185">Deserializer::Deserializer()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00246">Deserializer::GetBaseLayer()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00375">Deserializer::GetBindingLayerInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.html#l02454">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a327a399d46f8216c9f4c1eea5f18a542">Deserializer::GetLstmInputParams()</a>, <a class="el" href="_deserializer_8cpp_source.html#l02148">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01797">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00675">Deserializer::LoadGraphFromBinary()</a>, and <a class="el" href="_deserializer_8cpp_source.html#l01927">Deserializer::OutputShapeOfReshape()</a>.</p> |
| 433 | <div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {}</div></div><!-- fragment --> |
| 434 | </div> |
| 435 | </div> |
| 436 | <h2 class="groupheader">Member Function Documentation</h2> |
| 437 | <a id="ae8ee09f5e3e78ecfdf00acfdc37588dc"></a> |
| 438 | <h2 class="memtitle"><span class="permalink"><a href="#ae8ee09f5e3e78ecfdf00acfdc37588dc">◆ </a></span>CreateNetworkFromBinary() <span class="overload">[1/2]</span></h2> |
| 439 | |
| 440 | <div class="memitem"> |
| 441 | <div class="memproto"> |
| 442 | <table class="mlabels"> |
| 443 | <tr> |
| 444 | <td class="mlabels-left"> |
| 445 | <table class="memname"> |
| 446 | <tr> |
| 447 | <td class="memname"><a class="el" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">INetworkPtr</a> CreateNetworkFromBinary </td> |
| 448 | <td>(</td> |
| 449 | <td class="paramtype">const std::vector< uint8_t > & </td> |
| 450 | <td class="paramname"><em>binaryContent</em></td><td>)</td> |
| 451 | <td></td> |
| 452 | </tr> |
| 453 | </table> |
| 454 | </td> |
| 455 | <td class="mlabels-right"> |
| 456 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 457 | </tr> |
| 458 | </table> |
| 459 | </div><div class="memdoc"> |
| 460 | |
| 461 | <p>Create an input network from binary file contents. </p> |
| 462 | |
| 463 | <p>Implements <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#a7dd0134440a006226f95d547f0b3e89c">IDeserializer</a>.</p> |
| 464 | |
| 465 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00660">660</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 466 | |
| 467 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00675">Deserializer::LoadGraphFromBinary()</a>.</p> |
| 468 | <div class="fragment"><div class="line"><a name="l00661"></a><span class="lineno"> 661</span> {</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  ResetParser();</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> graph = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a0ba4effa5ee7ef715b1f452365c41f97">LoadGraphFromBinary</a>(binaryContent.data(), binaryContent.size());</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  <span class="keywordflow">return</span> CreateNetworkFromGraph(graph);</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span> }</div><div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a38c1f8ba8e51364802669c968cf98ff5"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">armnnDeserializer::Deserializer::GraphPtr</a></div><div class="ttdeci">const armnnSerializer::SerializedGraph * GraphPtr</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8hpp_source.html#l00021">Deserializer.hpp:21</a></div></div> |
| 469 | <div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a0ba4effa5ee7ef715b1f452365c41f97"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a0ba4effa5ee7ef715b1f452365c41f97">armnnDeserializer::Deserializer::LoadGraphFromBinary</a></div><div class="ttdeci">static GraphPtr LoadGraphFromBinary(const uint8_t *binaryContent, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00675">Deserializer.cpp:675</a></div></div> |
| 470 | </div><!-- fragment --> |
| 471 | </div> |
| 472 | </div> |
| 473 | <a id="aba8f9e71e60dd58b6e1165b3accd43b8"></a> |
| 474 | <h2 class="memtitle"><span class="permalink"><a href="#aba8f9e71e60dd58b6e1165b3accd43b8">◆ </a></span>CreateNetworkFromBinary() <span class="overload">[2/2]</span></h2> |
| 475 | |
| 476 | <div class="memitem"> |
| 477 | <div class="memproto"> |
| 478 | <table class="mlabels"> |
| 479 | <tr> |
| 480 | <td class="mlabels-left"> |
| 481 | <table class="memname"> |
| 482 | <tr> |
| 483 | <td class="memname"><a class="el" href="namespacearmnn.html#ace74f6f9feb95a964a49d79458232703">armnn::INetworkPtr</a> CreateNetworkFromBinary </td> |
| 484 | <td>(</td> |
| 485 | <td class="paramtype">std::istream & </td> |
| 486 | <td class="paramname"><em>binaryContent</em></td><td>)</td> |
| 487 | <td></td> |
| 488 | </tr> |
| 489 | </table> |
| 490 | </td> |
| 491 | <td class="mlabels-right"> |
| 492 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 493 | </tr> |
| 494 | </table> |
| 495 | </div><div class="memdoc"> |
| 496 | |
| 497 | <p>Create an input network from a binary input stream. </p> |
| 498 | |
| 499 | <p>Implements <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#af2fc17d61fa555423b2b1665c918cf5a">IDeserializer</a>.</p> |
| 500 | |
| 501 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00667">667</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 502 | |
| 503 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00675">Deserializer::LoadGraphFromBinary()</a>.</p> |
| 504 | <div class="fragment"><div class="line"><a name="l00668"></a><span class="lineno"> 668</span> {</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  ResetParser();</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  std::vector<uint8_t> content((std::istreambuf_iterator<char>(binaryContent)), std::istreambuf_iterator<char>());</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> graph = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a0ba4effa5ee7ef715b1f452365c41f97">LoadGraphFromBinary</a>(content.data(), content.size());</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  <span class="keywordflow">return</span> CreateNetworkFromGraph(graph);</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span> }</div><div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a38c1f8ba8e51364802669c968cf98ff5"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">armnnDeserializer::Deserializer::GraphPtr</a></div><div class="ttdeci">const armnnSerializer::SerializedGraph * GraphPtr</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8hpp_source.html#l00021">Deserializer.hpp:21</a></div></div> |
| 505 | <div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a0ba4effa5ee7ef715b1f452365c41f97"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a0ba4effa5ee7ef715b1f452365c41f97">armnnDeserializer::Deserializer::LoadGraphFromBinary</a></div><div class="ttdeci">static GraphPtr LoadGraphFromBinary(const uint8_t *binaryContent, size_t len)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00675">Deserializer.cpp:675</a></div></div> |
| 506 | </div><!-- fragment --> |
| 507 | </div> |
| 508 | </div> |
| 509 | <a id="a6f332fc8fc6cf6488f8d8e374a4264fc"></a> |
| 510 | <h2 class="memtitle"><span class="permalink"><a href="#a6f332fc8fc6cf6488f8d8e374a4264fc">◆ </a></span>GetBaseLayer()</h2> |
| 511 | |
| 512 | <div class="memitem"> |
| 513 | <div class="memproto"> |
| 514 | <table class="mlabels"> |
| 515 | <tr> |
| 516 | <td class="mlabels-left"> |
| 517 | <table class="memname"> |
| 518 | <tr> |
| 519 | <td class="memname"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a91ade61b5704e4f2c38c263c2be148ef">Deserializer::LayerBaseRawPtr</a> GetBaseLayer </td> |
| 520 | <td>(</td> |
| 521 | <td class="paramtype">const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> & </td> |
| 522 | <td class="paramname"><em>graphPtr</em>, </td> |
| 523 | </tr> |
| 524 | <tr> |
| 525 | <td class="paramkey"></td> |
| 526 | <td></td> |
| 527 | <td class="paramtype">unsigned int </td> |
| 528 | <td class="paramname"><em>layerIndex</em> </td> |
| 529 | </tr> |
| 530 | <tr> |
| 531 | <td></td> |
| 532 | <td>)</td> |
| 533 | <td></td><td></td> |
| 534 | </tr> |
| 535 | </table> |
| 536 | </td> |
| 537 | <td class="mlabels-right"> |
| 538 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 539 | </tr> |
| 540 | </table> |
| 541 | </div><div class="memdoc"> |
| 542 | |
| 543 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00246">246</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 544 | |
| 545 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00753">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 546 | <div class="fragment"><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> {</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keyword">auto</span> layerType = graphPtr->layers()->Get(layerIndex)->layer_type();</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> </div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="keywordflow">switch</span>(layerType)</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  {</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">case</span> Layer::Layer_AbsLayer:</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_AbsLayer()->base();</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <span class="keywordflow">case</span> Layer::Layer_ActivationLayer:</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ActivationLayer()->base();</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <span class="keywordflow">case</span> Layer::Layer_AdditionLayer:</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_AdditionLayer()->base();</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  <span class="keywordflow">case</span> Layer::Layer_ArgMinMaxLayer:</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ArgMinMaxLayer()->base();</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>  <span class="keywordflow">case</span> Layer::Layer_BatchToSpaceNdLayer:</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_BatchToSpaceNdLayer()->base();</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">case</span> Layer::Layer_BatchNormalizationLayer:</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_BatchNormalizationLayer()->base();</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordflow">case</span> Layer::Layer_ComparisonLayer:</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ComparisonLayer()->base();</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keywordflow">case</span> Layer::Layer_ConcatLayer:</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ConcatLayer()->base();</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">case</span> Layer::Layer_ConstantLayer:</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ConstantLayer()->base();</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keywordflow">case</span> Layer::Layer_Convolution2dLayer:</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_Convolution2dLayer()->base();</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">case</span> Layer::Layer_DepthToSpaceLayer:</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_DepthToSpaceLayer()->base();</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">case</span> Layer::Layer_DepthwiseConvolution2dLayer:</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_DepthwiseConvolution2dLayer()->base();</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <span class="keywordflow">case</span> Layer::Layer_DequantizeLayer:</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_DequantizeLayer()->base();</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordflow">case</span> Layer::Layer_DetectionPostProcessLayer:</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_DetectionPostProcessLayer()->base();</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keywordflow">case</span> Layer::Layer_DivisionLayer:</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_DivisionLayer()->base();</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keywordflow">case</span> Layer::Layer_EqualLayer:</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_EqualLayer()->base();</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">case</span> Layer::Layer_FullyConnectedLayer:</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_FullyConnectedLayer()->base();</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="keywordflow">case</span> Layer::Layer_FloorLayer:</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_FloorLayer()->base();</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">case</span> Layer::Layer_GatherLayer:</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_GatherLayer()->base();</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">case</span> Layer::Layer_GreaterLayer:</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_GreaterLayer()->base();</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">case</span> Layer::Layer_InputLayer:</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_InputLayer()->base()->base();</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <span class="keywordflow">case</span> Layer::Layer_InstanceNormalizationLayer:</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_InstanceNormalizationLayer()->base();</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <span class="keywordflow">case</span> Layer::Layer_L2NormalizationLayer:</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_L2NormalizationLayer()->base();</div><div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">case</span> Layer::Layer_LogSoftmaxLayer:</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_LogSoftmaxLayer()->base();</div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <span class="keywordflow">case</span> Layer::Layer_LstmLayer:</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_LstmLayer()->base();</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">case</span> Layer::Layer_MeanLayer:</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MeanLayer()->base();</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">case</span> Layer::Layer_MinimumLayer:</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MinimumLayer()->base();</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">case</span> Layer::Layer_MaximumLayer:</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MaximumLayer()->base();</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">case</span> Layer::Layer_MergeLayer:</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MergeLayer()->base();</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <span class="keywordflow">case</span> Layer::Layer_MergerLayer:</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MergerLayer()->base();</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">case</span> Layer::Layer_MultiplicationLayer:</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_MultiplicationLayer()->base();</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">case</span> Layer::Layer_NormalizationLayer:</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_NormalizationLayer()->base();</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <span class="keywordflow">case</span> Layer::Layer_OutputLayer:</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_OutputLayer()->base()->base();</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">case</span> Layer::Layer_PadLayer:</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_PadLayer()->base();</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">case</span> Layer::Layer_PermuteLayer:</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_PermuteLayer()->base();</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <span class="keywordflow">case</span> Layer::Layer_Pooling2dLayer:</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_Pooling2dLayer()->base();</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">case</span> Layer::Layer_PreluLayer:</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_PreluLayer()->base();</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="keywordflow">case</span> Layer::Layer_QuantizeLayer:</div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_QuantizeLayer()->base();</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <span class="keywordflow">case</span> Layer::Layer_QuantizedLstmLayer:</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_QuantizedLstmLayer()->base();</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">case</span> Layer::Layer_ReshapeLayer:</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ReshapeLayer()->base();</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="keywordflow">case</span> Layer::Layer_ResizeBilinearLayer:</div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ResizeBilinearLayer()->base();</div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <span class="keywordflow">case</span> Layer::Layer_ResizeLayer:</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_ResizeLayer()->base();</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">case</span> Layer::Layer_RsqrtLayer:</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_RsqrtLayer()->base();</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span>  <span class="keywordflow">case</span> Layer::Layer_SliceLayer:</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SliceLayer()->base();</div><div class="line"><a name="l00340"></a><span class="lineno"> 340</span>  <span class="keywordflow">case</span> Layer::Layer_SoftmaxLayer:</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SoftmaxLayer()->base();</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordflow">case</span> Layer::Layer_SpaceToBatchNdLayer:</div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SpaceToBatchNdLayer()->base();</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keywordflow">case</span> Layer::Layer_SpaceToDepthLayer:</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SpaceToDepthLayer()->base();</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <span class="keywordflow">case</span> Layer::Layer_SplitterLayer:</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SplitterLayer()->base();</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keywordflow">case</span> Layer::Layer_StackLayer:</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_StackLayer()->base();</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  <span class="keywordflow">case</span> Layer::Layer_StandInLayer:</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_StandInLayer()->base();</div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordflow">case</span> Layer::Layer_StridedSliceLayer:</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_StridedSliceLayer()->base();</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  <span class="keywordflow">case</span> Layer::Layer_SubtractionLayer:</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SubtractionLayer()->base();</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <span class="keywordflow">case</span> Layer::Layer_SwitchLayer:</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_SwitchLayer()->base();</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  <span class="keywordflow">case</span> Layer::Layer_TransposeConvolution2dLayer:</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_TransposeConvolution2dLayer()->base();</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <span class="keywordflow">case</span> Layer::Layer_NONE:</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(boost::str(</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  boost::format(<span class="stringliteral">"Layer type %1% not recognized"</span>) %</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  layerType));</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  }</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 547 | </div><!-- fragment --> |
| 548 | </div> |
| 549 | </div> |
| 550 | <a id="afcc87bf0e20779861dd5d01a4bedcda9"></a> |
| 551 | <h2 class="memtitle"><span class="permalink"><a href="#afcc87bf0e20779861dd5d01a4bedcda9">◆ </a></span>GetBindingLayerInfo()</h2> |
| 552 | |
| 553 | <div class="memitem"> |
| 554 | <div class="memproto"> |
| 555 | <table class="mlabels"> |
| 556 | <tr> |
| 557 | <td class="mlabels-left"> |
| 558 | <table class="memname"> |
| 559 | <tr> |
| 560 | <td class="memname">int32_t GetBindingLayerInfo </td> |
| 561 | <td>(</td> |
| 562 | <td class="paramtype">const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> & </td> |
| 563 | <td class="paramname"><em>graphPtr</em>, </td> |
| 564 | </tr> |
| 565 | <tr> |
| 566 | <td class="paramkey"></td> |
| 567 | <td></td> |
| 568 | <td class="paramtype">unsigned int </td> |
| 569 | <td class="paramname"><em>layerIndex</em> </td> |
| 570 | </tr> |
| 571 | <tr> |
| 572 | <td></td> |
| 573 | <td>)</td> |
| 574 | <td></td><td></td> |
| 575 | </tr> |
| 576 | </table> |
| 577 | </td> |
| 578 | <td class="mlabels-right"> |
| 579 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 580 | </tr> |
| 581 | </table> |
| 582 | </div><div class="memdoc"> |
| 583 | |
| 584 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00375">375</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 585 | |
| 586 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l00753">Deserializer::GetNetworkOutputBindingInfo()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 587 | <div class="fragment"><div class="line"><a name="l00376"></a><span class="lineno"> 376</span> {</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keyword">auto</span> layerType = graphPtr->layers()->Get(layerIndex)->layer_type();</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keywordflow">if</span> (layerType == Layer::Layer_InputLayer)</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  {</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_InputLayer()->base()->layerBindingId();</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  }</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( layerType == Layer::Layer_OutputLayer )</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  {</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordflow">return</span> graphPtr->layers()->Get(layerIndex)->layer_as_OutputLayer()->base()->layerBindingId();</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  }</div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> }</div></div><!-- fragment --> |
| 588 | </div> |
| 589 | </div> |
| 590 | <a id="a0953e42cc1f6bb2a50504b631d68b114"></a> |
| 591 | <h2 class="memtitle"><span class="permalink"><a href="#a0953e42cc1f6bb2a50504b631d68b114">◆ </a></span>GetInputs()</h2> |
| 592 | |
| 593 | <div class="memitem"> |
| 594 | <div class="memproto"> |
| 595 | <table class="mlabels"> |
| 596 | <tr> |
| 597 | <td class="mlabels-left"> |
| 598 | <table class="memname"> |
| 599 | <tr> |
| 600 | <td class="memname"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">Deserializer::TensorRawPtrVector</a> GetInputs </td> |
| 601 | <td>(</td> |
| 602 | <td class="paramtype">const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> & </td> |
| 603 | <td class="paramname"><em>graph</em>, </td> |
| 604 | </tr> |
| 605 | <tr> |
| 606 | <td class="paramkey"></td> |
| 607 | <td></td> |
| 608 | <td class="paramtype">unsigned int </td> |
| 609 | <td class="paramname"><em>layerIndex</em> </td> |
| 610 | </tr> |
| 611 | <tr> |
| 612 | <td></td> |
| 613 | <td>)</td> |
| 614 | <td></td><td></td> |
| 615 | </tr> |
| 616 | </table> |
| 617 | </td> |
| 618 | <td class="mlabels-right"> |
| 619 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 620 | </tr> |
| 621 | </table> |
| 622 | </div><div class="memdoc"> |
| 623 | |
| 624 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00590">590</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 625 | |
| 626 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00035">CHECKED_NON_NEGATIVE</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00246">Deserializer::GetBaseLayer()</a>.</p> |
| 627 | |
| 628 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l02454">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00753">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l02148">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01543">armnnDeserializer::GetOriginsDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01797">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01927">Deserializer::OutputShapeOfReshape()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 629 | <div class="fragment"><div class="line"><a name="l00592"></a><span class="lineno"> 592</span> {</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  <a class="code" href="_deserializer_8cpp.html#aa6798881c467e8e1a1906303f6d9e26d">CHECK_LAYERS</a>(graphPtr, 0, layerIndex);</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  <span class="keyword">auto</span> layer = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">GetBaseLayer</a>(graphPtr, layerIndex);</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  <span class="keyword">const</span> <span class="keyword">auto</span>& numInputs = layer->inputSlots()->size();</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span> </div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> result(numInputs);</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span> </div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<numInputs; ++i)</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  {</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="keyword">auto</span> inputId = <a class="code" href="_verification_helpers_8hpp.html#aaef93dc9a69f51b59f3cdd0ff0165927">CHECKED_NON_NEGATIVE</a>(static_cast<int32_t></div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  (layer->inputSlots()->Get(i)->connection()->sourceLayerIndex()));</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  result[i] = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">GetBaseLayer</a>(graphPtr, inputId)->outputSlots()->Get(0)->tensorInfo();</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  }</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span> }</div><div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_abd8bee7fb9b86485a60bc7ee05114270"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">armnnDeserializer::Deserializer::TensorRawPtrVector</a></div><div class="ttdeci">std::vector< TensorRawPtr > TensorRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8hpp_source.html#l00028">Deserializer.hpp:28</a></div></div> |
| 630 | <div class="ttc" id="_deserializer_8cpp_html_aa6798881c467e8e1a1906303f6d9e26d"><div class="ttname"><a href="_deserializer_8cpp.html#aa6798881c467e8e1a1906303f6d9e26d">CHECK_LAYERS</a></div><div class="ttdeci">#define CHECK_LAYERS(GRAPH, LAYERS_INDEX, LAYER_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00159">Deserializer.cpp:159</a></div></div> |
| 631 | <div class="ttc" id="_verification_helpers_8hpp_html_aaef93dc9a69f51b59f3cdd0ff0165927"><div class="ttname"><a href="_verification_helpers_8hpp.html#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.html#l00035">VerificationHelpers.hpp:35</a></div></div> |
| 632 | <div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a6f332fc8fc6cf6488f8d8e374a4264fc"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">armnnDeserializer::Deserializer::GetBaseLayer</a></div><div class="ttdeci">static LayerBaseRawPtr GetBaseLayer(const GraphPtr &graphPtr, unsigned int layerIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00246">Deserializer.cpp:246</a></div></div> |
| 633 | </div><!-- fragment --> |
| 634 | </div> |
| 635 | </div> |
| 636 | <a id="af2e5b4595b6abc056779ecd12bd271c2"></a> |
| 637 | <h2 class="memtitle"><span class="permalink"><a href="#af2e5b4595b6abc056779ecd12bd271c2">◆ </a></span>GetLayerName()</h2> |
| 638 | |
| 639 | <div class="memitem"> |
| 640 | <div class="memproto"> |
| 641 | <table class="mlabels"> |
| 642 | <tr> |
| 643 | <td class="mlabels-left"> |
| 644 | <table class="memname"> |
| 645 | <tr> |
| 646 | <td class="memname">std::string GetLayerName </td> |
| 647 | <td>(</td> |
| 648 | <td class="paramtype">const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> & </td> |
| 649 | <td class="paramname"><em>graph</em>, </td> |
| 650 | </tr> |
| 651 | <tr> |
| 652 | <td class="paramkey"></td> |
| 653 | <td></td> |
| 654 | <td class="paramtype">unsigned int </td> |
| 655 | <td class="paramname"><em>index</em> </td> |
| 656 | </tr> |
| 657 | <tr> |
| 658 | <td></td> |
| 659 | <td>)</td> |
| 660 | <td></td><td></td> |
| 661 | </tr> |
| 662 | </table> |
| 663 | </td> |
| 664 | <td class="mlabels-right"> |
| 665 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 666 | </tr> |
| 667 | </table> |
| 668 | </div><div class="memdoc"> |
| 669 | |
| 670 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00368">368</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 671 | |
| 672 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00246">Deserializer::GetBaseLayer()</a>.</p> |
| 673 | |
| 674 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l02454">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00753">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l02148">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01543">armnnDeserializer::GetOriginsDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01797">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01927">Deserializer::OutputShapeOfReshape()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 675 | <div class="fragment"><div class="line"><a name="l00369"></a><span class="lineno"> 369</span> {</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keyword">auto</span> layer = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">GetBaseLayer</a>(graph, index);</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  assert(layer);</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <span class="keywordflow">return</span> layer->layerName()->str();</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> }</div><div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a6f332fc8fc6cf6488f8d8e374a4264fc"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">armnnDeserializer::Deserializer::GetBaseLayer</a></div><div class="ttdeci">static LayerBaseRawPtr GetBaseLayer(const GraphPtr &graphPtr, unsigned int layerIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00246">Deserializer.cpp:246</a></div></div> |
| 676 | </div><!-- fragment --> |
| 677 | </div> |
| 678 | </div> |
| 679 | <a id="af7bb02c61c6a5663121da024b7e042e8"></a> |
| 680 | <h2 class="memtitle"><span class="permalink"><a href="#af7bb02c61c6a5663121da024b7e042e8">◆ </a></span>GetLstmDescriptor()</h2> |
| 681 | |
| 682 | <div class="memitem"> |
| 683 | <div class="memproto"> |
| 684 | <table class="mlabels"> |
| 685 | <tr> |
| 686 | <td class="mlabels-left"> |
| 687 | <table class="memname"> |
| 688 | <tr> |
| 689 | <td class="memname"><a class="el" href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a> GetLstmDescriptor </td> |
| 690 | <td>(</td> |
| 691 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">Deserializer::LstmDescriptorPtr</a> </td> |
| 692 | <td class="paramname"><em>lstmDescriptor</em></td><td>)</td> |
| 693 | <td></td> |
| 694 | </tr> |
| 695 | </table> |
| 696 | </td> |
| 697 | <td class="mlabels-right"> |
| 698 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 699 | </tr> |
| 700 | </table> |
| 701 | </div><div class="memdoc"> |
| 702 | |
| 703 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l02454">2454</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 704 | |
| 705 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00861">LstmDescriptor::m_ActivationFunc</a>, <a class="el" href="_descriptors_8hpp_source.html#l01117">TransposeConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00045">QuantizedLstmInputParams::m_CellBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00053">LstmInputParams::m_CellBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00059">LstmInputParams::m_CellLayerNormWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00049">LstmInputParams::m_CellToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00048">LstmInputParams::m_CellToInputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00050">LstmInputParams::m_CellToOutputWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l00867">LstmDescriptor::m_CifgEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00863">LstmDescriptor::m_ClippingThresCell</a>, <a class="el" href="_descriptors_8hpp_source.html#l00865">LstmDescriptor::m_ClippingThresProj</a>, <a class="el" href="_descriptors_8hpp_source.html#l01119">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00044">QuantizedLstmInputParams::m_ForgetGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00052">LstmInputParams::m_ForgetGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00058">LstmInputParams::m_ForgetLayerNormWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00043">QuantizedLstmInputParams::m_InputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00051">LstmInputParams::m_InputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00057">LstmInputParams::m_InputLayerNormWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00035">QuantizedLstmInputParams::m_InputToCellWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00042">LstmInputParams::m_InputToCellWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00034">QuantizedLstmInputParams::m_InputToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00041">LstmInputParams::m_InputToForgetWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00033">QuantizedLstmInputParams::m_InputToInputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00040">LstmInputParams::m_InputToInputWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00036">QuantizedLstmInputParams::m_InputToOutputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00043">LstmInputParams::m_InputToOutputWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l00873">LstmDescriptor::m_LayerNormEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00996">StandInDescriptor::m_NumInputs</a>, <a class="el" href="_descriptors_8hpp_source.html#l00998">StandInDescriptor::m_NumOutputs</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00046">QuantizedLstmInputParams::m_OutputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00054">LstmInputParams::m_OutputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00060">LstmInputParams::m_OutputLayerNormWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l01111">TransposeConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l01105">TransposeConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l01107">TransposeConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l01109">TransposeConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00869">LstmDescriptor::m_PeepholeEnabled</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00056">LstmInputParams::m_ProjectionBias</a>, <a class="el" href="_descriptors_8hpp_source.html#l00871">LstmDescriptor::m_ProjectionEnabled</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00055">LstmInputParams::m_ProjectionWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00040">QuantizedLstmInputParams::m_RecurrentToCellWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00046">LstmInputParams::m_RecurrentToCellWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00039">QuantizedLstmInputParams::m_RecurrentToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00045">LstmInputParams::m_RecurrentToForgetWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00038">QuantizedLstmInputParams::m_RecurrentToInputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00044">LstmInputParams::m_RecurrentToInputWeights</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00041">QuantizedLstmInputParams::m_RecurrentToOutputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00047">LstmInputParams::m_RecurrentToOutputWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l01115">TransposeConvolution2dDescriptor::m_StrideY</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00547">armnnDeserializer::ToConstTensor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00390">armnnDeserializer::ToDataLayout()</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00493">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 706 | |
| 707 | <p class="reference">Referenced by <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 708 | <div class="fragment"><div class="line"><a name="l02455"></a><span class="lineno"> 2455</span> {</div><div class="line"><a name="l02456"></a><span class="lineno"> 2456</span>  <a class="code" href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a> desc;</div><div class="line"><a name="l02457"></a><span class="lineno"> 2457</span> </div><div class="line"><a name="l02458"></a><span class="lineno"> 2458</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">m_ActivationFunc</a> = lstmDescriptor->activationFunc();</div><div class="line"><a name="l02459"></a><span class="lineno"> 2459</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">m_ClippingThresCell</a> = lstmDescriptor->clippingThresCell();</div><div class="line"><a name="l02460"></a><span class="lineno"> 2460</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">m_ClippingThresProj</a> = lstmDescriptor->clippingThresProj();</div><div class="line"><a name="l02461"></a><span class="lineno"> 2461</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a> = lstmDescriptor->cifgEnabled();</div><div class="line"><a name="l02462"></a><span class="lineno"> 2462</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">m_PeepholeEnabled</a> = lstmDescriptor->peepholeEnabled();</div><div class="line"><a name="l02463"></a><span class="lineno"> 2463</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">m_ProjectionEnabled</a> = lstmDescriptor->projectionEnabled();</div><div class="line"><a name="l02464"></a><span class="lineno"> 2464</span>  desc.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a4a8ec49f130084445d44297549254780">m_LayerNormEnabled</a> = lstmDescriptor->layerNormEnabled();</div><div class="line"><a name="l02465"></a><span class="lineno"> 2465</span> </div><div class="line"><a name="l02466"></a><span class="lineno"> 2466</span>  <span class="keywordflow">return</span> desc;</div><div class="line"><a name="l02467"></a><span class="lineno"> 2467</span> }</div><div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a6c9de81fc65b3c4924cab11907075a17"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">armnn::LstmDescriptor::m_ProjectionEnabled</a></div><div class="ttdeci">bool m_ProjectionEnabled</div><div class="ttdoc">Enable/disable the projection layer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00871">Descriptors.hpp:871</a></div></div> |
| 709 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a531a3907ec13d3772370da88030191a5"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">armnn::LstmDescriptor::m_ClippingThresCell</a></div><div class="ttdeci">float m_ClippingThresCell</div><div class="ttdoc">Clipping threshold value for the cell state. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00863">Descriptors.hpp:863</a></div></div> |
| 710 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ad474e5c51a0b194ef32e812b86c0cbdb"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">armnn::LstmDescriptor::m_CifgEnabled</a></div><div class="ttdeci">bool m_CifgEnabled</div><div class="ttdoc">Enable/disable cifg (coupled input & forget gate). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00867">Descriptors.hpp:867</a></div></div> |
| 711 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a2837b4396f20c956952d1a7286cab5f8"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">armnn::LstmDescriptor::m_PeepholeEnabled</a></div><div class="ttdeci">bool m_PeepholeEnabled</div><div class="ttdoc">Enable/disable peephole. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00869">Descriptors.hpp:869</a></div></div> |
| 712 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a></div><div class="ttdoc">An LstmDescriptor for the LstmLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00837">Descriptors.hpp:837</a></div></div> |
| 713 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ae1b07ed928036004bd257169e5aeeef4"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">armnn::LstmDescriptor::m_ActivationFunc</a></div><div class="ttdeci">uint32_t m_ActivationFunc</div><div class="ttdoc">The activation function to use. 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00861">Descriptors.hpp:861</a></div></div> |
| 714 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a4a8ec49f130084445d44297549254780"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a4a8ec49f130084445d44297549254780">armnn::LstmDescriptor::m_LayerNormEnabled</a></div><div class="ttdeci">bool m_LayerNormEnabled</div><div class="ttdoc">Enable/disable layer normalization. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00873">Descriptors.hpp:873</a></div></div> |
| 715 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a86e88bef0df4df96df752b4b8955a3af"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">armnn::LstmDescriptor::m_ClippingThresProj</a></div><div class="ttdeci">float m_ClippingThresProj</div><div class="ttdoc">Clipping threshold value for the projection. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00865">Descriptors.hpp:865</a></div></div> |
| 716 | </div><!-- fragment --> |
| 717 | </div> |
| 718 | </div> |
| 719 | <a id="a327a399d46f8216c9f4c1eea5f18a542"></a> |
| 720 | <h2 class="memtitle"><span class="permalink"><a href="#a327a399d46f8216c9f4c1eea5f18a542">◆ </a></span>GetLstmInputParams()</h2> |
| 721 | |
| 722 | <div class="memitem"> |
| 723 | <div class="memproto"> |
| 724 | <table class="mlabels"> |
| 725 | <tr> |
| 726 | <td class="mlabels-left"> |
| 727 | <table class="memname"> |
| 728 | <tr> |
| 729 | <td class="memname">static <a class="el" href="structarmnn_1_1_lstm_input_params.html">armnn::LstmInputParams</a> GetLstmInputParams </td> |
| 730 | <td>(</td> |
| 731 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a15397ee26bc4b7d3a459b05e457be428">LstmDescriptorPtr</a> </td> |
| 732 | <td class="paramname"><em>lstmDescriptor</em>, </td> |
| 733 | </tr> |
| 734 | <tr> |
| 735 | <td class="paramkey"></td> |
| 736 | <td></td> |
| 737 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a93460fcf78d1b2dcab72dd8378739145">LstmInputParamsPtr</a> </td> |
| 738 | <td class="paramname"><em>lstmInputParams</em> </td> |
| 739 | </tr> |
| 740 | <tr> |
| 741 | <td></td> |
| 742 | <td>)</td> |
| 743 | <td></td><td></td> |
| 744 | </tr> |
| 745 | </table> |
| 746 | </td> |
| 747 | <td class="mlabels-right"> |
| 748 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 749 | </tr> |
| 750 | </table> |
| 751 | </div><div class="memdoc"> |
| 752 | |
| 753 | <p class="reference">Referenced by <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 754 | |
| 755 | </div> |
| 756 | </div> |
| 757 | <a id="a66c5e4250559faefd7f0fa35ccbdc9eb"></a> |
| 758 | <h2 class="memtitle"><span class="permalink"><a href="#a66c5e4250559faefd7f0fa35ccbdc9eb">◆ </a></span>GetNetworkInputBindingInfo()</h2> |
| 759 | |
| 760 | <div class="memitem"> |
| 761 | <div class="memproto"> |
| 762 | <table class="mlabels"> |
| 763 | <tr> |
| 764 | <td class="mlabels-left"> |
| 765 | <table class="memname"> |
| 766 | <tr> |
| 767 | <td class="memname"><a class="el" href="structarmnn_deserializer_1_1_binding_point_info.html">BindingPointInfo</a> GetNetworkInputBindingInfo </td> |
| 768 | <td>(</td> |
| 769 | <td class="paramtype">unsigned int </td> |
| 770 | <td class="paramname"><em>layerId</em>, </td> |
| 771 | </tr> |
| 772 | <tr> |
| 773 | <td class="paramkey"></td> |
| 774 | <td></td> |
| 775 | <td class="paramtype">const std::string & </td> |
| 776 | <td class="paramname"><em>name</em> </td> |
| 777 | </tr> |
| 778 | <tr> |
| 779 | <td></td> |
| 780 | <td>)</td> |
| 781 | <td></td><td> const</td> |
| 782 | </tr> |
| 783 | </table> |
| 784 | </td> |
| 785 | <td class="mlabels-right"> |
| 786 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 787 | </tr> |
| 788 | </table> |
| 789 | </div><div class="memdoc"> |
| 790 | |
| 791 | <p>Retrieve binding info (layer id and tensor info) for the network input identified by the given layer name. </p> |
| 792 | |
| 793 | <p>Implements <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#a81942c860d8fb0a0e728df3d81063695">IDeserializer</a>.</p> |
| 794 | |
| 795 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00735">735</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 796 | |
| 797 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>.</p> |
| 798 | <div class="fragment"><div class="line"><a name="l00737"></a><span class="lineno"> 737</span> {</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  boost::ignore_unused(layerIndex);</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> inputBinding : m_InputBindings)</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  {</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  <span class="keywordflow">if</span> (inputBinding.first == name)</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  {</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  <span class="keywordflow">return</span> inputBinding.second;</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  }</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  }</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  boost::str(</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  boost::format(<span class="stringliteral">"No input binding found for layer:%1% / %2%"</span>) %</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  name %</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 799 | <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div> |
| 800 | </div><!-- fragment --> |
| 801 | </div> |
| 802 | </div> |
| 803 | <a id="ae9cf8ca62e8da6d21e08dc130f68dce4"></a> |
| 804 | <h2 class="memtitle"><span class="permalink"><a href="#ae9cf8ca62e8da6d21e08dc130f68dce4">◆ </a></span>GetNetworkOutputBindingInfo()</h2> |
| 805 | |
| 806 | <div class="memitem"> |
| 807 | <div class="memproto"> |
| 808 | <table class="mlabels"> |
| 809 | <tr> |
| 810 | <td class="mlabels-left"> |
| 811 | <table class="memname"> |
| 812 | <tr> |
| 813 | <td class="memname"><a class="el" href="structarmnn_deserializer_1_1_binding_point_info.html">BindingPointInfo</a> GetNetworkOutputBindingInfo </td> |
| 814 | <td>(</td> |
| 815 | <td class="paramtype">unsigned int </td> |
| 816 | <td class="paramname"><em>layerId</em>, </td> |
| 817 | </tr> |
| 818 | <tr> |
| 819 | <td class="paramkey"></td> |
| 820 | <td></td> |
| 821 | <td class="paramtype">const std::string & </td> |
| 822 | <td class="paramname"><em>name</em> </td> |
| 823 | </tr> |
| 824 | <tr> |
| 825 | <td></td> |
| 826 | <td>)</td> |
| 827 | <td></td><td> const</td> |
| 828 | </tr> |
| 829 | </table> |
| 830 | </td> |
| 831 | <td class="mlabels-right"> |
| 832 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 833 | </tr> |
| 834 | </table> |
| 835 | </div><div class="memdoc"> |
| 836 | |
| 837 | <p>Retrieve binding info (layer id and tensor info) for the network output identified by the given layer name. </p> |
| 838 | |
| 839 | <p>Implements <a class="el" href="classarmnn_deserializer_1_1_i_deserializer.html#a55f70496b6f2ff261e36a5fceacf240d">IDeserializer</a>.</p> |
| 840 | |
| 841 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00753">753</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 842 | |
| 843 | <p class="reference">References <a class="el" href="namespacearmnn.html#a56297e0f7b215eea46c818cb7528d9eaa1e34af023adeb7d5f484f8eb4b9826b6">armnn::Abs</a>, <a class="el" href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00162">CHECK_GRAPH</a>, <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="namespacearmnn.html#a2d299363c9fc33334c571fa29ca4f58caf5f286e73bda105e538310b3190f75c5">armnn::Equal</a>, <a class="el" href="_deserializer_8cpp_source.html#l00246">Deserializer::GetBaseLayer()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00375">Deserializer::GetBindingLayerInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a9c2cba04b6d7ace4fc2a2436b82a5a63">IConnectableLayer::GetNumInputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#ac2dac3b61c94de52093616be4ab17f8d">IConnectableLayer::GetNumOutputSlots()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="namespacearmnn.html#a2d299363c9fc33334c571fa29ca4f58ca8768a6821cd735aea4f5b0df88c1fc6a">armnn::Greater</a>, <a class="el" href="_descriptors_8hpp_source.html#l00037">ActivationDescriptor::m_A</a>, <a class="el" href="_descriptors_8hpp_source.html#l00058">ArgMinMaxDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00039">ActivationDescriptor::m_B</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00649">InstanceNormalizationDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00438">Convolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00490">DepthwiseConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00680">BatchToSpaceNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l00827">SpaceToDepthDescriptor::m_BlockSize</a>, <a class="el" href="_descriptors_8hpp_source.html#l00682">BatchToSpaceNdDescriptor::m_Crops</a>, <a class="el" href="_descriptors_8hpp_source.html#l00440">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00492">DepthwiseConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00606">L2NormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00625">BatchNormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00653">InstanceNormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00684">BatchToSpaceNdDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00830">SpaceToDepthDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00531">DetectionPostProcessDescriptor::m_DetectionsPerClass</a>, <a class="el" href="_descriptors_8hpp_source.html#l00434">Convolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00486">DepthwiseConvolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00436">Convolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00488">DepthwiseConvolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00604">L2NormalizationDescriptor::m_Eps</a>, <a class="el" href="_descriptors_8hpp_source.html#l00623">BatchNormalizationDescriptor::m_Eps</a>, <a class="el" href="_descriptors_8hpp_source.html#l00651">InstanceNormalizationDescriptor::m_Eps</a>, <a class="el" href="_descriptors_8hpp_source.html#l00035">ActivationDescriptor::m_Function</a>, <a class="el" href="_descriptors_8hpp_source.html#l00056">ArgMinMaxDescriptor::m_Function</a>, <a class="el" href="_descriptors_8hpp_source.html#l00647">InstanceNormalizationDescriptor::m_Gamma</a>, <a class="el" href="_descriptors_8hpp_source.html#l00529">DetectionPostProcessDescriptor::m_MaxClassesPerDetection</a>, <a class="el" href="_descriptors_8hpp_source.html#l00527">DetectionPostProcessDescriptor::m_MaxDetections</a>, <a class="el" href="_descriptors_8hpp_source.html#l00535">DetectionPostProcessDescriptor::m_NmsIouThreshold</a>, <a class="el" href="_descriptors_8hpp_source.html#l00533">DetectionPostProcessDescriptor::m_NmsScoreThreshold</a>, <a class="el" href="_descriptors_8hpp_source.html#l00537">DetectionPostProcessDescriptor::m_NumClasses</a>, <a class="el" href="_descriptors_8hpp_source.html#l00428">Convolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00480">DepthwiseConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00422">Convolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00474">DepthwiseConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00424">Convolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00476">DepthwiseConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00426">Convolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00478">DepthwiseConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00547">DetectionPostProcessDescriptor::m_ScaleH</a>, <a class="el" href="_descriptors_8hpp_source.html#l00545">DetectionPostProcessDescriptor::m_ScaleW</a>, <a class="el" href="_descriptors_8hpp_source.html#l00541">DetectionPostProcessDescriptor::m_ScaleX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00543">DetectionPostProcessDescriptor::m_ScaleY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00430">Convolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00482">DepthwiseConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00432">Convolution2dDescriptor::m_StrideY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00484">DepthwiseConvolution2dDescriptor::m_StrideY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00539">DetectionPostProcessDescriptor::m_UseRegularNms</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00402">armnnDeserializer::ToActivationFunction()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00429">armnnDeserializer::ToArgMinMaxFunction()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00547">armnnDeserializer::ToConstTensor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00390">armnnDeserializer::ToDataLayout()</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00493">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 844 | <div class="fragment"><div class="line"><a name="l00755"></a><span class="lineno"> 755</span> {</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  boost::ignore_unused(layerIndex);</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span> outputBinding : m_OutputBindings)</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  {</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  <span class="keywordflow">if</span> (outputBinding.first == name)</div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  {</div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <span class="keywordflow">return</span> outputBinding.second;</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  }</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  }</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  boost::str(</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  boost::format(<span class="stringliteral">"No output binding found for layer:%1% / %2%"</span>) %</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  name %</div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 845 | <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div> |
| 846 | </div><!-- fragment --> |
| 847 | </div> |
| 848 | </div> |
| 849 | <a id="a920251d49a8f32085d458ba23f776800"></a> |
| 850 | <h2 class="memtitle"><span class="permalink"><a href="#a920251d49a8f32085d458ba23f776800">◆ </a></span>GetNormalizationDescriptor()</h2> |
| 851 | |
| 852 | <div class="memitem"> |
| 853 | <div class="memproto"> |
| 854 | <table class="mlabels"> |
| 855 | <tr> |
| 856 | <td class="mlabels-left"> |
| 857 | <table class="memname"> |
| 858 | <tr> |
| 859 | <td class="memname"><a class="el" href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a> GetNormalizationDescriptor </td> |
| 860 | <td>(</td> |
| 861 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a2a282cf18fcfe848b47e946327ca1048">Deserializer::NormalizationDescriptorPtr</a> </td> |
| 862 | <td class="paramname"><em>normalizationDescriptor</em>, </td> |
| 863 | </tr> |
| 864 | <tr> |
| 865 | <td class="paramkey"></td> |
| 866 | <td></td> |
| 867 | <td class="paramtype">unsigned int </td> |
| 868 | <td class="paramname"><em>layerIndex</em> </td> |
| 869 | </tr> |
| 870 | <tr> |
| 871 | <td></td> |
| 872 | <td>)</td> |
| 873 | <td></td><td></td> |
| 874 | </tr> |
| 875 | </table> |
| 876 | </td> |
| 877 | <td class="mlabels-right"> |
| 878 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 879 | </tr> |
| 880 | </table> |
| 881 | </div><div class="memdoc"> |
| 882 | |
| 883 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l02148">2148</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 884 | |
| 885 | <p class="reference">References <a class="el" href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a810f43f3996922151c39b76143faeecc">armnn::Across</a>, <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9ac65d2e51c610dd3853a3c777aa8bfe9d">armnn::LocalBrightness</a>, <a class="el" href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9aa94d2fcabc6b001015aeddfa19266e6f">armnn::LocalContrast</a>, <a class="el" href="_descriptors_8hpp_source.html#l00581">NormalizationDescriptor::m_Alpha</a>, <a class="el" href="_descriptors_8hpp_source.html#l00895">MeanDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00943">SliceDescriptor::m_Begin</a>, <a class="el" href="_descriptors_8hpp_source.html#l00583">NormalizationDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00587">NormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00585">NormalizationDescriptor::m_K</a>, <a class="el" href="_descriptors_8hpp_source.html#l00897">MeanDescriptor::m_KeepDims</a>, <a class="el" href="_descriptors_8hpp_source.html#l00575">NormalizationDescriptor::m_NormChannelType</a>, <a class="el" href="_descriptors_8hpp_source.html#l00577">NormalizationDescriptor::m_NormMethodType</a>, <a class="el" href="_descriptors_8hpp_source.html#l00579">NormalizationDescriptor::m_NormSize</a>, <a class="el" href="_descriptors_8hpp_source.html#l00946">SliceDescriptor::m_Size</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="namespacearmnn.html#a1cfaa710db2a54673b21d2ea2da757c8a09bb7f6e2118c85a6a55bd4bf2beeca4">armnn::Rsqrt</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00302">ViewsDescriptor::SetViewOriginCoord()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00307">ViewsDescriptor::SetViewSize()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00390">armnnDeserializer::ToDataLayout()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00493">armnnDeserializer::ToTensorInfo()</a>, and <a class="el" href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a37bac6dce4f46277d89bfa3003e2e39b">armnn::Within</a>.</p> |
| 886 | |
| 887 | <p class="reference">Referenced by <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 888 | <div class="fragment"><div class="line"><a name="l02151"></a><span class="lineno"> 2151</span> {</div><div class="line"><a name="l02152"></a><span class="lineno"> 2152</span>  boost::ignore_unused(layerIndex);</div><div class="line"><a name="l02153"></a><span class="lineno"> 2153</span>  <a class="code" href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a> desc;</div><div class="line"><a name="l02154"></a><span class="lineno"> 2154</span> </div><div class="line"><a name="l02155"></a><span class="lineno"> 2155</span>  <span class="keywordflow">switch</span> (normalizationDescriptor->normChannelType())</div><div class="line"><a name="l02156"></a><span class="lineno"> 2156</span>  {</div><div class="line"><a name="l02157"></a><span class="lineno"> 2157</span>  <span class="keywordflow">case</span> NormalizationAlgorithmChannel_Across:</div><div class="line"><a name="l02158"></a><span class="lineno"> 2158</span>  {</div><div class="line"><a name="l02159"></a><span class="lineno"> 2159</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#afe1f0f09d49ad2befc01f8789187b7dd">m_NormChannelType</a> = <a class="code" href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a810f43f3996922151c39b76143faeecc">armnn::NormalizationAlgorithmChannel::Across</a>;</div><div class="line"><a name="l02160"></a><span class="lineno"> 2160</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02161"></a><span class="lineno"> 2161</span>  }</div><div class="line"><a name="l02162"></a><span class="lineno"> 2162</span>  <span class="keywordflow">case</span> NormalizationAlgorithmChannel_Within:</div><div class="line"><a name="l02163"></a><span class="lineno"> 2163</span>  {</div><div class="line"><a name="l02164"></a><span class="lineno"> 2164</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#afe1f0f09d49ad2befc01f8789187b7dd">m_NormChannelType</a> = <a class="code" href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a37bac6dce4f46277d89bfa3003e2e39b">armnn::NormalizationAlgorithmChannel::Within</a>;</div><div class="line"><a name="l02165"></a><span class="lineno"> 2165</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02166"></a><span class="lineno"> 2166</span>  }</div><div class="line"><a name="l02167"></a><span class="lineno"> 2167</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l02168"></a><span class="lineno"> 2168</span>  {</div><div class="line"><a name="l02169"></a><span class="lineno"> 2169</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported normalization channel type"</span>);</div><div class="line"><a name="l02170"></a><span class="lineno"> 2170</span>  }</div><div class="line"><a name="l02171"></a><span class="lineno"> 2171</span>  }</div><div class="line"><a name="l02172"></a><span class="lineno"> 2172</span> </div><div class="line"><a name="l02173"></a><span class="lineno"> 2173</span>  <span class="keywordflow">switch</span> (normalizationDescriptor->normMethodType())</div><div class="line"><a name="l02174"></a><span class="lineno"> 2174</span>  {</div><div class="line"><a name="l02175"></a><span class="lineno"> 2175</span>  <span class="keywordflow">case</span> NormalizationAlgorithmMethod_LocalBrightness:</div><div class="line"><a name="l02176"></a><span class="lineno"> 2176</span>  {</div><div class="line"><a name="l02177"></a><span class="lineno"> 2177</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a05945f080edf694b631960728b87aadb">m_NormMethodType</a> = <a class="code" href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9ac65d2e51c610dd3853a3c777aa8bfe9d">armnn::NormalizationAlgorithmMethod::LocalBrightness</a>;</div><div class="line"><a name="l02178"></a><span class="lineno"> 2178</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02179"></a><span class="lineno"> 2179</span>  }</div><div class="line"><a name="l02180"></a><span class="lineno"> 2180</span>  <span class="keywordflow">case</span> NormalizationAlgorithmMethod_LocalContrast:</div><div class="line"><a name="l02181"></a><span class="lineno"> 2181</span>  {</div><div class="line"><a name="l02182"></a><span class="lineno"> 2182</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a05945f080edf694b631960728b87aadb">m_NormMethodType</a> = <a class="code" href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9aa94d2fcabc6b001015aeddfa19266e6f">armnn::NormalizationAlgorithmMethod::LocalContrast</a>;</div><div class="line"><a name="l02183"></a><span class="lineno"> 2183</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02184"></a><span class="lineno"> 2184</span>  }</div><div class="line"><a name="l02185"></a><span class="lineno"> 2185</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l02186"></a><span class="lineno"> 2186</span>  {</div><div class="line"><a name="l02187"></a><span class="lineno"> 2187</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported normalization method type"</span>);</div><div class="line"><a name="l02188"></a><span class="lineno"> 2188</span>  }</div><div class="line"><a name="l02189"></a><span class="lineno"> 2189</span>  }</div><div class="line"><a name="l02190"></a><span class="lineno"> 2190</span> </div><div class="line"><a name="l02191"></a><span class="lineno"> 2191</span>  <span class="keywordflow">switch</span> (normalizationDescriptor->dataLayout())</div><div class="line"><a name="l02192"></a><span class="lineno"> 2192</span>  {</div><div class="line"><a name="l02193"></a><span class="lineno"> 2193</span>  <span class="keywordflow">case</span> DataLayout_NCHW:</div><div class="line"><a name="l02194"></a><span class="lineno"> 2194</span>  {</div><div class="line"><a name="l02195"></a><span class="lineno"> 2195</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l02196"></a><span class="lineno"> 2196</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02197"></a><span class="lineno"> 2197</span>  }</div><div class="line"><a name="l02198"></a><span class="lineno"> 2198</span>  <span class="keywordflow">case</span> DataLayout_NHWC:</div><div class="line"><a name="l02199"></a><span class="lineno"> 2199</span>  {</div><div class="line"><a name="l02200"></a><span class="lineno"> 2200</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l02201"></a><span class="lineno"> 2201</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l02202"></a><span class="lineno"> 2202</span>  }</div><div class="line"><a name="l02203"></a><span class="lineno"> 2203</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l02204"></a><span class="lineno"> 2204</span>  {</div><div class="line"><a name="l02205"></a><span class="lineno"> 2205</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported data layout"</span>);</div><div class="line"><a name="l02206"></a><span class="lineno"> 2206</span>  }</div><div class="line"><a name="l02207"></a><span class="lineno"> 2207</span>  }</div><div class="line"><a name="l02208"></a><span class="lineno"> 2208</span> </div><div class="line"><a name="l02209"></a><span class="lineno"> 2209</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a174279be57d7596eeb04c6b7f7510f99">m_Alpha</a> = normalizationDescriptor->alpha();</div><div class="line"><a name="l02210"></a><span class="lineno"> 2210</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a> = normalizationDescriptor->beta();</div><div class="line"><a name="l02211"></a><span class="lineno"> 2211</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#a8526ea7cf860d8e7f8340e9f9354f9f0">m_K</a> = normalizationDescriptor->k();</div><div class="line"><a name="l02212"></a><span class="lineno"> 2212</span>  desc.<a class="code" href="structarmnn_1_1_normalization_descriptor.html#aa70c05f1aad12fbd9d9ec43ea4557b03">m_NormSize</a> = normalizationDescriptor->normSize();</div><div class="line"><a name="l02213"></a><span class="lineno"> 2213</span> </div><div class="line"><a name="l02214"></a><span class="lineno"> 2214</span>  <span class="keywordflow">return</span> desc;</div><div class="line"><a name="l02215"></a><span class="lineno"> 2215</span> }</div><div class="ttc" id="structarmnn_1_1_normalization_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a></div><div class="ttdoc">A NormalizationDescriptor for the NormalizationLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00551">Descriptors.hpp:551</a></div></div> |
| 889 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_a174279be57d7596eeb04c6b7f7510f99"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#a174279be57d7596eeb04c6b7f7510f99">armnn::NormalizationDescriptor::m_Alpha</a></div><div class="ttdeci">float m_Alpha</div><div class="ttdoc">Alpha value for the normalization equation. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00581">Descriptors.hpp:581</a></div></div> |
| 890 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 891 | <div class="ttc" id="namespacearmnn_html_abe18a5033f2ab9c0de82c676b48f5437a37bac6dce4f46277d89bfa3003e2e39b"><div class="ttname"><a href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a37bac6dce4f46277d89bfa3003e2e39b">armnn::NormalizationAlgorithmChannel::Within</a></div></div> |
| 892 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::NormalizationDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00587">Descriptors.hpp:587</a></div></div> |
| 893 | <div class="ttc" id="namespacearmnn_html_ad605d1661fa0d8c7fea651d82fbe11c9ac65d2e51c610dd3853a3c777aa8bfe9d"><div class="ttname"><a href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9ac65d2e51c610dd3853a3c777aa8bfe9d">armnn::NormalizationAlgorithmMethod::LocalBrightness</a></div><div class="ttdoc">Krichevsky 2012: Local Brightness Normalization. </div></div> |
| 894 | <div class="ttc" id="namespacearmnn_html_ad605d1661fa0d8c7fea651d82fbe11c9aa94d2fcabc6b001015aeddfa19266e6f"><div class="ttname"><a href="namespacearmnn.html#ad605d1661fa0d8c7fea651d82fbe11c9aa94d2fcabc6b001015aeddfa19266e6f">armnn::NormalizationAlgorithmMethod::LocalContrast</a></div><div class="ttdoc">Jarret 2009: Local Contrast Normalization. </div></div> |
| 895 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_aa70c05f1aad12fbd9d9ec43ea4557b03"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#aa70c05f1aad12fbd9d9ec43ea4557b03">armnn::NormalizationDescriptor::m_NormSize</a></div><div class="ttdeci">uint32_t m_NormSize</div><div class="ttdoc">Depth radius value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00579">Descriptors.hpp:579</a></div></div> |
| 896 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::NormalizationDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Beta value for the normalization equation. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00583">Descriptors.hpp:583</a></div></div> |
| 897 | <div class="ttc" id="namespacearmnn_html_abe18a5033f2ab9c0de82c676b48f5437a810f43f3996922151c39b76143faeecc"><div class="ttname"><a href="namespacearmnn.html#abe18a5033f2ab9c0de82c676b48f5437a810f43f3996922151c39b76143faeecc">armnn::NormalizationAlgorithmChannel::Across</a></div></div> |
| 898 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_a05945f080edf694b631960728b87aadb"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#a05945f080edf694b631960728b87aadb">armnn::NormalizationDescriptor::m_NormMethodType</a></div><div class="ttdeci">NormalizationAlgorithmMethod m_NormMethodType</div><div class="ttdoc">Normalization method algorithm to use (LocalBrightness, LocalContrast). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00577">Descriptors.hpp:577</a></div></div> |
| 899 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_a8526ea7cf860d8e7f8340e9f9354f9f0"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#a8526ea7cf860d8e7f8340e9f9354f9f0">armnn::NormalizationDescriptor::m_K</a></div><div class="ttdeci">float m_K</div><div class="ttdoc">Kappa value used for the across channel normalization equation. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00585">Descriptors.hpp:585</a></div></div> |
| 900 | <div class="ttc" id="structarmnn_1_1_normalization_descriptor_html_afe1f0f09d49ad2befc01f8789187b7dd"><div class="ttname"><a href="structarmnn_1_1_normalization_descriptor.html#afe1f0f09d49ad2befc01f8789187b7dd">armnn::NormalizationDescriptor::m_NormChannelType</a></div><div class="ttdeci">NormalizationAlgorithmChannel m_NormChannelType</div><div class="ttdoc">Normalization channel algorithm to use (Across, Within). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00575">Descriptors.hpp:575</a></div></div> |
| 901 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 902 | </div><!-- fragment --> |
| 903 | </div> |
| 904 | </div> |
| 905 | <a id="a0c9267a47f5d254898c67bc0cb2535b9"></a> |
| 906 | <h2 class="memtitle"><span class="permalink"><a href="#a0c9267a47f5d254898c67bc0cb2535b9">◆ </a></span>GetOutputs()</h2> |
| 907 | |
| 908 | <div class="memitem"> |
| 909 | <div class="memproto"> |
| 910 | <table class="mlabels"> |
| 911 | <tr> |
| 912 | <td class="mlabels-left"> |
| 913 | <table class="memname"> |
| 914 | <tr> |
| 915 | <td class="memname"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">Deserializer::TensorRawPtrVector</a> GetOutputs </td> |
| 916 | <td>(</td> |
| 917 | <td class="paramtype">const <a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">GraphPtr</a> & </td> |
| 918 | <td class="paramname"><em>graph</em>, </td> |
| 919 | </tr> |
| 920 | <tr> |
| 921 | <td class="paramkey"></td> |
| 922 | <td></td> |
| 923 | <td class="paramtype">unsigned int </td> |
| 924 | <td class="paramname"><em>layerIndex</em> </td> |
| 925 | </tr> |
| 926 | <tr> |
| 927 | <td></td> |
| 928 | <td>)</td> |
| 929 | <td></td><td></td> |
| 930 | </tr> |
| 931 | </table> |
| 932 | </td> |
| 933 | <td class="mlabels-right"> |
| 934 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 935 | </tr> |
| 936 | </table> |
| 937 | </div><div class="memdoc"> |
| 938 | |
| 939 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00608">608</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 940 | |
| 941 | <p class="reference">References <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00246">Deserializer::GetBaseLayer()</a>.</p> |
| 942 | |
| 943 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l02454">Deserializer::GetLstmDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00753">Deserializer::GetNetworkOutputBindingInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l02148">Deserializer::GetNormalizationDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01543">armnnDeserializer::GetOriginsDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01797">Deserializer::GetPoolingDescriptor()</a>, <a class="el" href="_deserializer_8cpp_source.html#l01927">Deserializer::OutputShapeOfReshape()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 944 | <div class="fragment"><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> {</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  <a class="code" href="_deserializer_8cpp.html#aa6798881c467e8e1a1906303f6d9e26d">CHECK_LAYERS</a>(graphPtr, 0, layerIndex);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <span class="keyword">auto</span> layer = <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">GetBaseLayer</a>(graphPtr, layerIndex);</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <span class="keyword">const</span> <span class="keyword">auto</span>& numOutputs = layer->outputSlots()->size();</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span> </div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <a class="code" href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">TensorRawPtrVector</a> result(numOutputs);</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> </div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<numOutputs; ++i)</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  {</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  result[i] = layer->outputSlots()->Get(i)->tensorInfo();</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  }</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="keywordflow">return</span> result;</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span> }</div><div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_abd8bee7fb9b86485a60bc7ee05114270"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#abd8bee7fb9b86485a60bc7ee05114270">armnnDeserializer::Deserializer::TensorRawPtrVector</a></div><div class="ttdeci">std::vector< TensorRawPtr > TensorRawPtrVector</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8hpp_source.html#l00028">Deserializer.hpp:28</a></div></div> |
| 945 | <div class="ttc" id="_deserializer_8cpp_html_aa6798881c467e8e1a1906303f6d9e26d"><div class="ttname"><a href="_deserializer_8cpp.html#aa6798881c467e8e1a1906303f6d9e26d">CHECK_LAYERS</a></div><div class="ttdeci">#define CHECK_LAYERS(GRAPH, LAYERS_INDEX, LAYER_INDEX)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00159">Deserializer.cpp:159</a></div></div> |
| 946 | <div class="ttc" id="classarmnn_deserializer_1_1_deserializer_html_a6f332fc8fc6cf6488f8d8e374a4264fc"><div class="ttname"><a href="classarmnn_deserializer_1_1_deserializer.html#a6f332fc8fc6cf6488f8d8e374a4264fc">armnnDeserializer::Deserializer::GetBaseLayer</a></div><div class="ttdeci">static LayerBaseRawPtr GetBaseLayer(const GraphPtr &graphPtr, unsigned int layerIndex)</div><div class="ttdef"><b>Definition:</b> <a href="_deserializer_8cpp_source.html#l00246">Deserializer.cpp:246</a></div></div> |
| 947 | </div><!-- fragment --> |
| 948 | </div> |
| 949 | </div> |
| 950 | <a id="a271f00048f7e48392794c2eee17c1e2c"></a> |
| 951 | <h2 class="memtitle"><span class="permalink"><a href="#a271f00048f7e48392794c2eee17c1e2c">◆ </a></span>GetPoolingDescriptor()</h2> |
| 952 | |
| 953 | <div class="memitem"> |
| 954 | <div class="memproto"> |
| 955 | <table class="mlabels"> |
| 956 | <tr> |
| 957 | <td class="mlabels-left"> |
| 958 | <table class="memname"> |
| 959 | <tr> |
| 960 | <td class="memname"><a class="el" href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a> GetPoolingDescriptor </td> |
| 961 | <td>(</td> |
| 962 | <td class="paramtype"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a0dc66e036f16781886a1ce530e11c2d8">Deserializer::PoolingDescriptor</a> </td> |
| 963 | <td class="paramname"><em>pooling2dDesc</em>, </td> |
| 964 | </tr> |
| 965 | <tr> |
| 966 | <td class="paramkey"></td> |
| 967 | <td></td> |
| 968 | <td class="paramtype">unsigned int </td> |
| 969 | <td class="paramname"><em>layerIndex</em> </td> |
| 970 | </tr> |
| 971 | <tr> |
| 972 | <td></td> |
| 973 | <td>)</td> |
| 974 | <td></td><td></td> |
| 975 | </tr> |
| 976 | </table> |
| 977 | </td> |
| 978 | <td class="mlabels-right"> |
| 979 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 980 | </tr> |
| 981 | </table> |
| 982 | </div><div class="memdoc"> |
| 983 | |
| 984 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l01797">1797</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 985 | |
| 986 | <p class="reference">References <a class="el" href="namespacearmnn.html#a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021">armnn::Average</a>, <a class="el" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754ea3237fbc8204064c106cb9080088a17cb">armnn::Ceiling</a>, <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6">armnn::Exclude</a>, <a class="el" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">armnn::Floor</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2faad301514192636ad34210adce598a45a">armnn::IgnoreValue</a>, <a class="el" href="_descriptors_8hpp_source.html#l00369">Pooling2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00365">Pooling2dDescriptor::m_OutputShapeRounding</a>, <a class="el" href="_descriptors_8hpp_source.html#l00355">Pooling2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00367">Pooling2dDescriptor::m_PaddingMethod</a>, <a class="el" href="_descriptors_8hpp_source.html#l00349">Pooling2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00351">Pooling2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00353">Pooling2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00359">Pooling2dDescriptor::m_PoolHeight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00347">Pooling2dDescriptor::m_PoolType</a>, <a class="el" href="_descriptors_8hpp_source.html#l00357">Pooling2dDescriptor::m_PoolWidth</a>, <a class="el" href="_descriptors_8hpp_source.html#l00361">Pooling2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00363">Pooling2dDescriptor::m_StrideY</a>, <a class="el" href="namespacearmnn.html#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::Max</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::NCHW</a>, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00493">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 987 | |
| 988 | <p class="reference">Referenced by <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 989 | <div class="fragment"><div class="line"><a name="l01799"></a><span class="lineno"> 1799</span> {</div><div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>  boost::ignore_unused(layerIndex);</div><div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>  <a class="code" href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a> desc;</div><div class="line"><a name="l01802"></a><span class="lineno"> 1802</span> </div><div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>  <span class="keywordflow">switch</span> (pooling2dDesc->poolType())</div><div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>  {</div><div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>  <span class="keywordflow">case</span> PoolingAlgorithm_Average:</div><div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>  {</div><div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">m_PoolType</a> = <a class="code" href="namespacearmnn.html#a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021">armnn::PoolingAlgorithm::Average</a>;</div><div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>  }</div><div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>  <span class="keywordflow">case</span> PoolingAlgorithm_Max:</div><div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>  {</div><div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">m_PoolType</a> = <a class="code" href="namespacearmnn.html#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::PoolingAlgorithm::Max</a>;</div><div class="line"><a name="l01813"></a><span class="lineno"> 1813</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01814"></a><span class="lineno"> 1814</span>  }</div><div class="line"><a name="l01815"></a><span class="lineno"> 1815</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l01816"></a><span class="lineno"> 1816</span>  {</div><div class="line"><a name="l01817"></a><span class="lineno"> 1817</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported pooling algorithm"</span>);</div><div class="line"><a name="l01818"></a><span class="lineno"> 1818</span>  }</div><div class="line"><a name="l01819"></a><span class="lineno"> 1819</span>  }</div><div class="line"><a name="l01820"></a><span class="lineno"> 1820</span> </div><div class="line"><a name="l01821"></a><span class="lineno"> 1821</span>  <span class="keywordflow">switch</span> (pooling2dDesc->outputShapeRounding())</div><div class="line"><a name="l01822"></a><span class="lineno"> 1822</span>  {</div><div class="line"><a name="l01823"></a><span class="lineno"> 1823</span>  <span class="keywordflow">case</span> OutputShapeRounding_Floor:</div><div class="line"><a name="l01824"></a><span class="lineno"> 1824</span>  {</div><div class="line"><a name="l01825"></a><span class="lineno"> 1825</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#affb5b68b3eba3ed45a06c7cde7781962">m_OutputShapeRounding</a> = <a class="code" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">armnn::OutputShapeRounding::Floor</a>;</div><div class="line"><a name="l01826"></a><span class="lineno"> 1826</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01827"></a><span class="lineno"> 1827</span>  }</div><div class="line"><a name="l01828"></a><span class="lineno"> 1828</span>  <span class="keywordflow">case</span> OutputShapeRounding_Ceiling:</div><div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>  {</div><div class="line"><a name="l01830"></a><span class="lineno"> 1830</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#affb5b68b3eba3ed45a06c7cde7781962">m_OutputShapeRounding</a> = <a class="code" href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754ea3237fbc8204064c106cb9080088a17cb">armnn::OutputShapeRounding::Ceiling</a>;</div><div class="line"><a name="l01831"></a><span class="lineno"> 1831</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01832"></a><span class="lineno"> 1832</span>  }</div><div class="line"><a name="l01833"></a><span class="lineno"> 1833</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l01834"></a><span class="lineno"> 1834</span>  {</div><div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported output shape rounding"</span>);</div><div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>  }</div><div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>  }</div><div class="line"><a name="l01838"></a><span class="lineno"> 1838</span> </div><div class="line"><a name="l01839"></a><span class="lineno"> 1839</span>  <span class="keywordflow">switch</span> (pooling2dDesc->paddingMethod())</div><div class="line"><a name="l01840"></a><span class="lineno"> 1840</span>  {</div><div class="line"><a name="l01841"></a><span class="lineno"> 1841</span>  <span class="keywordflow">case</span> PaddingMethod_Exclude:</div><div class="line"><a name="l01842"></a><span class="lineno"> 1842</span>  {</div><div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">m_PaddingMethod</a> = <a class="code" href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6">armnn::PaddingMethod::Exclude</a>;</div><div class="line"><a name="l01844"></a><span class="lineno"> 1844</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01845"></a><span class="lineno"> 1845</span>  }</div><div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>  <span class="keywordflow">case</span> PaddingMethod_IgnoreValue:</div><div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>  {</div><div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">m_PaddingMethod</a> = <a class="code" href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2faad301514192636ad34210adce598a45a">armnn::PaddingMethod::IgnoreValue</a>;</div><div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>  }</div><div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>  {</div><div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported padding method"</span>);</div><div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>  }</div><div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>  }</div><div class="line"><a name="l01856"></a><span class="lineno"> 1856</span> </div><div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>  <span class="keywordflow">switch</span> (pooling2dDesc->dataLayout())</div><div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>  {</div><div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>  <span class="keywordflow">case</span> DataLayout_NCHW:</div><div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>  {</div><div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a>;</div><div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>  }</div><div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>  <span class="keywordflow">case</span> DataLayout_NHWC:</div><div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>  {</div><div class="line"><a name="l01866"></a><span class="lineno"> 1866</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> = <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a>;</div><div class="line"><a name="l01867"></a><span class="lineno"> 1867</span>  <span class="keywordflow">break</span>;</div><div class="line"><a name="l01868"></a><span class="lineno"> 1868</span>  }</div><div class="line"><a name="l01869"></a><span class="lineno"> 1869</span>  <span class="keywordflow">default</span>:</div><div class="line"><a name="l01870"></a><span class="lineno"> 1870</span>  {</div><div class="line"><a name="l01871"></a><span class="lineno"> 1871</span>  BOOST_ASSERT_MSG(<span class="keyword">false</span>, <span class="stringliteral">"Unsupported data layout"</span>);</div><div class="line"><a name="l01872"></a><span class="lineno"> 1872</span>  }</div><div class="line"><a name="l01873"></a><span class="lineno"> 1873</span>  }</div><div class="line"><a name="l01874"></a><span class="lineno"> 1874</span> </div><div class="line"><a name="l01875"></a><span class="lineno"> 1875</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a> = pooling2dDesc->padRight();</div><div class="line"><a name="l01876"></a><span class="lineno"> 1876</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> = pooling2dDesc->padLeft();</div><div class="line"><a name="l01877"></a><span class="lineno"> 1877</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a> = pooling2dDesc->padBottom();</div><div class="line"><a name="l01878"></a><span class="lineno"> 1878</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> = pooling2dDesc->padTop();</div><div class="line"><a name="l01879"></a><span class="lineno"> 1879</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a> = pooling2dDesc->strideX();</div><div class="line"><a name="l01880"></a><span class="lineno"> 1880</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a> = pooling2dDesc->strideY();</div><div class="line"><a name="l01881"></a><span class="lineno"> 1881</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">m_PoolWidth</a> = pooling2dDesc->poolWidth();</div><div class="line"><a name="l01882"></a><span class="lineno"> 1882</span>  desc.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">m_PoolHeight</a> = pooling2dDesc->poolHeight();</div><div class="line"><a name="l01883"></a><span class="lineno"> 1883</span> </div><div class="line"><a name="l01884"></a><span class="lineno"> 1884</span>  <span class="keywordflow">return</span> desc;</div><div class="line"><a name="l01885"></a><span class="lineno"> 1885</span> }</div><div class="ttc" id="namespacearmnn_html_adf2e5515c4c36a3e7e46bb8b83c6754ea3237fbc8204064c106cb9080088a17cb"><div class="ttname"><a href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754ea3237fbc8204064c106cb9080088a17cb">armnn::OutputShapeRounding::Ceiling</a></div></div> |
| 990 | <div class="ttc" id="namespacearmnn_html_ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233"><div class="ttname"><a href="namespacearmnn.html#ae7e8cbf71db6a490789ca6dcaa8deeaea6a061313d22e51e0f25b7cd4dc065233">armnn::ArgMinMaxFunction::Max</a></div></div> |
| 991 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">armnn::DataLayout::NCHW</a></div></div> |
| 992 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a5699e8606c37d18c03910b242cd1b010"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">armnn::Pooling2dDescriptor::m_PoolHeight</a></div><div class="ttdeci">uint32_t m_PoolHeight</div><div class="ttdoc">Pooling height value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00359">Descriptors.hpp:359</a></div></div> |
| 993 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">armnn::Pooling2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00353">Descriptors.hpp:353</a></div></div> |
| 994 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">armnn::Pooling2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00351">Descriptors.hpp:351</a></div></div> |
| 995 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6d8fb685cc1ff224f25aa127fcf62c86"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">armnn::Pooling2dDescriptor::m_PoolWidth</a></div><div class="ttdeci">uint32_t m_PoolWidth</div><div class="ttdoc">Pooling width value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00357">Descriptors.hpp:357</a></div></div> |
| 996 | <div class="ttc" id="namespacearmnn_html_a3888429b6ebc79f9a7df549e5e4d9a2faad301514192636ad34210adce598a45a"><div class="ttname"><a href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2faad301514192636ad34210adce598a45a">armnn::PaddingMethod::IgnoreValue</a></div><div class="ttdoc">The padding fields count, but are ignored. </div></div> |
| 997 | <div class="ttc" id="namespacearmnn_html_a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6"><div class="ttname"><a href="namespacearmnn.html#a3888429b6ebc79f9a7df549e5e4d9a2fa843f2812f595e7ec7c5036e89fde02d6">armnn::PaddingMethod::Exclude</a></div><div class="ttdoc">The padding fields don&#39;t count and are ignored. </div></div> |
| 998 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::Pooling2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00349">Descriptors.hpp:349</a></div></div> |
| 999 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a8c29d6ea9b4186d69aad5961c910939c"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">armnn::Pooling2dDescriptor::m_PaddingMethod</a></div><div class="ttdeci">PaddingMethod m_PaddingMethod</div><div class="ttdoc">The padding method to be used. (Exclude, IgnoreValue). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00367">Descriptors.hpp:367</a></div></div> |
| 1000 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_affb5b68b3eba3ed45a06c7cde7781962"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#affb5b68b3eba3ed45a06c7cde7781962">armnn::Pooling2dDescriptor::m_OutputShapeRounding</a></div><div class="ttdeci">OutputShapeRounding m_OutputShapeRounding</div><div class="ttdoc">The rounding method for the output shape. (Floor, Ceiling). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00365">Descriptors.hpp:365</a></div></div> |
| 1001 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Pooling2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00363">Descriptors.hpp:363</a></div></div> |
| 1002 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a0031997bf43bd2747656c31e4977793a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">armnn::Pooling2dDescriptor::m_PoolType</a></div><div class="ttdeci">PoolingAlgorithm m_PoolType</div><div class="ttdoc">The pooling algorithm to use (Max. Average, L2). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00347">Descriptors.hpp:347</a></div></div> |
| 1003 | <div class="ttc" id="namespacearmnn_html_adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3"><div class="ttname"><a href="namespacearmnn.html#adf2e5515c4c36a3e7e46bb8b83c6754eaf3f6d0343d56ce88ce7958170ed05cb3">armnn::OutputShapeRounding::Floor</a></div></div> |
| 1004 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a></div><div class="ttdoc">A Pooling2dDescriptor for the Pooling2dLayer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00313">Descriptors.hpp:313</a></div></div> |
| 1005 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Pooling2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00369">Descriptors.hpp:369</a></div></div> |
| 1006 | <div class="ttc" id="namespacearmnn_html_a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021"><div class="ttname"><a href="namespacearmnn.html#a961bbfe1db71a848eff5a1f0ab775718ab1897515d548a960afe49ecf66a29021">armnn::PoolingAlgorithm::Average</a></div></div> |
| 1007 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">armnn::Pooling2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00355">Descriptors.hpp:355</a></div></div> |
| 1008 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::Pooling2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00361">Descriptors.hpp:361</a></div></div> |
| 1009 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 1010 | </div><!-- fragment --> |
| 1011 | </div> |
| 1012 | </div> |
| 1013 | <a id="a0ba4effa5ee7ef715b1f452365c41f97"></a> |
| 1014 | <h2 class="memtitle"><span class="permalink"><a href="#a0ba4effa5ee7ef715b1f452365c41f97">◆ </a></span>LoadGraphFromBinary()</h2> |
| 1015 | |
| 1016 | <div class="memitem"> |
| 1017 | <div class="memproto"> |
| 1018 | <table class="mlabels"> |
| 1019 | <tr> |
| 1020 | <td class="mlabels-left"> |
| 1021 | <table class="memname"> |
| 1022 | <tr> |
| 1023 | <td class="memname"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html#a38c1f8ba8e51364802669c968cf98ff5">Deserializer::GraphPtr</a> LoadGraphFromBinary </td> |
| 1024 | <td>(</td> |
| 1025 | <td class="paramtype">const uint8_t * </td> |
| 1026 | <td class="paramname"><em>binaryContent</em>, </td> |
| 1027 | </tr> |
| 1028 | <tr> |
| 1029 | <td class="paramkey"></td> |
| 1030 | <td></td> |
| 1031 | <td class="paramtype">size_t </td> |
| 1032 | <td class="paramname"><em>len</em> </td> |
| 1033 | </tr> |
| 1034 | <tr> |
| 1035 | <td></td> |
| 1036 | <td>)</td> |
| 1037 | <td></td><td></td> |
| 1038 | </tr> |
| 1039 | </table> |
| 1040 | </td> |
| 1041 | <td class="mlabels-right"> |
| 1042 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1043 | </tr> |
| 1044 | </table> |
| 1045 | </div><div class="memdoc"> |
| 1046 | |
| 1047 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l00675">675</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 1048 | |
| 1049 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, and <a class="el" href="classarmnn_1_1_i_output_slot.html#ac1835f8756a9f03c02fcf9664e3a0fce">IOutputSlot::Connect()</a>.</p> |
| 1050 | |
| 1051 | <p class="reference">Referenced by <a class="el" href="_deserializer_8cpp_source.html#l00660">Deserializer::CreateNetworkFromBinary()</a>, and <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 1052 | <div class="fragment"><div class="line"><a name="l00676"></a><span class="lineno"> 676</span> {</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="keywordflow">if</span> (binaryContent == <span class="keyword">nullptr</span>)</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  {</div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_invalid_argument_exception.html">InvalidArgumentException</a>(boost::str(boost::format(<span class="stringliteral">"Invalid (null) binary content %1%"</span>) %</div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  }</div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  flatbuffers::Verifier verifier(binaryContent, len);</div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <span class="keywordflow">if</span> (verifier.VerifyBuffer<SerializedGraph>() == <span class="keyword">false</span>)</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  {</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(</div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  boost::str(boost::format(<span class="stringliteral">"Buffer doesn't conform to the expected Armnn "</span></div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="stringliteral">"flatbuffers format. size:%1% %2%"</span>) %</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  len %</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  }</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <span class="keywordflow">return</span> GetSerializedGraph(binaryContent);</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span> }</div><div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 1053 | <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div> |
| 1054 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_html"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.html">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00080">Exceptions.hpp:80</a></div></div> |
| 1055 | </div><!-- fragment --> |
| 1056 | </div> |
| 1057 | </div> |
| 1058 | <a id="a8752c2b994619ae67201a297c2c76be2"></a> |
| 1059 | <h2 class="memtitle"><span class="permalink"><a href="#a8752c2b994619ae67201a297c2c76be2">◆ </a></span>OutputShapeOfReshape()</h2> |
| 1060 | |
| 1061 | <div class="memitem"> |
| 1062 | <div class="memproto"> |
| 1063 | <table class="mlabels"> |
| 1064 | <tr> |
| 1065 | <td class="mlabels-left"> |
| 1066 | <table class="memname"> |
| 1067 | <tr> |
| 1068 | <td class="memname"><a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> OutputShapeOfReshape </td> |
| 1069 | <td>(</td> |
| 1070 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> & </td> |
| 1071 | <td class="paramname"><em>inputTensorInfo</em>, </td> |
| 1072 | </tr> |
| 1073 | <tr> |
| 1074 | <td class="paramkey"></td> |
| 1075 | <td></td> |
| 1076 | <td class="paramtype">const std::vector< uint32_t > & </td> |
| 1077 | <td class="paramname"><em>targetDimsIn</em> </td> |
| 1078 | </tr> |
| 1079 | <tr> |
| 1080 | <td></td> |
| 1081 | <td>)</td> |
| 1082 | <td></td><td></td> |
| 1083 | </tr> |
| 1084 | </table> |
| 1085 | </td> |
| 1086 | <td class="mlabels-right"> |
| 1087 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 1088 | </tr> |
| 1089 | </table> |
| 1090 | </div><div class="memdoc"> |
| 1091 | |
| 1092 | <p class="definition">Definition at line <a class="el" href="_deserializer_8cpp_source.html#l01927">1927</a> of file <a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a>.</p> |
| 1093 | |
| 1094 | <p class="reference">References <a class="el" href="namespacearmnn.html#a9a2af2f8c4af4f9efa8e79417d505ac4aaf17c98bbd83c27d6426d2ff3fa81d7f">armnn::Bilinear</a>, <a class="el" href="_deserializer_8cpp_source.html#l00159">CHECK_LAYERS</a>, <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_verification_helpers_8hpp_source.html#l00032">CHECK_VALID_SIZE</a>, <a class="el" href="_deserializer_8cpp_source.html#l00166">armnnDeserializer::CheckShape()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00590">Deserializer::GetInputs()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00368">Deserializer::GetLayerName()</a>, <a class="el" href="_tensor_8hpp_source.html#l00093">TensorInfo::GetNumElements()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00608">Deserializer::GetOutputs()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00801">SpaceToBatchNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l00827">SpaceToDepthDescriptor::m_BlockSize</a>, <a class="el" href="_descriptors_8hpp_source.html#l00751">ResizeDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00806">SpaceToBatchNdDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00830">SpaceToDepthDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00749">ResizeDescriptor::m_Method</a>, <a class="el" href="_descriptors_8hpp_source.html#l00804">SpaceToBatchNdDescriptor::m_PadList</a>, <a class="el" href="_descriptors_8hpp_source.html#l00746">ResizeDescriptor::m_TargetHeight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00774">ReshapeDescriptor::m_TargetShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l00744">ResizeDescriptor::m_TargetWidth</a>, <a class="el" href="_tensor_8hpp_source.html#l00090">TensorInfo::SetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a5ee4a6c9a2481245487b1b1a70d20fd0">IOutputSlot::SetTensorInfo()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00390">armnnDeserializer::ToDataLayout()</a>, <a class="el" href="_deserializer_8cpp_source.html#l00480">armnnDeserializer::ToResizeMethod()</a>, and <a class="el" href="_deserializer_8cpp_source.html#l00493">armnnDeserializer::ToTensorInfo()</a>.</p> |
| 1095 | |
| 1096 | <p class="reference">Referenced by <a class="el" href="_deserializer_8hpp_source.html#l00048">Deserializer::~Deserializer()</a>.</p> |
| 1097 | <div class="fragment"><div class="line"><a name="l01929"></a><span class="lineno"> 1929</span> {</div><div class="line"><a name="l01930"></a><span class="lineno"> 1930</span>  std::vector<unsigned int> outputDims(targetDimsIn.begin(), targetDimsIn.end());</div><div class="line"><a name="l01931"></a><span class="lineno"> 1931</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="l01932"></a><span class="lineno"> 1932</span> </div><div class="line"><a name="l01933"></a><span class="lineno"> 1933</span>  <span class="keywordflow">if</span> (stretchDim != targetDimsIn.end())</div><div class="line"><a name="l01934"></a><span class="lineno"> 1934</span>  {</div><div class="line"><a name="l01935"></a><span class="lineno"> 1935</span>  <span class="keywordflow">if</span> (std::find(std::next(stretchDim), targetDimsIn.end(), -1) != targetDimsIn.end())</div><div class="line"><a name="l01936"></a><span class="lineno"> 1936</span>  {</div><div class="line"><a name="l01937"></a><span class="lineno"> 1937</span>  <span class="keywordflow">throw</span> <a class="code" href="classarmnn_1_1_parse_exception.html">ParseException</a>(boost::str(</div><div class="line"><a name="l01938"></a><span class="lineno"> 1938</span>  boost::format(<span class="stringliteral">"At most one component of shape can be -1 %1%"</span>) % <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>().AsString()));</div><div class="line"><a name="l01939"></a><span class="lineno"> 1939</span>  }</div><div class="line"><a name="l01940"></a><span class="lineno"> 1940</span> </div><div class="line"><a name="l01941"></a><span class="lineno"> 1941</span>  <span class="keyword">auto</span> targetNumElements =</div><div class="line"><a name="l01942"></a><span class="lineno"> 1942</span>  boost::numeric_cast<<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>>(</div><div class="line"><a name="l01943"></a><span class="lineno"> 1943</span>  std::accumulate(targetDimsIn.begin(), targetDimsIn.end(), -1, std::multiplies<int32_t>()));</div><div class="line"><a name="l01944"></a><span class="lineno"> 1944</span> </div><div class="line"><a name="l01945"></a><span class="lineno"> 1945</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="l01946"></a><span class="lineno"> 1946</span>  outputDims[stretchIndex] = inputTensorInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">GetNumElements</a>() / targetNumElements;</div><div class="line"><a name="l01947"></a><span class="lineno"> 1947</span>  }</div><div class="line"><a name="l01948"></a><span class="lineno"> 1948</span> </div><div class="line"><a name="l01949"></a><span class="lineno"> 1949</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> outputShape = <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>(static_cast<unsigned int>(outputDims.size()), outputDims.data());</div><div class="line"><a name="l01950"></a><span class="lineno"> 1950</span> </div><div class="line"><a name="l01951"></a><span class="lineno"> 1951</span>  <a class="code" href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a> reshapeInfo = inputTensorInfo;</div><div class="line"><a name="l01952"></a><span class="lineno"> 1952</span>  reshapeInfo.<a class="code" href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">SetShape</a>(outputShape);</div><div class="line"><a name="l01953"></a><span class="lineno"> 1953</span> </div><div class="line"><a name="l01954"></a><span class="lineno"> 1954</span>  <span class="keywordflow">return</span> reshapeInfo;</div><div class="line"><a name="l01955"></a><span class="lineno"> 1955</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_info_html"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html">armnn::TensorInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00053">Tensor.hpp:53</a></div></div> |
| 1098 | <div class="ttc" id="classarmnn_1_1_parse_exception_html"><div class="ttname"><a href="classarmnn_1_1_parse_exception.html">armnn::ParseException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00092">Exceptions.hpp:92</a></div></div> |
| 1099 | <div class="ttc" id="_exceptions_8hpp_html_aa3be76aec4ce713822a5ea1ecbb7bc61"><div class="ttname"><a href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a></div><div class="ttdeci">#define CHECK_LOCATION()</div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.html#l00169">Exceptions.hpp:169</a></div></div> |
| 1100 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_abe8889e8150beef5fd204b2d87b49298"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#abe8889e8150beef5fd204b2d87b49298">armnn::TensorInfo::SetShape</a></div><div class="ttdeci">void SetShape(const TensorShape &newShape)</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00090">Tensor.hpp:90</a></div></div> |
| 1101 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html">armnn::TensorShape</a></div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00020">Tensor.hpp:20</a></div></div> |
| 1102 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8846406ac37fbd2204f0be16ee05d5b7"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8846406ac37fbd2204f0be16ee05d5b7">armnn::TensorInfo::GetNumElements</a></div><div class="ttdeci">unsigned int GetNumElements() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00093">Tensor.hpp:93</a></div></div> |
| 1103 | </div><!-- fragment --> |
| 1104 | </div> |
| 1105 | </div> |
| 1106 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 1107 | <li>src/armnnDeserializer/<a class="el" href="_deserializer_8hpp_source.html">Deserializer.hpp</a></li> |
| 1108 | <li>src/armnnDeserializer/<a class="el" href="_deserializer_8cpp_source.html">Deserializer.cpp</a></li> |
| 1109 | </ul> |
| 1110 | </div><!-- contents --> |
| 1111 | </div><!-- doc-content --> |
| 1112 | <!-- start footer part --> |
| 1113 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 1114 | <ul> |
| 1115 | <li class="navelem"><a class="el" href="namespacearmnn_deserializer.html">armnnDeserializer</a></li><li class="navelem"><a class="el" href="classarmnn_deserializer_1_1_deserializer.html">Deserializer</a></li> |
| 1116 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 1117 | <a href="http://www.doxygen.org/index.html"> |
| 1118 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 1119 | </ul> |
| 1120 | </div> |
| 1121 | </body> |
| 1122 | </html> |