Update ACL pin to 8abbabd6ad946441c8ef1a03896fa98f7801af1f
[platform/upstream/armnn.git] / Documentation / _caffe_parser_8cpp.html
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: src/armnnCaffeParser/CaffeParser.cpp File 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    &#160;<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('_caffe_parser_8cpp.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="#namespaces">Namespaces</a> &#124;
85 <a href="#define-members">Macros</a> &#124;
86 <a href="#func-members">Functions</a>  </div>
87   <div class="headertitle">
88 <div class="title">CaffeParser.cpp File Reference</div>  </div>
89 </div><!--header-->
90 <div class="contents">
91 <div class="textblock"><code>#include &quot;<a class="el" href="_caffe_parser_8hpp_source.html">CaffeParser.hpp</a>&quot;</code><br />
92 <code>#include &quot;<a class="el" href="_record_by_record_caffe_parser_8hpp_source.html">RecordByRecordCaffeParser.hpp</a>&quot;</code><br />
93 <code>#include &quot;<a class="el" href="_descriptors_8hpp_source.html">armnn/Descriptors.hpp</a>&quot;</code><br />
94 <code>#include &quot;<a class="el" href="_i_network_8hpp_source.html">armnn/INetwork.hpp</a>&quot;</code><br />
95 <code>#include &quot;<a class="el" href="_utils_8hpp_source.html">armnn/Utils.hpp</a>&quot;</code><br />
96 <code>#include &quot;<a class="el" href="_exceptions_8hpp_source.html">armnn/Exceptions.hpp</a>&quot;</code><br />
97 <code>#include &quot;<a class="el" href="_graph_topological_sort_8hpp_source.html">GraphTopologicalSort.hpp</a>&quot;</code><br />
98 <code>#include &quot;<a class="el" href="_verification_helpers_8hpp_source.html">VerificationHelpers.hpp</a>&quot;</code><br />
99 <code>#include &lt;boost/numeric/conversion/cast.hpp&gt;</code><br />
100 <code>#include &lt;boost/assert.hpp&gt;</code><br />
101 <code>#include &lt;boost/format.hpp&gt;</code><br />
102 <code>#include &quot;caffe/proto/caffe.pb.h&quot;</code><br />
103 <code>#include &lt;google/protobuf/io/coded_stream.h&gt;</code><br />
104 <code>#include &lt;google/protobuf/io/zero_copy_stream.h&gt;</code><br />
105 <code>#include &lt;google/protobuf/io/zero_copy_stream_impl.h&gt;</code><br />
106 <code>#include &lt;google/protobuf/text_format.h&gt;</code><br />
107 <code>#include &lt;google/protobuf/stubs/common.h&gt;</code><br />
108 <code>#include &lt;google/protobuf/stubs/once.h&gt;</code><br />
109 <code>#include &lt;google/protobuf/descriptor.h&gt;</code><br />
110 <code>#include &lt;google/protobuf/generated_message_reflection.h&gt;</code><br />
111 <code>#include &lt;google/protobuf/reflection_ops.h&gt;</code><br />
112 <code>#include &lt;google/protobuf/wire_format.h&gt;</code><br />
113 <code>#include &lt;cmath&gt;</code><br />
114 <code>#include &lt;sstream&gt;</code><br />
115 <code>#include &lt;queue&gt;</code><br />
116 <code>#include &lt;fcntl.h&gt;</code><br />
117 </div>
118 <p><a href="_caffe_parser_8cpp_source.html">Go to the source code of this file.</a></p>
119 <table class="memberdecls">
120 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
121 Namespaces</h2></td></tr>
122 <tr class="memitem:namespacearmnn_caffe_parser"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_caffe_parser.html">armnnCaffeParser</a></td></tr>
123 <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
124 </table><table class="memberdecls">
125 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
126 Macros</h2></td></tr>
127 <tr class="memitem:a7553d91772274ed9b103824bbf7f75a5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_caffe_parser_8cpp.html#a7553d91772274ed9b103824bbf7f75a5">GET_OPTIONAL_WITH_VECTOR_FALLBACK</a>(PARAM,  PARAM_TYPE,  OPTIONAL_VALUE,  FALLBACK_VECTOR,  VALUE_TYPE,  DEFAULT_VALUE)</td></tr>
128 <tr class="separator:a7553d91772274ed9b103824bbf7f75a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
129 <tr class="memitem:a69f4a692d0095f6b19b0cd99cd75e465"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_caffe_parser_8cpp.html#a69f4a692d0095f6b19b0cd99cd75e465">GET_OPTIONAL_WITH_FALLBACK</a>(PARAM,  PARAM_TYPE,  OPTIONAL_VALUE,  FALLBACK_VALUE,  VALUE_TYPE,  DEFAULT_VALUE)</td></tr>
130 <tr class="separator:a69f4a692d0095f6b19b0cd99cd75e465"><td class="memSeparator" colspan="2">&#160;</td></tr>
131 </table><table class="memberdecls">
132 <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
133 Functions</h2></td></tr>
134 <tr class="memitem:af3fde7630e7c9df35cae9ed2b435dbed"><td class="memItemLeft" align="right" valign="top">BlobShape&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn_caffe_parser.html#af3fde7630e7c9df35cae9ed2b435dbed">TensorDescToBlobShape</a> (const <a class="el" href="classarmnn_1_1_tensor_info.html">TensorInfo</a> &amp;desc)</td></tr>
135 <tr class="separator:af3fde7630e7c9df35cae9ed2b435dbed"><td class="memSeparator" colspan="2">&#160;</td></tr>
136 </table>
137 <h2 class="groupheader">Macro Definition Documentation</h2>
138 <a id="a69f4a692d0095f6b19b0cd99cd75e465"></a>
139 <h2 class="memtitle"><span class="permalink"><a href="#a69f4a692d0095f6b19b0cd99cd75e465">&#9670;&nbsp;</a></span>GET_OPTIONAL_WITH_FALLBACK</h2>
140
141 <div class="memitem">
142 <div class="memproto">
143       <table class="memname">
144         <tr>
145           <td class="memname">#define GET_OPTIONAL_WITH_FALLBACK</td>
146           <td>(</td>
147           <td class="paramtype">&#160;</td>
148           <td class="paramname">PARAM, </td>
149         </tr>
150         <tr>
151           <td class="paramkey"></td>
152           <td></td>
153           <td class="paramtype">&#160;</td>
154           <td class="paramname">PARAM_TYPE, </td>
155         </tr>
156         <tr>
157           <td class="paramkey"></td>
158           <td></td>
159           <td class="paramtype">&#160;</td>
160           <td class="paramname">OPTIONAL_VALUE, </td>
161         </tr>
162         <tr>
163           <td class="paramkey"></td>
164           <td></td>
165           <td class="paramtype">&#160;</td>
166           <td class="paramname">FALLBACK_VALUE, </td>
167         </tr>
168         <tr>
169           <td class="paramkey"></td>
170           <td></td>
171           <td class="paramtype">&#160;</td>
172           <td class="paramname">VALUE_TYPE, </td>
173         </tr>
174         <tr>
175           <td class="paramkey"></td>
176           <td></td>
177           <td class="paramtype">&#160;</td>
178           <td class="paramname">DEFAULT_VALUE&#160;</td>
179         </tr>
180         <tr>
181           <td></td>
182           <td>)</td>
183           <td></td><td></td>
184         </tr>
185       </table>
186 </div><div class="memdoc">
187 <b>Value:</b><div class="fragment"><div class="line">GetOptionalWithFallback( \</div><div class="line">        PARAM, \</div><div class="line">        [](<span class="keyword">const</span> PARAM_TYPE &amp; param, VALUE_TYPE defaultValue) \</div><div class="line">        { \</div><div class="line">            if (param.has_##OPTIONAL_VALUE ()) \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">true</span>, param.OPTIONAL_VALUE ()); \</div><div class="line">            } \</div><div class="line">            else \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">false</span>, defaultValue); \</div><div class="line">            } \</div><div class="line">        }, \</div><div class="line">        [](<span class="keyword">const</span> PARAM_TYPE &amp; param, VALUE_TYPE defaultValue) \</div><div class="line">        { \</div><div class="line">            if (param.has_##FALLBACK_VALUE ()) \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">true</span>, param.FALLBACK_VALUE ()); \</div><div class="line">            } \</div><div class="line">            else \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">false</span>, defaultValue); \</div><div class="line">            } \</div><div class="line">        }, \</div><div class="line">        DEFAULT_VALUE)</div></div><!-- fragment -->
188 <p class="definition">Definition at line <a class="el" href="_caffe_parser_8cpp_source.html#l00208">208</a> of file <a class="el" href="_caffe_parser_8cpp_source.html">CaffeParser.cpp</a>.</p>
189
190 <p class="reference">Referenced by <a class="el" href="_caffe_parser_8cpp_source.html#l00883">CaffeParserBase::ParsePoolingLayer()</a>.</p>
191
192 </div>
193 </div>
194 <a id="a7553d91772274ed9b103824bbf7f75a5"></a>
195 <h2 class="memtitle"><span class="permalink"><a href="#a7553d91772274ed9b103824bbf7f75a5">&#9670;&nbsp;</a></span>GET_OPTIONAL_WITH_VECTOR_FALLBACK</h2>
196
197 <div class="memitem">
198 <div class="memproto">
199       <table class="memname">
200         <tr>
201           <td class="memname">#define GET_OPTIONAL_WITH_VECTOR_FALLBACK</td>
202           <td>(</td>
203           <td class="paramtype">&#160;</td>
204           <td class="paramname">PARAM, </td>
205         </tr>
206         <tr>
207           <td class="paramkey"></td>
208           <td></td>
209           <td class="paramtype">&#160;</td>
210           <td class="paramname">PARAM_TYPE, </td>
211         </tr>
212         <tr>
213           <td class="paramkey"></td>
214           <td></td>
215           <td class="paramtype">&#160;</td>
216           <td class="paramname">OPTIONAL_VALUE, </td>
217         </tr>
218         <tr>
219           <td class="paramkey"></td>
220           <td></td>
221           <td class="paramtype">&#160;</td>
222           <td class="paramname">FALLBACK_VECTOR, </td>
223         </tr>
224         <tr>
225           <td class="paramkey"></td>
226           <td></td>
227           <td class="paramtype">&#160;</td>
228           <td class="paramname">VALUE_TYPE, </td>
229         </tr>
230         <tr>
231           <td class="paramkey"></td>
232           <td></td>
233           <td class="paramtype">&#160;</td>
234           <td class="paramname">DEFAULT_VALUE&#160;</td>
235         </tr>
236         <tr>
237           <td></td>
238           <td>)</td>
239           <td></td><td></td>
240         </tr>
241       </table>
242 </div><div class="memdoc">
243 <b>Value:</b><div class="fragment"><div class="line">GetOptionalWithFallback( \</div><div class="line">        PARAM, \</div><div class="line">        [](<span class="keyword">const</span> PARAM_TYPE &amp; param, VALUE_TYPE defaultValue) \</div><div class="line">        { \</div><div class="line">            if (param.has_##OPTIONAL_VALUE ()) \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">true</span>, param.OPTIONAL_VALUE ()); \</div><div class="line">            } \</div><div class="line">            else \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">false</span>, defaultValue); \</div><div class="line">            } \</div><div class="line">        }, \</div><div class="line">        [](<span class="keyword">const</span> PARAM_TYPE &amp; param, VALUE_TYPE defaultValue) \</div><div class="line">        { \</div><div class="line">            if (param.FALLBACK_VECTOR##_size() &gt; 0) \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">true</span>, (param.FALLBACK_VECTOR ()).Get(0)); \</div><div class="line">            } \</div><div class="line">            else \</div><div class="line">            { \</div><div class="line">                return std::make_pair(<span class="keyword">false</span>, defaultValue); \</div><div class="line">            } \</div><div class="line">        }, \</div><div class="line">        DEFAULT_VALUE)</div></div><!-- fragment -->
244 <p class="definition">Definition at line <a class="el" href="_caffe_parser_8cpp_source.html#l00176">176</a> of file <a class="el" href="_caffe_parser_8cpp_source.html">CaffeParser.cpp</a>.</p>
245
246 <p class="reference">Referenced by <a class="el" href="_caffe_parser_8cpp_source.html#l00701">CaffeParserBase::ParseConvLayer()</a>.</p>
247
248 </div>
249 </div>
250 </div><!-- contents -->
251 </div><!-- doc-content -->
252 <!-- start footer part -->
253 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
254   <ul>
255     <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_04760fd1fb320650b591e359d321263b.html">armnnCaffeParser</a></li><li class="navelem"><a class="el" href="_caffe_parser_8cpp.html">CaffeParser.cpp</a></li>
256     <li class="footer">Generated on Fri Mar 13 2020 16:06:59 for ArmNN by
257     <a href="http://www.doxygen.org/index.html">
258     <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
259   </ul>
260 </div>
261 </body>
262 </html>