class_layer_1_1_layer.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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=11"/>
  6. <meta name="generator" content="Doxygen 1.9.3"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Deep network: Layer::Layer 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. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <script type="text/x-mathjax-config">
  20. MathJax.Hub.Config({
  21. extensions: ["tex2jax.js"],
  22. jax: ["input/TeX","output/HTML-CSS"],
  23. });
  24. </script>
  25. <script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
  26. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  27. </head>
  28. <body>
  29. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  30. <div id="titlearea">
  31. <table cellspacing="0" cellpadding="0">
  32. <tbody>
  33. <tr id="projectrow">
  34. <td id="projectalign">
  35. <div id="projectname">Deep network
  36. </div>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. <!-- end header part -->
  43. <!-- Generated by Doxygen 1.9.3 -->
  44. <script type="text/javascript">
  45. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  46. var searchBox = new SearchBox("searchBox", "search",'Search','.html');
  47. /* @license-end */
  48. </script>
  49. <script type="text/javascript" src="menudata.js"></script>
  50. <script type="text/javascript" src="menu.js"></script>
  51. <script type="text/javascript">
  52. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  53. $(function() {
  54. initMenu('',true,false,'search.php','Search');
  55. $(document).ready(function() { init_search(); });
  56. });
  57. /* @license-end */
  58. </script>
  59. <div id="main-nav"></div>
  60. </div><!-- top -->
  61. <div id="side-nav" class="ui-resizable side-nav-resizable">
  62. <div id="nav-tree">
  63. <div id="nav-tree-contents">
  64. <div id="nav-sync" class="sync"></div>
  65. </div>
  66. </div>
  67. <div id="splitbar" style="-moz-user-select:none;"
  68. class="ui-resizable-handle">
  69. </div>
  70. </div>
  71. <script type="text/javascript">
  72. /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
  73. $(document).ready(function(){initNavTree('class_layer_1_1_layer.html',''); initResizable(); });
  74. /* @license-end */
  75. </script>
  76. <div id="doc-content">
  77. <!-- window showing the filter options -->
  78. <div id="MSearchSelectWindow"
  79. onmouseover="return searchBox.OnSearchSelectShow()"
  80. onmouseout="return searchBox.OnSearchSelectHide()"
  81. onkeydown="return searchBox.OnSearchSelectKey(event)">
  82. </div>
  83. <!-- iframe showing the search results (closed by default) -->
  84. <div id="MSearchResultsWindow">
  85. <iframe src="javascript:void(0)" frameborder="0"
  86. name="MSearchResults" id="MSearchResults">
  87. </iframe>
  88. </div>
  89. <div class="header">
  90. <div class="summary">
  91. <a href="#pub-methods">Public Member Functions</a> &#124;
  92. <a href="#pub-attribs">Public Attributes</a> &#124;
  93. <a href="class_layer_1_1_layer-members.html">List of all members</a> </div>
  94. <div class="headertitle"><div class="title">Layer::Layer Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div></div>
  95. </div><!--header-->
  96. <div class="contents">
  97. <p><code>#include &lt;<a class="el" href="layer_8hpp_source.html">layer.hpp</a>&gt;</code></p>
  98. <div class="dynheader">
  99. Inheritance diagram for Layer::Layer:</div>
  100. <div class="dyncontent">
  101. <div class="center"><img src="class_layer_1_1_layer__inherit__graph.png" border="0" usemap="#a_layer_1_1_layer_inherit__map" alt="Inheritance graph"/></div>
  102. <map name="a_layer_1_1_layer_inherit__map" id="a_layer_1_1_layer_inherit__map">
  103. <area shape="rect" title=" " alt="" coords="5,81,108,108"/>
  104. <area shape="rect" href="class_layer_1_1_activation_layer.html" title=" " alt="" coords="156,5,363,32"/>
  105. <area shape="rect" href="class_layer_1_1_convolution_layer.html" title=" " alt="" coords="169,56,349,83"/>
  106. <area shape="rect" href="class_layer_1_1_full_connected_layer.html" title=" " alt="" coords="162,107,357,133"/>
  107. <area shape="rect" href="class_layer_1_1_pooling.html" title=" " alt="" coords="202,157,317,184"/>
  108. </map>
  109. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  110. <table class="memberdecls">
  111. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
  112. Public Member Functions</h2></td></tr>
  113. <tr class="memitem:ac4ff1e869c508087bcf998899908be1a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#ac4ff1e869c508087bcf998899908be1a">Layer</a> (size_t <a class="el" href="class_layer_1_1_layer.html#a99d315d8bcc460de6feba4bdac77766c">n</a>, size_t <a class="el" href="class_layer_1_1_layer.html#a8d294cb3fc3d2970a2895ad8298d2e4d">m</a>)</td></tr>
  114. <tr class="separator:ac4ff1e869c508087bcf998899908be1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a032af2375e6bae4de0f7649b31a62318"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a032af2375e6bae4de0f7649b31a62318">~Layer</a> ()</td></tr>
  116. <tr class="separator:a032af2375e6bae4de0f7649b31a62318"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a8db0801eb0439cd0a0004f3787d512f3"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a8db0801eb0439cd0a0004f3787d512f3">get_input_size</a> () const</td></tr>
  118. <tr class="separator:a8db0801eb0439cd0a0004f3787d512f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:afe6a48cc987b246fc470082ffe58d932"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#afe6a48cc987b246fc470082ffe58d932">get_output_size</a> () const</td></tr>
  120. <tr class="separator:afe6a48cc987b246fc470082ffe58d932"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a5c9d2349c49234c1d29cdacd046788fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a5c9d2349c49234c1d29cdacd046788fa">get_output</a> () const</td></tr>
  122. <tr class="separator:a5c9d2349c49234c1d29cdacd046788fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aeb5b92a01bc4e867d347bff4767e919f"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#aeb5b92a01bc4e867d347bff4767e919f">feed_forward</a> (<a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> <a class="el" href="class_layer_1_1_layer.html#af2ebcf019bc0e4b97f41fc9205706665">x</a>)=0</td></tr>
  124. <tr class="separator:aeb5b92a01bc4e867d347bff4767e919f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a87dbd5d1c1091769ba285084bd3513e7"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a87dbd5d1c1091769ba285084bd3513e7">init_nabla</a> ()=0</td></tr>
  126. <tr class="separator:a87dbd5d1c1091769ba285084bd3513e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:ad9e2853fce56b014b1e9de5097e21dbd"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#ad9e2853fce56b014b1e9de5097e21dbd">back_propagation</a> (<a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> e)=0</td></tr>
  128. <tr class="separator:ad9e2853fce56b014b1e9de5097e21dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a8f0801b946b94dfe856c57a632c9998f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a8f0801b946b94dfe856c57a632c9998f">update</a> (<a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a> eta)=0</td></tr>
  130. <tr class="separator:a8f0801b946b94dfe856c57a632c9998f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. </table><table class="memberdecls">
  132. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
  133. Public Attributes</h2></td></tr>
  134. <tr class="memitem:a4c1dfb78f590b010a7a1e11706eb12f5"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a4c1dfb78f590b010a7a1e11706eb12f5">name</a></td></tr>
  135. <tr class="separator:a4c1dfb78f590b010a7a1e11706eb12f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a99d315d8bcc460de6feba4bdac77766c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a99d315d8bcc460de6feba4bdac77766c">n</a></td></tr>
  137. <tr class="separator:a99d315d8bcc460de6feba4bdac77766c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a8d294cb3fc3d2970a2895ad8298d2e4d"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#a8d294cb3fc3d2970a2895ad8298d2e4d">m</a></td></tr>
  139. <tr class="separator:a8d294cb3fc3d2970a2895ad8298d2e4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:af2ebcf019bc0e4b97f41fc9205706665"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#af2ebcf019bc0e4b97f41fc9205706665">x</a></td></tr>
  141. <tr class="separator:af2ebcf019bc0e4b97f41fc9205706665"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:acf6e43bdf3345739e8a2828a8c0606e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#acf6e43bdf3345739e8a2828a8c0606e7">y</a></td></tr>
  143. <tr class="separator:acf6e43bdf3345739e8a2828a8c0606e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:affe7f5de8693b4af67765a9286686d82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_layer_1_1_layer.html#affe7f5de8693b4af67765a9286686d82">d</a></td></tr>
  145. <tr class="separator:affe7f5de8693b4af67765a9286686d82"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. </table>
  147. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  148. <div class="textblock"><p >An abstract class representing a layer of a deep network. Such a layer can be seen as a map </p><p class="formulaDsp">
  149. \[ \begin{array}{rcl} f:\mathbb{R}^n&amp;\mapsto&amp;\mathbb{R}^m\\ x&amp;\to&amp;y \end{array} \]
  150. </p>
  151. <p>. </p>
  152. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  153. <a id="ac4ff1e869c508087bcf998899908be1a" name="ac4ff1e869c508087bcf998899908be1a"></a>
  154. <h2 class="memtitle"><span class="permalink"><a href="#ac4ff1e869c508087bcf998899908be1a">&#9670;&nbsp;</a></span>Layer()</h2>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="mlabels">
  158. <tr>
  159. <td class="mlabels-left">
  160. <table class="memname">
  161. <tr>
  162. <td class="memname">Layer::Layer::Layer </td>
  163. <td>(</td>
  164. <td class="paramtype">size_t&#160;</td>
  165. <td class="paramname"><em>n</em>, </td>
  166. </tr>
  167. <tr>
  168. <td class="paramkey"></td>
  169. <td></td>
  170. <td class="paramtype">size_t&#160;</td>
  171. <td class="paramname"><em>m</em>&#160;</td>
  172. </tr>
  173. <tr>
  174. <td></td>
  175. <td>)</td>
  176. <td></td><td></td>
  177. </tr>
  178. </table>
  179. </td>
  180. <td class="mlabels-right">
  181. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  182. </tr>
  183. </table>
  184. </div><div class="memdoc">
  185. </div>
  186. </div>
  187. <a id="a032af2375e6bae4de0f7649b31a62318" name="a032af2375e6bae4de0f7649b31a62318"></a>
  188. <h2 class="memtitle"><span class="permalink"><a href="#a032af2375e6bae4de0f7649b31a62318">&#9670;&nbsp;</a></span>~Layer()</h2>
  189. <div class="memitem">
  190. <div class="memproto">
  191. <table class="mlabels">
  192. <tr>
  193. <td class="mlabels-left">
  194. <table class="memname">
  195. <tr>
  196. <td class="memname">Layer::Layer::~Layer </td>
  197. <td>(</td>
  198. <td class="paramname"></td><td>)</td>
  199. <td></td>
  200. </tr>
  201. </table>
  202. </td>
  203. <td class="mlabels-right">
  204. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  205. </tr>
  206. </table>
  207. </div><div class="memdoc">
  208. </div>
  209. </div>
  210. <h2 class="groupheader">Member Function Documentation</h2>
  211. <a id="ad9e2853fce56b014b1e9de5097e21dbd" name="ad9e2853fce56b014b1e9de5097e21dbd"></a>
  212. <h2 class="memtitle"><span class="permalink"><a href="#ad9e2853fce56b014b1e9de5097e21dbd">&#9670;&nbsp;</a></span>back_propagation()</h2>
  213. <div class="memitem">
  214. <div class="memproto">
  215. <table class="mlabels">
  216. <tr>
  217. <td class="mlabels-left">
  218. <table class="memname">
  219. <tr>
  220. <td class="memname">virtual <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::back_propagation </td>
  221. <td>(</td>
  222. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  223. <td class="paramname"><em>e</em></td><td>)</td>
  224. <td></td>
  225. </tr>
  226. </table>
  227. </td>
  228. <td class="mlabels-right">
  229. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  230. </tr>
  231. </table>
  232. </div><div class="memdoc">
  233. <p >Apply back propagation algorithm on the delta output vector d. Used the input vector stored in x_in_ref during feedforward. Return a reference to the computed (and stored) input delta vector. Nabla vectors must be computed here. </p>
  234. <p>Implemented in <a class="el" href="class_layer_1_1_activation_layer.html#aa946acde267d94523d12465ca8976ab9">Layer::ActivationLayer&lt; A &gt;</a>, <a class="el" href="class_layer_1_1_convolution_layer.html#a5ccdf83a1217d57678c8bedcecc43a2a">Layer::ConvolutionLayer</a>, <a class="el" href="class_layer_1_1_full_connected_layer.html#a60219f302828bdf5ae4206b9a346627f">Layer::FullConnectedLayer</a>, and <a class="el" href="class_layer_1_1_pooling.html#a3dc9bb1a69d3d7c2f627da9d2b737ac2">Layer::Pooling</a>.</p>
  235. </div>
  236. </div>
  237. <a id="aeb5b92a01bc4e867d347bff4767e919f" name="aeb5b92a01bc4e867d347bff4767e919f"></a>
  238. <h2 class="memtitle"><span class="permalink"><a href="#aeb5b92a01bc4e867d347bff4767e919f">&#9670;&nbsp;</a></span>feed_forward()</h2>
  239. <div class="memitem">
  240. <div class="memproto">
  241. <table class="mlabels">
  242. <tr>
  243. <td class="mlabels-left">
  244. <table class="memname">
  245. <tr>
  246. <td class="memname">virtual <a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::feed_forward </td>
  247. <td>(</td>
  248. <td class="paramtype"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a>&#160;</td>
  249. <td class="paramname"><em>x</em></td><td>)</td>
  250. <td></td>
  251. </tr>
  252. </table>
  253. </td>
  254. <td class="mlabels-right">
  255. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  256. </tr>
  257. </table>
  258. </div><div class="memdoc">
  259. <p >Apply the layer to the input vector <code>x</code>. Vectors <code>x_in_ref</code> and <code>x_out</code> must be updated in consequence. Return a reference to x_out. </p>
  260. <p>Implemented in <a class="el" href="class_layer_1_1_activation_layer.html#a9bc3eb83733b4ee5a4a3c5c50e794478">Layer::ActivationLayer&lt; A &gt;</a>, <a class="el" href="class_layer_1_1_convolution_layer.html#a8315ef1016d165f8986fb3d4c2b65276">Layer::ConvolutionLayer</a>, <a class="el" href="class_layer_1_1_full_connected_layer.html#aea3b894c5efa65676c877c48a66b65cd">Layer::FullConnectedLayer</a>, and <a class="el" href="class_layer_1_1_pooling.html#a91e5d2cfd897d0f196de969909c92afc">Layer::Pooling</a>.</p>
  261. </div>
  262. </div>
  263. <a id="a8db0801eb0439cd0a0004f3787d512f3" name="a8db0801eb0439cd0a0004f3787d512f3"></a>
  264. <h2 class="memtitle"><span class="permalink"><a href="#a8db0801eb0439cd0a0004f3787d512f3">&#9670;&nbsp;</a></span>get_input_size()</h2>
  265. <div class="memitem">
  266. <div class="memproto">
  267. <table class="mlabels">
  268. <tr>
  269. <td class="mlabels-left">
  270. <table class="memname">
  271. <tr>
  272. <td class="memname">size_t Layer::Layer::get_input_size </td>
  273. <td>(</td>
  274. <td class="paramname"></td><td>)</td>
  275. <td> const</td>
  276. </tr>
  277. </table>
  278. </td>
  279. <td class="mlabels-right">
  280. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  281. </tr>
  282. </table>
  283. </div><div class="memdoc">
  284. <p >Return the input size. </p>
  285. </div>
  286. </div>
  287. <a id="a5c9d2349c49234c1d29cdacd046788fa" name="a5c9d2349c49234c1d29cdacd046788fa"></a>
  288. <h2 class="memtitle"><span class="permalink"><a href="#a5c9d2349c49234c1d29cdacd046788fa">&#9670;&nbsp;</a></span>get_output()</h2>
  289. <div class="memitem">
  290. <div class="memproto">
  291. <table class="mlabels">
  292. <tr>
  293. <td class="mlabels-left">
  294. <table class="memname">
  295. <tr>
  296. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::get_output </td>
  297. <td>(</td>
  298. <td class="paramname"></td><td>)</td>
  299. <td> const</td>
  300. </tr>
  301. </table>
  302. </td>
  303. <td class="mlabels-right">
  304. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  305. </tr>
  306. </table>
  307. </div><div class="memdoc">
  308. <p >Return a reference to the computed output vector. </p>
  309. </div>
  310. </div>
  311. <a id="afe6a48cc987b246fc470082ffe58d932" name="afe6a48cc987b246fc470082ffe58d932"></a>
  312. <h2 class="memtitle"><span class="permalink"><a href="#afe6a48cc987b246fc470082ffe58d932">&#9670;&nbsp;</a></span>get_output_size()</h2>
  313. <div class="memitem">
  314. <div class="memproto">
  315. <table class="mlabels">
  316. <tr>
  317. <td class="mlabels-left">
  318. <table class="memname">
  319. <tr>
  320. <td class="memname">size_t Layer::Layer::get_output_size </td>
  321. <td>(</td>
  322. <td class="paramname"></td><td>)</td>
  323. <td> const</td>
  324. </tr>
  325. </table>
  326. </td>
  327. <td class="mlabels-right">
  328. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  329. </tr>
  330. </table>
  331. </div><div class="memdoc">
  332. <p >Return the output size. </p>
  333. </div>
  334. </div>
  335. <a id="a87dbd5d1c1091769ba285084bd3513e7" name="a87dbd5d1c1091769ba285084bd3513e7"></a>
  336. <h2 class="memtitle"><span class="permalink"><a href="#a87dbd5d1c1091769ba285084bd3513e7">&#9670;&nbsp;</a></span>init_nabla()</h2>
  337. <div class="memitem">
  338. <div class="memproto">
  339. <table class="mlabels">
  340. <tr>
  341. <td class="mlabels-left">
  342. <table class="memname">
  343. <tr>
  344. <td class="memname">virtual void Layer::Layer::init_nabla </td>
  345. <td>(</td>
  346. <td class="paramname"></td><td>)</td>
  347. <td></td>
  348. </tr>
  349. </table>
  350. </td>
  351. <td class="mlabels-right">
  352. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  353. </tr>
  354. </table>
  355. </div><div class="memdoc">
  356. <p >Initialize nabla vectors which are used during gradient descent. </p>
  357. <p>Implemented in <a class="el" href="class_layer_1_1_activation_layer.html#a230ad43fde65528cc36021e097f111a4">Layer::ActivationLayer&lt; A &gt;</a>, <a class="el" href="class_layer_1_1_convolution_layer.html#a435dfabf3e575ddf07a11304e2d4fe84">Layer::ConvolutionLayer</a>, <a class="el" href="class_layer_1_1_full_connected_layer.html#afd7c08ff8b30bbfc217159188ef483c5">Layer::FullConnectedLayer</a>, and <a class="el" href="class_layer_1_1_pooling.html#a5c59ea7b198d3e42e334051f7a6e4645">Layer::Pooling</a>.</p>
  358. </div>
  359. </div>
  360. <a id="a8f0801b946b94dfe856c57a632c9998f" name="a8f0801b946b94dfe856c57a632c9998f"></a>
  361. <h2 class="memtitle"><span class="permalink"><a href="#a8f0801b946b94dfe856c57a632c9998f">&#9670;&nbsp;</a></span>update()</h2>
  362. <div class="memitem">
  363. <div class="memproto">
  364. <table class="mlabels">
  365. <tr>
  366. <td class="mlabels-left">
  367. <table class="memname">
  368. <tr>
  369. <td class="memname">virtual void Layer::Layer::update </td>
  370. <td>(</td>
  371. <td class="paramtype"><a class="el" href="vector_8hpp.html#a4b04262b81aa7d31eb5d2f607e2a35de">Real</a>&#160;</td>
  372. <td class="paramname"><em>eta</em></td><td>)</td>
  373. <td></td>
  374. </tr>
  375. </table>
  376. </td>
  377. <td class="mlabels-right">
  378. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  379. </tr>
  380. </table>
  381. </div><div class="memdoc">
  382. <p >Update layer parameters using gradient descent algorithm with learning rate eta. </p>
  383. <p>Implemented in <a class="el" href="class_layer_1_1_activation_layer.html#afbc9f12d792008bbaf6d6c2d0177ebf1">Layer::ActivationLayer&lt; A &gt;</a>, <a class="el" href="class_layer_1_1_convolution_layer.html#a4764f42dfc31ad2d848e0d1c22b0704b">Layer::ConvolutionLayer</a>, <a class="el" href="class_layer_1_1_full_connected_layer.html#ab07a441a9cfead787120daea7193bc63">Layer::FullConnectedLayer</a>, and <a class="el" href="class_layer_1_1_pooling.html#ab04c4682d176b4bc760aee53c0ecc36a">Layer::Pooling</a>.</p>
  384. </div>
  385. </div>
  386. <h2 class="groupheader">Member Data Documentation</h2>
  387. <a id="affe7f5de8693b4af67765a9286686d82" name="affe7f5de8693b4af67765a9286686d82"></a>
  388. <h2 class="memtitle"><span class="permalink"><a href="#affe7f5de8693b4af67765a9286686d82">&#9670;&nbsp;</a></span>d</h2>
  389. <div class="memitem">
  390. <div class="memproto">
  391. <table class="memname">
  392. <tr>
  393. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::d</td>
  394. </tr>
  395. </table>
  396. </div><div class="memdoc">
  397. <p >Computed input delta vector computed by back propagation algorithm. Owned by the layer. </p>
  398. </div>
  399. </div>
  400. <a id="a8d294cb3fc3d2970a2895ad8298d2e4d" name="a8d294cb3fc3d2970a2895ad8298d2e4d"></a>
  401. <h2 class="memtitle"><span class="permalink"><a href="#a8d294cb3fc3d2970a2895ad8298d2e4d">&#9670;&nbsp;</a></span>m</h2>
  402. <div class="memitem">
  403. <div class="memproto">
  404. <table class="memname">
  405. <tr>
  406. <td class="memname">size_t Layer::Layer::m</td>
  407. </tr>
  408. </table>
  409. </div><div class="memdoc">
  410. <p >Size of the output vector. </p>
  411. </div>
  412. </div>
  413. <a id="a99d315d8bcc460de6feba4bdac77766c" name="a99d315d8bcc460de6feba4bdac77766c"></a>
  414. <h2 class="memtitle"><span class="permalink"><a href="#a99d315d8bcc460de6feba4bdac77766c">&#9670;&nbsp;</a></span>n</h2>
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="memname">
  418. <tr>
  419. <td class="memname">size_t Layer::Layer::n</td>
  420. </tr>
  421. </table>
  422. </div><div class="memdoc">
  423. <p >Size of the input vector. </p>
  424. </div>
  425. </div>
  426. <a id="a4c1dfb78f590b010a7a1e11706eb12f5" name="a4c1dfb78f590b010a7a1e11706eb12f5"></a>
  427. <h2 class="memtitle"><span class="permalink"><a href="#a4c1dfb78f590b010a7a1e11706eb12f5">&#9670;&nbsp;</a></span>name</h2>
  428. <div class="memitem">
  429. <div class="memproto">
  430. <table class="memname">
  431. <tr>
  432. <td class="memname">string Layer::Layer::name</td>
  433. </tr>
  434. </table>
  435. </div><div class="memdoc">
  436. <p >The name of the layer. Used for debugging. </p>
  437. </div>
  438. </div>
  439. <a id="af2ebcf019bc0e4b97f41fc9205706665" name="af2ebcf019bc0e4b97f41fc9205706665"></a>
  440. <h2 class="memtitle"><span class="permalink"><a href="#af2ebcf019bc0e4b97f41fc9205706665">&#9670;&nbsp;</a></span>x</h2>
  441. <div class="memitem">
  442. <div class="memproto">
  443. <table class="memname">
  444. <tr>
  445. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::x</td>
  446. </tr>
  447. </table>
  448. </div><div class="memdoc">
  449. <p >A reference to the input vector. </p>
  450. </div>
  451. </div>
  452. <a id="acf6e43bdf3345739e8a2828a8c0606e7" name="acf6e43bdf3345739e8a2828a8c0606e7"></a>
  453. <h2 class="memtitle"><span class="permalink"><a href="#acf6e43bdf3345739e8a2828a8c0606e7">&#9670;&nbsp;</a></span>y</h2>
  454. <div class="memitem">
  455. <div class="memproto">
  456. <table class="memname">
  457. <tr>
  458. <td class="memname"><a class="el" href="vector_8hpp.html#ab9855a300a7759f4c0f85067d44e4c38">Vector</a> Layer::Layer::y</td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. <p >Computed output vector. Owned by the layer. </p>
  463. </div>
  464. </div>
  465. <hr/>The documentation for this class was generated from the following file:<ul>
  466. <li>src/layers/<a class="el" href="layer_8hpp_source.html">layer.hpp</a></li>
  467. </ul>
  468. </div><!-- contents -->
  469. </div><!-- doc-content -->
  470. <!-- start footer part -->
  471. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  472. <ul>
  473. <li class="navelem"><a class="el" href="namespace_layer.html">Layer</a></li><li class="navelem"><a class="el" href="class_layer_1_1_layer.html">Layer</a></li>
  474. <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3 </li>
  475. </ul>
  476. </div>
  477. </body>
  478. </html>