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">
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);
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" />
25 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
27 <table cellspacing="0" cellpadding="0">
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>
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');
44 <script type="text/javascript" src="menudata.js"></script>
45 <script type="text/javascript" src="menu.js"></script>
46 <script type="text/javascript">
48 initMenu('',true,false,'search.php','Search');
49 $(document).ready(function() { init_search(); });
52 <div id="main-nav"></div>
54 <div id="side-nav" class="ui-resizable side-nav-resizable">
56 <div id="nav-tree-contents">
57 <div id="nav-sync" class="sync"></div>
60 <div id="splitbar" style="-moz-user-select:none;"
61 class="ui-resizable-handle">
64 <script type="text/javascript">
65 $(document).ready(function(){initNavTree('_caffe_parser_8cpp.html','');});
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)">
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">
84 <a href="#namespaces">Namespaces</a> |
85 <a href="#define-members">Macros</a> |
86 <a href="#func-members">Functions</a> </div>
87 <div class="headertitle">
88 <div class="title">CaffeParser.cpp File Reference</div> </div>
90 <div class="contents">
91 <div class="textblock"><code>#include "<a class="el" href="_caffe_parser_8hpp_source.html">CaffeParser.hpp</a>"</code><br />
92 <code>#include "<a class="el" href="_record_by_record_caffe_parser_8hpp_source.html">RecordByRecordCaffeParser.hpp</a>"</code><br />
93 <code>#include "<a class="el" href="_descriptors_8hpp_source.html">armnn/Descriptors.hpp</a>"</code><br />
94 <code>#include "<a class="el" href="_i_network_8hpp_source.html">armnn/INetwork.hpp</a>"</code><br />
95 <code>#include "<a class="el" href="_utils_8hpp_source.html">armnn/Utils.hpp</a>"</code><br />
96 <code>#include "<a class="el" href="_exceptions_8hpp_source.html">armnn/Exceptions.hpp</a>"</code><br />
97 <code>#include "<a class="el" href="_graph_topological_sort_8hpp_source.html">GraphTopologicalSort.hpp</a>"</code><br />
98 <code>#include "<a class="el" href="_verification_helpers_8hpp_source.html">VerificationHelpers.hpp</a>"</code><br />
99 <code>#include <boost/numeric/conversion/cast.hpp></code><br />
100 <code>#include <boost/assert.hpp></code><br />
101 <code>#include <boost/format.hpp></code><br />
102 <code>#include "caffe/proto/caffe.pb.h"</code><br />
103 <code>#include <google/protobuf/io/coded_stream.h></code><br />
104 <code>#include <google/protobuf/io/zero_copy_stream.h></code><br />
105 <code>#include <google/protobuf/io/zero_copy_stream_impl.h></code><br />
106 <code>#include <google/protobuf/text_format.h></code><br />
107 <code>#include <google/protobuf/stubs/common.h></code><br />
108 <code>#include <google/protobuf/stubs/once.h></code><br />
109 <code>#include <google/protobuf/descriptor.h></code><br />
110 <code>#include <google/protobuf/generated_message_reflection.h></code><br />
111 <code>#include <google/protobuf/reflection_ops.h></code><br />
112 <code>#include <google/protobuf/wire_format.h></code><br />
113 <code>#include <cmath></code><br />
114 <code>#include <sstream></code><br />
115 <code>#include <queue></code><br />
116 <code>#include <fcntl.h></code><br />
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">  </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"> </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 </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"> </td></tr>
129 <tr class="memitem:a69f4a692d0095f6b19b0cd99cd75e465"><td class="memItemLeft" align="right" valign="top">#define </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"> </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 </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> &desc)</td></tr>
135 <tr class="separator:af3fde7630e7c9df35cae9ed2b435dbed"><td class="memSeparator" colspan="2"> </td></tr>
137 <h2 class="groupheader">Macro Definition Documentation</h2>
138 <a id="a69f4a692d0095f6b19b0cd99cd75e465"></a>
139 <h2 class="memtitle"><span class="permalink"><a href="#a69f4a692d0095f6b19b0cd99cd75e465">◆ </a></span>GET_OPTIONAL_WITH_FALLBACK</h2>
141 <div class="memitem">
142 <div class="memproto">
143 <table class="memname">
145 <td class="memname">#define GET_OPTIONAL_WITH_FALLBACK</td>
147 <td class="paramtype"> </td>
148 <td class="paramname">PARAM, </td>
151 <td class="paramkey"></td>
153 <td class="paramtype"> </td>
154 <td class="paramname">PARAM_TYPE, </td>
157 <td class="paramkey"></td>
159 <td class="paramtype"> </td>
160 <td class="paramname">OPTIONAL_VALUE, </td>
163 <td class="paramkey"></td>
165 <td class="paramtype"> </td>
166 <td class="paramname">FALLBACK_VALUE, </td>
169 <td class="paramkey"></td>
171 <td class="paramtype"> </td>
172 <td class="paramname">VALUE_TYPE, </td>
175 <td class="paramkey"></td>
177 <td class="paramtype"> </td>
178 <td class="paramname">DEFAULT_VALUE </td>
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 & 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 & 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>
190 <p class="reference">Referenced by <a class="el" href="_caffe_parser_8cpp_source.html#l00883">CaffeParserBase::ParsePoolingLayer()</a>.</p>
194 <a id="a7553d91772274ed9b103824bbf7f75a5"></a>
195 <h2 class="memtitle"><span class="permalink"><a href="#a7553d91772274ed9b103824bbf7f75a5">◆ </a></span>GET_OPTIONAL_WITH_VECTOR_FALLBACK</h2>
197 <div class="memitem">
198 <div class="memproto">
199 <table class="memname">
201 <td class="memname">#define GET_OPTIONAL_WITH_VECTOR_FALLBACK</td>
203 <td class="paramtype"> </td>
204 <td class="paramname">PARAM, </td>
207 <td class="paramkey"></td>
209 <td class="paramtype"> </td>
210 <td class="paramname">PARAM_TYPE, </td>
213 <td class="paramkey"></td>
215 <td class="paramtype"> </td>
216 <td class="paramname">OPTIONAL_VALUE, </td>
219 <td class="paramkey"></td>
221 <td class="paramtype"> </td>
222 <td class="paramname">FALLBACK_VECTOR, </td>
225 <td class="paramkey"></td>
227 <td class="paramtype"> </td>
228 <td class="paramname">VALUE_TYPE, </td>
231 <td class="paramkey"></td>
233 <td class="paramtype"> </td>
234 <td class="paramname">DEFAULT_VALUE </td>
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 & 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 & param, VALUE_TYPE defaultValue) \</div><div class="line"> { \</div><div class="line"> if (param.FALLBACK_VECTOR##_size() > 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>
246 <p class="reference">Referenced by <a class="el" href="_caffe_parser_8cpp_source.html#l00701">CaffeParserBase::ParseConvLayer()</a>.</p>
250 </div><!-- contents -->
251 </div><!-- doc-content -->
252 <!-- start footer part -->
253 <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
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>