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: Convolution2dLayer 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_1_1_convolution2d_layer.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="#pub-methods">Public Member Functions</a> | |
| 85 | <a href="#pub-attribs">Public Attributes</a> | |
| 86 | <a href="#pro-methods">Protected Member Functions</a> | |
| 87 | <a href="classarmnn_1_1_convolution2d_layer-members.html">List of all members</a> </div> |
| 88 | <div class="headertitle"> |
| 89 | <div class="title">Convolution2dLayer Class Reference</div> </div> |
| 90 | </div><!--header--> |
| 91 | <div class="contents"> |
| 92 | |
| 93 | <p>This layer represents a convolution 2d operation. |
| 94 | <a href="classarmnn_1_1_convolution2d_layer.html#details">More...</a></p> |
| 95 | |
| 96 | <p><code>#include <<a class="el" href="_convolution2d_layer_8hpp_source.html">Convolution2dLayer.hpp</a>></code></p> |
| 97 | <div class="dynheader"> |
| 98 | Inheritance diagram for Convolution2dLayer:</div> |
| 99 | <div class="dyncontent"> |
| 100 | <div class="center"> |
| 101 | <img src="classarmnn_1_1_convolution2d_layer.png" usemap="#Convolution2dLayer_map" alt=""/> |
| 102 | <map id="Convolution2dLayer_map" name="Convolution2dLayer_map"> |
| 103 | <area href="classarmnn_1_1_layer_with_parameters.html" alt="LayerWithParameters< Convolution2dDescriptor >" shape="rect" coords="0,112,297,136"/> |
| 104 | <area href="classarmnn_1_1_layer.html" alt="Layer" shape="rect" coords="0,56,297,80"/> |
| 105 | <area href="classarmnn_1_1_i_connectable_layer.html" title="Interface for a layer that is connectable to other layers via InputSlots and OutputSlots. " alt="IConnectableLayer" shape="rect" coords="0,0,297,24"/> |
| 106 | </map> |
| 107 | </div></div> |
| 108 | <table class="memberdecls"> |
| 109 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 110 | Public Member Functions</h2></td></tr> |
| 111 | <tr class="memitem:adfa912d0c4c6c00f1af2cbfa799572b7"><td class="memItemLeft" align="right" valign="top">virtual std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload.html">IWorkload</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#adfa912d0c4c6c00f1af2cbfa799572b7">CreateWorkload</a> (const <a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &factory) const override</td></tr> |
| 112 | <tr class="separator:adfa912d0c4c6c00f1af2cbfa799572b7"><td class="memSeparator" colspan="2"> </td></tr> |
| 113 | <tr class="memitem:acf7bec8b795447d4b23e0339a6561044"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#acf7bec8b795447d4b23e0339a6561044">Clone</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &graph) const override</td></tr> |
| 114 | <tr class="separator:acf7bec8b795447d4b23e0339a6561044"><td class="memSeparator" colspan="2"> </td></tr> |
| 115 | <tr class="memitem:a8c8f543d7e9729362c266d12ec169966"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a8c8f543d7e9729362c266d12ec169966">ValidateTensorShapesFromInputs</a> () override</td></tr> |
| 116 | <tr class="separator:a8c8f543d7e9729362c266d12ec169966"><td class="memSeparator" colspan="2"> </td></tr> |
| 117 | <tr class="memitem:a65ca562c882ad619684445a1402f415a"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a> (const std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > &inputShapes) const override</td></tr> |
| 118 | <tr class="separator:a65ca562c882ad619684445a1402f415a"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a75a50f464326fefa605ea84ae2c9be85"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a75a50f464326fefa605ea84ae2c9be85">Accept</a> (<a class="el" href="classarmnn_1_1_i_layer_visitor.html">ILayerVisitor</a> &visitor) const override</td></tr> |
| 120 | <tr class="separator:a75a50f464326fefa605ea84ae2c9be85"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:a2ca654770a1890f15e3c7aab98e434a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a2ca654770a1890f15e3c7aab98e434a5">SerializeLayerParameters</a> (<a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> &fn) const override</td></tr> |
| 122 | <tr class="separator:a2ca654770a1890f15e3c7aab98e434a5"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="inherit_header pub_methods_classarmnn_1_1_layer_with_parameters"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_layer_with_parameters')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_layer_with_parameters.html">LayerWithParameters< Convolution2dDescriptor ></a></td></tr> |
| 124 | <tr class="memitem:a502c06a1b13e6d90a6cbf47c081f1444 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a> () const</td></tr> |
| 125 | <tr class="separator:a502c06a1b13e6d90a6cbf47c081f1444 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a2ca654770a1890f15e3c7aab98e434a5 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a2ca654770a1890f15e3c7aab98e434a5">SerializeLayerParameters</a> (<a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> &fn) const override</td></tr> |
| 127 | <tr class="separator:a2ca654770a1890f15e3c7aab98e434a5 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="inherit_header pub_methods_classarmnn_1_1_layer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_layer')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_layer.html">Layer</a></td></tr> |
| 129 | <tr class="memitem:a5e5ae420d199a0bccae5139d38c30205 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a5e5ae420d199a0bccae5139d38c30205">Layer</a> (unsigned int numInputSlots, unsigned int numOutputSlots, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> type, const char *name)</td></tr> |
| 130 | <tr class="separator:a5e5ae420d199a0bccae5139d38c30205 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a395d070748c18d903705799360088e80 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a395d070748c18d903705799360088e80">Layer</a> (unsigned int numInputSlots, unsigned int numOutputSlots, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> type, <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0">DataLayout</a> layout, const char *name)</td></tr> |
| 132 | <tr class="separator:a395d070748c18d903705799360088e80 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:a9a97cb6d32661a57fc33bd29b8e41ff4 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a9a97cb6d32661a57fc33bd29b8e41ff4">GetNameStr</a> () const</td></tr> |
| 134 | <tr class="separator:a9a97cb6d32661a57fc33bd29b8e41ff4 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <tr class="memitem:af2c0edc7ea62a8baaec4d3d9b2b09256 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_output_handler.html">OutputHandler</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#af2c0edc7ea62a8baaec4d3d9b2b09256">GetOutputHandler</a> (unsigned int i=0) const</td></tr> |
| 136 | <tr class="separator:af2c0edc7ea62a8baaec4d3d9b2b09256 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <tr class="memitem:a1d4e05c17647232c514cfe58ca80744a inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_output_handler.html">OutputHandler</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a1d4e05c17647232c514cfe58ca80744a">GetOutputHandler</a> (unsigned int i=0)</td></tr> |
| 138 | <tr class="separator:a1d4e05c17647232c514cfe58ca80744a inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:af5f530544d09a44d726f24702b67b35b inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#af5f530544d09a44d726f24702b67b35b">GetInputSlots</a> () const</td></tr> |
| 140 | <tr class="separator:af5f530544d09a44d726f24702b67b35b inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <tr class="memitem:a98cdff4e0b45f4c80bfcedaf926e16e0 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const std::vector< <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a98cdff4e0b45f4c80bfcedaf926e16e0">GetOutputSlots</a> () const</td></tr> |
| 142 | <tr class="separator:a98cdff4e0b45f4c80bfcedaf926e16e0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <tr class="memitem:af6cb8de21ef0da269ec9b67755ae92a0 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> >::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#af6cb8de21ef0da269ec9b67755ae92a0">BeginInputSlots</a> ()</td></tr> |
| 144 | <tr class="separator:af6cb8de21ef0da269ec9b67755ae92a0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <tr class="memitem:a9752e12d6b79e18da1a25f76159d2a72 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> >::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a9752e12d6b79e18da1a25f76159d2a72">EndInputSlots</a> ()</td></tr> |
| 146 | <tr class="separator:a9752e12d6b79e18da1a25f76159d2a72 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr class="memitem:a817d4be6dd88f532d36f51748ec14185 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> >::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a817d4be6dd88f532d36f51748ec14185">BeginOutputSlots</a> ()</td></tr> |
| 148 | <tr class="separator:a817d4be6dd88f532d36f51748ec14185 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <tr class="memitem:a55f76d98fcd2f5cdac3e2b14536cb7ab inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> >::iterator </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a55f76d98fcd2f5cdac3e2b14536cb7ab">EndOutputSlots</a> ()</td></tr> |
| 150 | <tr class="separator:a55f76d98fcd2f5cdac3e2b14536cb7ab inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:a22485f444124128940e798a42f0b76d9 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a22485f444124128940e798a42f0b76d9">IsOutputUnconnected</a> ()</td></tr> |
| 152 | <tr class="separator:a22485f444124128940e798a42f0b76d9 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | <tr class="memitem:aac329cade047e952621b59a51a5d5f49 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aac329cade047e952621b59a51a5d5f49">ResetPriority</a> () const</td></tr> |
| 154 | <tr class="separator:aac329cade047e952621b59a51a5d5f49 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <tr class="memitem:af97a07195a67a638605b3c325763c2dd inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#a419086ecb4dc9d0f9e5d8933c87e2ea2">LayerPriority</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#af97a07195a67a638605b3c325763c2dd">GetPriority</a> () const</td></tr> |
| 156 | <tr class="separator:af97a07195a67a638605b3c325763c2dd inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <tr class="memitem:aaef29472862381822654ab6cbf7cba2a inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aaef29472862381822654ab6cbf7cba2a">GetType</a> () const</td></tr> |
| 158 | <tr class="separator:aaef29472862381822654ab6cbf7cba2a inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <tr class="memitem:aea909c7327109228ef618d459015def3 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aea909c7327109228ef618d459015def3">GetDataType</a> () const</td></tr> |
| 160 | <tr class="separator:aea909c7327109228ef618d459015def3 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <tr class="memitem:afdb1d37740e7a083b625d669588b6a0e inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#afdb1d37740e7a083b625d669588b6a0e">GetBackendId</a> () const</td></tr> |
| 162 | <tr class="separator:afdb1d37740e7a083b625d669588b6a0e inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | <tr class="memitem:a3f6ad59212fa8a47c9265162fff8a274 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a3f6ad59212fa8a47c9265162fff8a274">SetBackendId</a> (const <a class="el" href="classarmnn_1_1_backend_id.html">BackendId</a> &id)</td></tr> |
| 164 | <tr class="separator:a3f6ad59212fa8a47c9265162fff8a274 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 165 | <tr class="memitem:a3ff62126ec713a2708e5fbaa6146a7de inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a3ff62126ec713a2708e5fbaa6146a7de">CreateTensorHandles</a> (const <a class="el" href="classarmnn_1_1_tensor_handle_factory_registry.html">TensorHandleFactoryRegistry</a> &registry, const <a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> &factory, const bool IsMemoryManaged=<a class="el" href="_ref_layer_tests_8cpp.html#a37f1c3ccc9fc906be85185350dd83d48">true</a>)</td></tr> |
| 166 | <tr class="separator:a3ff62126ec713a2708e5fbaa6146a7de inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <tr class="memitem:a0607e36e88f38c34c71c663164b76776 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a0607e36e88f38c34c71c663164b76776">VerifyLayerConnections</a> (unsigned int expectedConnections, const <a class="el" href="structarmnn_1_1_check_location.html">CheckLocation</a> &location) const</td></tr> |
| 168 | <tr class="separator:a0607e36e88f38c34c71c663164b76776 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:a339bef86bc340c3d1393ed83950fe8af inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a339bef86bc340c3d1393ed83950fe8af">ReleaseConstantData</a> ()</td></tr> |
| 170 | <tr class="separator:a339bef86bc340c3d1393ed83950fe8af inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 171 | <tr class="memitem:a386acff5f8430245239ce58d00ba7576 inherit pub_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename Op > </td></tr> |
| 172 | <tr class="memitem:a386acff5f8430245239ce58d00ba7576 inherit pub_methods_classarmnn_1_1_layer"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a386acff5f8430245239ce58d00ba7576">OperateOnConstantTensors</a> (Op op)</td></tr> |
| 173 | <tr class="separator:a386acff5f8430245239ce58d00ba7576 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <tr class="memitem:a7ddf0cf6f620d59c10e63495ace795d0 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a> () const override</td></tr> |
| 175 | <tr class="separator:a7ddf0cf6f620d59c10e63495ace795d0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <tr class="memitem:abc0660dc440c8a285b456c9ef6383c26 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#abc0660dc440c8a285b456c9ef6383c26">GetNumInputSlots</a> () const override</td></tr> |
| 177 | <tr class="separator:abc0660dc440c8a285b456c9ef6383c26 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:a1594bddc87d6477df300317658f566bb inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a1594bddc87d6477df300317658f566bb">GetNumOutputSlots</a> () const override</td></tr> |
| 179 | <tr class="separator:a1594bddc87d6477df300317658f566bb inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:acf8b8e23bf647836592982f97088d375 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a> (unsigned int index) const override</td></tr> |
| 181 | <tr class="separator:acf8b8e23bf647836592982f97088d375 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:a1b50eb1358cdf382f4bc3fc8849f8e8e inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_input_slot.html">InputSlot</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a1b50eb1358cdf382f4bc3fc8849f8e8e">GetInputSlot</a> (unsigned int index) override</td></tr> |
| 183 | <tr class="separator:a1b50eb1358cdf382f4bc3fc8849f8e8e inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:a0e36688a43c35668d8db5257274c68fe inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a> (unsigned int index=0) const override</td></tr> |
| 185 | <tr class="separator:a0e36688a43c35668d8db5257274c68fe inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:abbd71844785bb2f00a81baca30ea5ff0 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_output_slot.html">OutputSlot</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#abbd71844785bb2f00a81baca30ea5ff0">GetOutputSlot</a> (unsigned int index=0) override</td></tr> |
| 187 | <tr class="separator:abbd71844785bb2f00a81baca30ea5ff0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:a6d1024208b672a87ef2c1bfaf93d2b9f inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a6d1024208b672a87ef2c1bfaf93d2b9f">SetGuid</a> (<a class="el" href="namespacearmnn.html#afad4088a9a058114ee5f87246f87bf49">LayerGuid</a> guid)</td></tr> |
| 189 | <tr class="separator:a6d1024208b672a87ef2c1bfaf93d2b9f inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:a8dc12f0ee5b232d397bd18ced1a72a64 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#afad4088a9a058114ee5f87246f87bf49">LayerGuid</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a8dc12f0ee5b232d397bd18ced1a72a64">GetGuid</a> () const final</td></tr> |
| 191 | <tr class="separator:a8dc12f0ee5b232d397bd18ced1a72a64 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:a339248d89d5e21534ecf74b4393ed4d2 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a339248d89d5e21534ecf74b4393ed4d2">AddRelatedLayerName</a> (const std::string layerName)</td></tr> |
| 193 | <tr class="separator:a339248d89d5e21534ecf74b4393ed4d2 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:a5e5520194ea4042fe07b0bf53c28f634 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">const std::list< std::string > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a5e5520194ea4042fe07b0bf53c28f634">GetRelatedLayerNames</a> ()</td></tr> |
| 195 | <tr class="separator:a5e5520194ea4042fe07b0bf53c28f634 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:a72b18e4c5a403bc3fe2fecf20135c8d6 inherit pub_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a72b18e4c5a403bc3fe2fecf20135c8d6">Reparent</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &dest, std::list< <a class="el" href="classarmnn_1_1_layer.html">Layer</a> *>::const_iterator iterator)=0</td></tr> |
| 197 | <tr class="separator:a72b18e4c5a403bc3fe2fecf20135c8d6 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | </table><table class="memberdecls"> |
| 199 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> |
| 200 | Public Attributes</h2></td></tr> |
| 201 | <tr class="memitem:a2664044e28e69309ea08ef385fe53903"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a></td></tr> |
| 202 | <tr class="memdesc:a2664044e28e69309ea08ef385fe53903"><td class="mdescLeft"> </td><td class="mdescRight">A unique pointer to store Weight values. <a href="#a2664044e28e69309ea08ef385fe53903">More...</a><br /></td></tr> |
| 203 | <tr class="separator:a2664044e28e69309ea08ef385fe53903"><td class="memSeparator" colspan="2"> </td></tr> |
| 204 | <tr class="memitem:a39925bc24d3afcfb322a46a5884fadb9"><td class="memItemLeft" align="right" valign="top">std::unique_ptr< <a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a></td></tr> |
| 205 | <tr class="memdesc:a39925bc24d3afcfb322a46a5884fadb9"><td class="mdescLeft"> </td><td class="mdescRight">A unique pointer to store Bias values. <a href="#a39925bc24d3afcfb322a46a5884fadb9">More...</a><br /></td></tr> |
| 206 | <tr class="separator:a39925bc24d3afcfb322a46a5884fadb9"><td class="memSeparator" colspan="2"> </td></tr> |
| 207 | </table><table class="memberdecls"> |
| 208 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 209 | Protected Member Functions</h2></td></tr> |
| 210 | <tr class="memitem:ad026ad183e8c182f60d22a6cc39ae873"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#ad026ad183e8c182f60d22a6cc39ae873">Convolution2dLayer</a> (const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> &param, const char *name)</td></tr> |
| 211 | <tr class="separator:ad026ad183e8c182f60d22a6cc39ae873"><td class="memSeparator" colspan="2"> </td></tr> |
| 212 | <tr class="memitem:af83688dfd5460d2f705f1ab60b8a216f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#af83688dfd5460d2f705f1ab60b8a216f">~Convolution2dLayer</a> ()=default</td></tr> |
| 213 | <tr class="memdesc:af83688dfd5460d2f705f1ab60b8a216f"><td class="mdescLeft"> </td><td class="mdescRight">Default destructor. <a href="#af83688dfd5460d2f705f1ab60b8a216f">More...</a><br /></td></tr> |
| 214 | <tr class="separator:af83688dfd5460d2f705f1ab60b8a216f"><td class="memSeparator" colspan="2"> </td></tr> |
| 215 | <tr class="memitem:abe659a5afa7523f5dbc04bcba9b31f1a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_layer.html#a585d59ec610af46a76487fd6c1c55ac1">ConstantTensors</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_convolution2d_layer.html#abe659a5afa7523f5dbc04bcba9b31f1a">GetConstantTensorsByRef</a> () override</td></tr> |
| 216 | <tr class="separator:abe659a5afa7523f5dbc04bcba9b31f1a"><td class="memSeparator" colspan="2"> </td></tr> |
| 217 | <tr class="inherit_header pro_methods_classarmnn_1_1_layer_with_parameters"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_layer_with_parameters')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_layer_with_parameters.html">LayerWithParameters< Convolution2dDescriptor ></a></td></tr> |
| 218 | <tr class="memitem:a1f5a1d629b1ef52a0d8e0214a0fb51a1 inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a1f5a1d629b1ef52a0d8e0214a0fb51a1">LayerWithParameters</a> (unsigned int numInputSlots, unsigned int numOutputSlots, <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> type, const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> &param, const char *name)</td></tr> |
| 219 | <tr class="separator:a1f5a1d629b1ef52a0d8e0214a0fb51a1 inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 220 | <tr class="memitem:adc0f578e075f63379058f2d2641a509a inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#adc0f578e075f63379058f2d2641a509a">~LayerWithParameters</a> ()=default</td></tr> |
| 221 | <tr class="separator:adc0f578e075f63379058f2d2641a509a inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 222 | <tr class="memitem:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">PrepInfoAndDesc</a> (<a class="el" href="structarmnn_1_1_queue_descriptor.html">QueueDescriptor</a> &descriptor) const</td></tr> |
| 223 | <tr class="memdesc:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="mdescLeft"> </td><td class="mdescRight">Helper function to reduce duplication in *Layer<a class="el" href="_elementwise_unary_test_impl_8hpp.html#aa50938ed8f91e09acd4af904dcf5543a">CreateWorkload</a>. <a href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">More...</a><br /></td></tr> |
| 224 | <tr class="separator:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 225 | <tr class="inherit_header pro_methods_classarmnn_1_1_layer"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_layer')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_layer.html">Layer</a></td></tr> |
| 226 | <tr class="memitem:aacfb208d750bdfce1bbd423e5cac76e2 inherit pro_methods_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aacfb208d750bdfce1bbd423e5cac76e2">~Layer</a> ()=default</td></tr> |
| 227 | <tr class="separator:aacfb208d750bdfce1bbd423e5cac76e2 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 228 | <tr class="memitem:afc3239f5fc116259bf5451964e803646 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 229 | <tr class="memitem:afc3239f5fc116259bf5451964e803646 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#afc3239f5fc116259bf5451964e803646">CollectQueueDescriptorInputs</a> (<a class="el" href="structarmnn_1_1_queue_descriptor.html">QueueDescriptor</a> &descriptor, <a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> &<a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>) const</td></tr> |
| 230 | <tr class="separator:afc3239f5fc116259bf5451964e803646 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 231 | <tr class="memitem:a499ca5a94d0174ed21786b6994b2cd8c inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 232 | <tr class="memitem:a499ca5a94d0174ed21786b6994b2cd8c inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a499ca5a94d0174ed21786b6994b2cd8c">CollectQueueDescriptorOutputs</a> (<a class="el" href="structarmnn_1_1_queue_descriptor.html">QueueDescriptor</a> &descriptor, <a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> &<a class="el" href="namespacearmnn.html#a4dc0adc6737b5944e7671bee71788407acaf9b6b99962bf5c2264824231d7a40c">info</a>) const</td></tr> |
| 233 | <tr class="separator:a499ca5a94d0174ed21786b6994b2cd8c inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 234 | <tr class="memitem:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 235 | <tr class="memitem:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="structarmnn_1_1_workload_info.html">WorkloadInfo</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a30a858b2b26d651a066537e499fbf40d">PrepInfoAndDesc</a> (<a class="el" href="structarmnn_1_1_queue_descriptor.html">QueueDescriptor</a> &descriptor) const</td></tr> |
| 236 | <tr class="memdesc:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="mdescLeft"> </td><td class="mdescRight">Helper function to reduce duplication in *Layer<a class="el" href="_elementwise_unary_test_impl_8hpp.html#aa50938ed8f91e09acd4af904dcf5543a">CreateWorkload</a>. <a href="classarmnn_1_1_layer.html#a30a858b2b26d651a066537e499fbf40d">More...</a><br /></td></tr> |
| 237 | <tr class="separator:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 238 | <tr class="memitem:aa10fd205c3f5469a9ecb2aa2a3ffd101 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename LayerType , typename ... Params> </td></tr> |
| 239 | <tr class="memitem:aa10fd205c3f5469a9ecb2aa2a3ffd101 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4">LayerType</a> * </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aa10fd205c3f5469a9ecb2aa2a3ffd101">CloneBase</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &graph, Params &&... params) const</td></tr> |
| 240 | <tr class="separator:aa10fd205c3f5469a9ecb2aa2a3ffd101 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 241 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_connectable_layer"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_connectable_layer')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_connectable_layer.html">IConnectableLayer</a></td></tr> |
| 242 | <tr class="memitem:a8c7faf37c1d965431aaa02ae934d67ee inherit pro_methods_classarmnn_1_1_i_connectable_layer"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_connectable_layer.html#a8c7faf37c1d965431aaa02ae934d67ee">~IConnectableLayer</a> ()</td></tr> |
| 243 | <tr class="memdesc:a8c7faf37c1d965431aaa02ae934d67ee inherit pro_methods_classarmnn_1_1_i_connectable_layer"><td class="mdescLeft"> </td><td class="mdescRight">Objects are not deletable via the handle. <a href="classarmnn_1_1_i_connectable_layer.html#a8c7faf37c1d965431aaa02ae934d67ee">More...</a><br /></td></tr> |
| 244 | <tr class="separator:a8c7faf37c1d965431aaa02ae934d67ee inherit pro_methods_classarmnn_1_1_i_connectable_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 245 | </table><table class="memberdecls"> |
| 246 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 247 | Additional Inherited Members</h2></td></tr> |
| 248 | <tr class="inherit_header pub_types_classarmnn_1_1_layer_with_parameters"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classarmnn_1_1_layer_with_parameters')"><img src="closed.png" alt="-"/> Public Types inherited from <a class="el" href="classarmnn_1_1_layer_with_parameters.html">LayerWithParameters< Convolution2dDescriptor ></a></td></tr> |
| 249 | <tr class="memitem:a6b1bd3d5380a0ce8ecb71ddb0261c3fa inherit pub_types_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a6b1bd3d5380a0ce8ecb71ddb0261c3fa">DescriptorType</a> = <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a></td></tr> |
| 250 | <tr class="separator:a6b1bd3d5380a0ce8ecb71ddb0261c3fa inherit pub_types_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 251 | <tr class="inherit_header pro_types_classarmnn_1_1_layer"><td colspan="2" onclick="javascript:toggleInherit('pro_types_classarmnn_1_1_layer')"><img src="closed.png" alt="-"/> Protected Types inherited from <a class="el" href="classarmnn_1_1_layer.html">Layer</a></td></tr> |
| 252 | <tr class="memitem:a585d59ec610af46a76487fd6c1c55ac1 inherit pro_types_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">using </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#a585d59ec610af46a76487fd6c1c55ac1">ConstantTensors</a> = std::vector< std::reference_wrapper< std::unique_ptr< <a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a> > >></td></tr> |
| 253 | <tr class="separator:a585d59ec610af46a76487fd6c1c55ac1 inherit pro_types_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 254 | <tr class="inherit_header pro_attribs_classarmnn_1_1_layer_with_parameters"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classarmnn_1_1_layer_with_parameters')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classarmnn_1_1_layer_with_parameters.html">LayerWithParameters< Convolution2dDescriptor ></a></td></tr> |
| 255 | <tr class="memitem:ad32ac22bc72e28dfd6b466d143c8e262 inherit pro_attribs_classarmnn_1_1_layer_with_parameters"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a></td></tr> |
| 256 | <tr class="memdesc:ad32ac22bc72e28dfd6b466d143c8e262 inherit pro_attribs_classarmnn_1_1_layer_with_parameters"><td class="mdescLeft"> </td><td class="mdescRight">The parameters for the layer (not including tensor-valued weights etc.). <a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">More...</a><br /></td></tr> |
| 257 | <tr class="separator:ad32ac22bc72e28dfd6b466d143c8e262 inherit pro_attribs_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 258 | <tr class="inherit_header pro_attribs_classarmnn_1_1_layer"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classarmnn_1_1_layer')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classarmnn_1_1_layer.html">Layer</a></td></tr> |
| 259 | <tr class="memitem:aa44d91037bba52ba0dec6577509ade3b inherit pro_attribs_classarmnn_1_1_layer"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="classarmnn_1_1_output_handler.html">OutputHandler</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer.html#aa44d91037bba52ba0dec6577509ade3b">m_OutputHandlers</a></td></tr> |
| 260 | <tr class="separator:aa44d91037bba52ba0dec6577509ade3b inherit pro_attribs_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 261 | </table> |
| 262 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 263 | <div class="textblock"><p>This layer represents a convolution 2d operation. </p> |
| 264 | |
| 265 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8hpp_source.html#l00015">15</a> of file <a class="el" href="_convolution2d_layer_8hpp_source.html">Convolution2dLayer.hpp</a>.</p> |
| 266 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 267 | <a id="ad026ad183e8c182f60d22a6cc39ae873"></a> |
| 268 | <h2 class="memtitle"><span class="permalink"><a href="#ad026ad183e8c182f60d22a6cc39ae873">◆ </a></span>Convolution2dLayer()</h2> |
| 269 | |
| 270 | <div class="memitem"> |
| 271 | <div class="memproto"> |
| 272 | <table class="mlabels"> |
| 273 | <tr> |
| 274 | <td class="mlabels-left"> |
| 275 | <table class="memname"> |
| 276 | <tr> |
| 277 | <td class="memname"><a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a> </td> |
| 278 | <td>(</td> |
| 279 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">Convolution2dDescriptor</a> & </td> |
| 280 | <td class="paramname"><em>param</em>, </td> |
| 281 | </tr> |
| 282 | <tr> |
| 283 | <td class="paramkey"></td> |
| 284 | <td></td> |
| 285 | <td class="paramtype">const char * </td> |
| 286 | <td class="paramname"><em>name</em> </td> |
| 287 | </tr> |
| 288 | <tr> |
| 289 | <td></td> |
| 290 | <td>)</td> |
| 291 | <td></td><td></td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </td> |
| 295 | <td class="mlabels-right"> |
| 296 | <span class="mlabels"><span class="mlabel">protected</span></span> </td> |
| 297 | </tr> |
| 298 | </table> |
| 299 | </div><div class="memdoc"> |
| 300 | <p>Constructor to create a <a class="el" href="classarmnn_1_1_convolution2d_layer.html" title="This layer represents a convolution 2d operation. ">Convolution2dLayer</a>. </p><dl class="params"><dt>Parameters</dt><dd> |
| 301 | <table class="params"> |
| 302 | <tr><td class="paramdir">[in]</td><td class="paramname">param</td><td><a class="el" href="structarmnn_1_1_convolution2d_descriptor.html" title="A Convolution2dDescriptor for the Convolution2dLayer. ">Convolution2dDescriptor</a> to configure the convolution2d operation. </td></tr> |
| 303 | <tr><td class="paramdir">[in]</td><td class="paramname">name</td><td><a class="el" href="classarmnn_1_1_optional.html">Optional</a> name for the layer. </td></tr> |
| 304 | </table> |
| 305 | </dd> |
| 306 | </dl> |
| 307 | |
| 308 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00023">23</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 309 | |
| 310 | <p class="reference">References <a class="el" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a">armnn::Convolution2d</a>.</p> |
| 311 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  : <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a1f5a1d629b1ef52a0d8e0214a0fb51a1">LayerWithParameters</a>(1, 1, <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a">LayerType::Convolution2d</a>, param, name)</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> }</div><div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_a1f5a1d629b1ef52a0d8e0214a0fb51a1"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a1f5a1d629b1ef52a0d8e0214a0fb51a1">armnn::LayerWithParameters< Convolution2dDescriptor >::LayerWithParameters</a></div><div class="ttdeci">LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const Convolution2dDescriptor &param, const char *name)</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00029">LayerWithParameters.hpp:29</a></div></div> |
| 312 | <div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4adb033d2f81b68f9a17e8f62de69fed4a">armnn::LayerType::Convolution2d</a></div></div> |
| 313 | </div><!-- fragment --> |
| 314 | </div> |
| 315 | </div> |
| 316 | <a id="af83688dfd5460d2f705f1ab60b8a216f"></a> |
| 317 | <h2 class="memtitle"><span class="permalink"><a href="#af83688dfd5460d2f705f1ab60b8a216f">◆ </a></span>~Convolution2dLayer()</h2> |
| 318 | |
| 319 | <div class="memitem"> |
| 320 | <div class="memproto"> |
| 321 | <table class="mlabels"> |
| 322 | <tr> |
| 323 | <td class="mlabels-left"> |
| 324 | <table class="memname"> |
| 325 | <tr> |
| 326 | <td class="memname">~<a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a> </td> |
| 327 | <td>(</td> |
| 328 | <td class="paramname"></td><td>)</td> |
| 329 | <td></td> |
| 330 | </tr> |
| 331 | </table> |
| 332 | </td> |
| 333 | <td class="mlabels-right"> |
| 334 | <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td> |
| 335 | </tr> |
| 336 | </table> |
| 337 | </div><div class="memdoc"> |
| 338 | |
| 339 | <p>Default destructor. </p> |
| 340 | |
| 341 | </div> |
| 342 | </div> |
| 343 | <h2 class="groupheader">Member Function Documentation</h2> |
| 344 | <a id="a75a50f464326fefa605ea84ae2c9be85"></a> |
| 345 | <h2 class="memtitle"><span class="permalink"><a href="#a75a50f464326fefa605ea84ae2c9be85">◆ </a></span>Accept()</h2> |
| 346 | |
| 347 | <div class="memitem"> |
| 348 | <div class="memproto"> |
| 349 | <table class="mlabels"> |
| 350 | <tr> |
| 351 | <td class="mlabels-left"> |
| 352 | <table class="memname"> |
| 353 | <tr> |
| 354 | <td class="memname">void Accept </td> |
| 355 | <td>(</td> |
| 356 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_layer_visitor.html">ILayerVisitor</a> & </td> |
| 357 | <td class="paramname"><em>visitor</em></td><td>)</td> |
| 358 | <td> const</td> |
| 359 | </tr> |
| 360 | </table> |
| 361 | </td> |
| 362 | <td class="mlabels-right"> |
| 363 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 364 | </tr> |
| 365 | </table> |
| 366 | </div><div class="memdoc"> |
| 367 | |
| 368 | <p>Implements <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a8c9198a992b02e61a6777329d487dde3">IConnectableLayer</a>.</p> |
| 369 | |
| 370 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00139">139</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 371 | |
| 372 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00305">Layer::GetName()</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00018">LayerWithParameters< Convolution2dDescriptor >::GetParameters()</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer::m_Bias</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>, and <a class="el" href="classarmnn_1_1_i_layer_visitor.html#abc8fe4c6cbc8fa2b13c525500dddfbf6">ILayerVisitor::VisitConvolution2dLayer()</a>.</p> |
| 373 | <div class="fragment"><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">ConstTensor</a> weightsTensor(<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->GetTensorInfo(), <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->Map(<span class="keyword">true</span>)) ;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <a class="code" href="classarmnn_1_1_optional.html">Optional<ConstTensor></a> optionalBiasTensor = <a class="code" href="structarmnn_1_1_empty_optional.html">EmptyOptional</a>();</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a>().m_BiasEnabled)</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  {</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="classarmnn_1_1_const_tensor.html">ConstTensor</a> biasTensor(<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>->GetTensorInfo(), <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>->Map(<span class="keyword">true</span>));</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  optionalBiasTensor = <a class="code" href="classarmnn_1_1_optional.html">Optional<ConstTensor></a>(biasTensor);</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  }</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  visitor.<a class="code" href="classarmnn_1_1_i_layer_visitor.html#abc8fe4c6cbc8fa2b13c525500dddfbf6">VisitConvolution2dLayer</a>(<span class="keyword">this</span>, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a>(), weightsTensor, optionalBiasTensor, <a class="code" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a>());</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> }</div><div class="ttc" id="classarmnn_1_1_layer_html_a7ddf0cf6f620d59c10e63495ace795d0"><div class="ttname"><a href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">armnn::Layer::GetName</a></div><div class="ttdeci">const char * GetName() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00305">Layer.hpp:305</a></div></div> |
| 374 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::Convolution2dLayer::m_Bias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Bias</div><div class="ttdoc">A unique pointer to store Bias values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer.hpp:22</a></div></div> |
| 375 | <div class="ttc" id="classarmnn_1_1_i_layer_visitor_html_abc8fe4c6cbc8fa2b13c525500dddfbf6"><div class="ttname"><a href="classarmnn_1_1_i_layer_visitor.html#abc8fe4c6cbc8fa2b13c525500dddfbf6">armnn::ILayerVisitor::VisitConvolution2dLayer</a></div><div class="ttdeci">virtual void VisitConvolution2dLayer(const IConnectableLayer *layer, const Convolution2dDescriptor &convolution2dDescriptor, const ConstTensor &weights, const Optional< ConstTensor > &biases, const char *name=nullptr)=0</div></div> |
| 376 | <div class="ttc" id="classarmnn_1_1_const_tensor_html"><div class="ttname"><a href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a></div><div class="ttdoc">A tensor defined by a TensorInfo (shape and data type) and an immutable backing store. </div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00199">Tensor.hpp:199</a></div></div> |
| 377 | <div class="ttc" id="classarmnn_1_1_optional_html"><div class="ttname"><a href="classarmnn_1_1_optional.html">armnn::Optional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00270">Optional.hpp:270</a></div></div> |
| 378 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 379 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_a502c06a1b13e6d90a6cbf47c081f1444"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">armnn::LayerWithParameters< Convolution2dDescriptor >::GetParameters</a></div><div class="ttdeci">const Convolution2dDescriptor & GetParameters() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00018">LayerWithParameters.hpp:18</a></div></div> |
| 380 | <div class="ttc" id="structarmnn_1_1_empty_optional_html"><div class="ttname"><a href="structarmnn_1_1_empty_optional.html">armnn::EmptyOptional</a></div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00032">Optional.hpp:32</a></div></div> |
| 381 | </div><!-- fragment --> |
| 382 | </div> |
| 383 | </div> |
| 384 | <a id="acf7bec8b795447d4b23e0339a6561044"></a> |
| 385 | <h2 class="memtitle"><span class="permalink"><a href="#acf7bec8b795447d4b23e0339a6561044">◆ </a></span>Clone()</h2> |
| 386 | |
| 387 | <div class="memitem"> |
| 388 | <div class="memproto"> |
| 389 | <table class="mlabels"> |
| 390 | <tr> |
| 391 | <td class="mlabels-left"> |
| 392 | <table class="memname"> |
| 393 | <tr> |
| 394 | <td class="memname"><a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a> * Clone </td> |
| 395 | <td>(</td> |
| 396 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.html">Graph</a> & </td> |
| 397 | <td class="paramname"><em>graph</em></td><td>)</td> |
| 398 | <td> const</td> |
| 399 | </tr> |
| 400 | </table> |
| 401 | </td> |
| 402 | <td class="mlabels-right"> |
| 403 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 404 | </tr> |
| 405 | </table> |
| 406 | </div><div class="memdoc"> |
| 407 | <p>Creates a dynamically-allocated copy of this layer. </p><dl class="params"><dt>Parameters</dt><dd> |
| 408 | <table class="params"> |
| 409 | <tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td>The graph into which this layer is being cloned. </td></tr> |
| 410 | </table> |
| 411 | </dd> |
| 412 | </dl> |
| 413 | |
| 414 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#ae89ff455503aa106d00bf34103d2f2e0">Layer</a>.</p> |
| 415 | |
| 416 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00066">66</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 417 | |
| 418 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00305">Layer::GetName()</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer::m_Bias</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< Convolution2dDescriptor >::m_Param</a>, and <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>.</p> |
| 419 | <div class="fragment"><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> {</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keyword">auto</span> layer = CloneBase<Convolution2dLayer>(graph, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>, <a class="code" href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">GetName</a>());</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  layer->m_Weight = <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> ? std::make_unique<ScopedCpuTensorHandle>(*m_Weight) : <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordflow">if</span> (layer->m_Param.m_BiasEnabled)</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  {</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  layer->m_Bias = <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a> ? std::make_unique<ScopedCpuTensorHandle>(*m_Bias) : <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  }</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <span class="keywordflow">return</span> std::move(layer);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> }</div><div class="ttc" id="classarmnn_1_1_layer_html_a7ddf0cf6f620d59c10e63495ace795d0"><div class="ttname"><a href="classarmnn_1_1_layer.html#a7ddf0cf6f620d59c10e63495ace795d0">armnn::Layer::GetName</a></div><div class="ttdeci">const char * GetName() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00305">Layer.hpp:305</a></div></div> |
| 420 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::Convolution2dLayer::m_Bias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Bias</div><div class="ttdoc">A unique pointer to store Bias values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer.hpp:22</a></div></div> |
| 421 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 422 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_ad32ac22bc72e28dfd6b466d143c8e262"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">armnn::LayerWithParameters< Convolution2dDescriptor >::m_Param</a></div><div class="ttdeci">Convolution2dDescriptor m_Param</div><div class="ttdoc">The parameters for the layer (not including tensor-valued weights etc.). </div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters.hpp:50</a></div></div> |
| 423 | </div><!-- fragment --> |
| 424 | </div> |
| 425 | </div> |
| 426 | <a id="adfa912d0c4c6c00f1af2cbfa799572b7"></a> |
| 427 | <h2 class="memtitle"><span class="permalink"><a href="#adfa912d0c4c6c00f1af2cbfa799572b7">◆ </a></span>CreateWorkload()</h2> |
| 428 | |
| 429 | <div class="memitem"> |
| 430 | <div class="memproto"> |
| 431 | <table class="mlabels"> |
| 432 | <tr> |
| 433 | <td class="mlabels-left"> |
| 434 | <table class="memname"> |
| 435 | <tr> |
| 436 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload.html">IWorkload</a> > CreateWorkload </td> |
| 437 | <td>(</td> |
| 438 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 439 | <td class="paramname"><em>factory</em></td><td>)</td> |
| 440 | <td> const</td> |
| 441 | </tr> |
| 442 | </table> |
| 443 | </td> |
| 444 | <td class="mlabels-right"> |
| 445 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 446 | </tr> |
| 447 | </table> |
| 448 | </div><div class="memdoc"> |
| 449 | <p>Makes a workload for the Convolution2d type. </p><dl class="params"><dt>Parameters</dt><dd> |
| 450 | <table class="params"> |
| 451 | <tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td>The graph where this layer can be found. </td></tr> |
| 452 | <tr><td class="paramdir">[in]</td><td class="paramname">factory</td><td>The workload factory which will create the workload. </td></tr> |
| 453 | </table> |
| 454 | </dd> |
| 455 | </dl> |
| 456 | <dl class="section return"><dt>Returns</dt><dd>A pointer to the created workload, or nullptr if not created. </dd></dl> |
| 457 | |
| 458 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#a08d1e10a45f15cd0bd02557be35a3864">Layer</a>.</p> |
| 459 | |
| 460 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00049">49</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 461 | |
| 462 | <p class="reference">References <a class="el" href="_workload_factory_8cpp_source.html#l01142">IWorkloadFactory::CreateConvolution2d()</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer::m_Bias</a>, <a class="el" href="_workload_data_8hpp_source.html#l00177">Convolution2dQueueDescriptor::m_Bias</a>, <a class="el" href="_descriptors_8hpp_source.html#l00438">Convolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< Convolution2dDescriptor >::m_Param</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>, <a class="el" href="_workload_data_8hpp_source.html#l00176">Convolution2dQueueDescriptor::m_Weight</a>, and <a class="el" href="_layer_with_parameters_8hpp_source.html#l00043">LayerWithParameters< Convolution2dDescriptor >::PrepInfoAndDesc()</a>.</p> |
| 463 | <div class="fragment"><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="comment">// on this level constant data should not be released..</span></div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"Convolution2dLayer: Weights data should not be null."</span>);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="structarmnn_1_1_convolution2d_queue_descriptor.html">Convolution2dQueueDescriptor</a> descriptor;</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  descriptor.<a class="code" href="structarmnn_1_1_convolution2d_queue_descriptor.html#a3369b66d9316a773a41711e3f590c041">m_Weight</a> = <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>.get();</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordflow">if</span> (<a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>)</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  {</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"Convolution2dLayer: Bias data should not be null."</span>);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  descriptor.<a class="code" href="structarmnn_1_1_convolution2d_queue_descriptor.html#ab3437cee6b0687812104fc1b37cbe8b3">m_Bias</a> = <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>.get();</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  }</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordflow">return</span> factory.<a class="code" href="classarmnn_1_1_i_workload_factory.html#a2184995027cd2c9f9980206de9658855">CreateConvolution2d</a>(descriptor, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">PrepInfoAndDesc</a>(descriptor));</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> }</div><div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::Convolution2dLayer::m_Bias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Bias</div><div class="ttdoc">A unique pointer to store Bias values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer.hpp:22</a></div></div> |
| 464 | <div class="ttc" id="structarmnn_1_1_convolution2d_queue_descriptor_html"><div class="ttname"><a href="structarmnn_1_1_convolution2d_queue_descriptor.html">armnn::Convolution2dQueueDescriptor</a></div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00168">WorkloadData.hpp:168</a></div></div> |
| 465 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 466 | <div class="ttc" id="structarmnn_1_1_convolution2d_queue_descriptor_html_a3369b66d9316a773a41711e3f590c041"><div class="ttname"><a href="structarmnn_1_1_convolution2d_queue_descriptor.html#a3369b66d9316a773a41711e3f590c041">armnn::Convolution2dQueueDescriptor::m_Weight</a></div><div class="ttdeci">const ConstCpuTensorHandle * m_Weight</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00176">WorkloadData.hpp:176</a></div></div> |
| 467 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_ad32ac22bc72e28dfd6b466d143c8e262"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">armnn::LayerWithParameters< Convolution2dDescriptor >::m_Param</a></div><div class="ttdeci">Convolution2dDescriptor m_Param</div><div class="ttdoc">The parameters for the layer (not including tensor-valued weights etc.). </div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters.hpp:50</a></div></div> |
| 468 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_a30a858b2b26d651a066537e499fbf40d"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">armnn::LayerWithParameters< Convolution2dDescriptor >::PrepInfoAndDesc</a></div><div class="ttdeci">WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const</div><div class="ttdoc">Helper function to reduce duplication in *LayerCreateWorkload. </div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00043">LayerWithParameters.hpp:43</a></div></div> |
| 469 | <div class="ttc" id="structarmnn_1_1_convolution2d_queue_descriptor_html_ab3437cee6b0687812104fc1b37cbe8b3"><div class="ttname"><a href="structarmnn_1_1_convolution2d_queue_descriptor.html#ab3437cee6b0687812104fc1b37cbe8b3">armnn::Convolution2dQueueDescriptor::m_Bias</a></div><div class="ttdeci">const ConstCpuTensorHandle * m_Bias</div><div class="ttdef"><b>Definition:</b> <a href="_workload_data_8hpp_source.html#l00177">WorkloadData.hpp:177</a></div></div> |
| 470 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::Convolution2dDescriptor::m_BiasEnabled</a></div><div class="ttdeci">bool m_BiasEnabled</div><div class="ttdoc">Enable/disable bias. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00438">Descriptors.hpp:438</a></div></div> |
| 471 | <div class="ttc" id="classarmnn_1_1_i_workload_factory_html_a2184995027cd2c9f9980206de9658855"><div class="ttname"><a href="classarmnn_1_1_i_workload_factory.html#a2184995027cd2c9f9980206de9658855">armnn::IWorkloadFactory::CreateConvolution2d</a></div><div class="ttdeci">virtual std::unique_ptr< IWorkload > CreateConvolution2d(const Convolution2dQueueDescriptor &descriptor, const WorkloadInfo &info) const</div><div class="ttdef"><b>Definition:</b> <a href="_workload_factory_8cpp_source.html#l01142">WorkloadFactory.cpp:1142</a></div></div> |
| 472 | </div><!-- fragment --> |
| 473 | </div> |
| 474 | </div> |
| 475 | <a id="abe659a5afa7523f5dbc04bcba9b31f1a"></a> |
| 476 | <h2 class="memtitle"><span class="permalink"><a href="#abe659a5afa7523f5dbc04bcba9b31f1a">◆ </a></span>GetConstantTensorsByRef()</h2> |
| 477 | |
| 478 | <div class="memitem"> |
| 479 | <div class="memproto"> |
| 480 | <table class="mlabels"> |
| 481 | <tr> |
| 482 | <td class="mlabels-left"> |
| 483 | <table class="memname"> |
| 484 | <tr> |
| 485 | <td class="memname"><a class="el" href="classarmnn_1_1_layer.html#a585d59ec610af46a76487fd6c1c55ac1">Layer::ConstantTensors</a> GetConstantTensorsByRef </td> |
| 486 | <td>(</td> |
| 487 | <td class="paramname"></td><td>)</td> |
| 488 | <td></td> |
| 489 | </tr> |
| 490 | </table> |
| 491 | </td> |
| 492 | <td class="mlabels-right"> |
| 493 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> |
| 494 | </tr> |
| 495 | </table> |
| 496 | </div><div class="memdoc"> |
| 497 | <p>Retrieve the handles to the constant values stored by the layer. </p><dl class="section return"><dt>Returns</dt><dd>A vector of the constant tensors stored by this layer. </dd></dl> |
| 498 | |
| 499 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_layer.html#afbeac2d77ecaadc3e303a163b4146961">Layer</a>.</p> |
| 500 | |
| 501 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00134">134</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 502 | |
| 503 | <p class="reference">References <a class="el" href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer::m_Bias</a>, and <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>.</p> |
| 504 | <div class="fragment"><div class="line"><a name="l00135"></a><span class="lineno"> 135</span> {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keywordflow">return</span> {<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>, <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>};</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> }</div><div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::Convolution2dLayer::m_Bias</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Bias</div><div class="ttdoc">A unique pointer to store Bias values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00022">Convolution2dLayer.hpp:22</a></div></div> |
| 505 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 506 | </div><!-- fragment --> |
| 507 | </div> |
| 508 | </div> |
| 509 | <a id="a65ca562c882ad619684445a1402f415a"></a> |
| 510 | <h2 class="memtitle"><span class="permalink"><a href="#a65ca562c882ad619684445a1402f415a">◆ </a></span>InferOutputShapes()</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">std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > InferOutputShapes </td> |
| 520 | <td>(</td> |
| 521 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > & </td> |
| 522 | <td class="paramname"><em>inputShapes</em></td><td>)</td> |
| 523 | <td> const</td> |
| 524 | </tr> |
| 525 | </table> |
| 526 | </td> |
| 527 | <td class="mlabels-right"> |
| 528 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 529 | </tr> |
| 530 | </table> |
| 531 | </div><div class="memdoc"> |
| 532 | <p>By default returns inputShapes if the number of inputs are equal to number of outputs, otherwise infers the output shapes from given input shapes and layer properties. </p><dl class="params"><dt>Parameters</dt><dd> |
| 533 | <table class="params"> |
| 534 | <tr><td class="paramdir">[in]</td><td class="paramname">inputShapes</td><td>The input shapes layer has. </td></tr> |
| 535 | </table> |
| 536 | </dd> |
| 537 | </dl> |
| 538 | <dl class="section return"><dt>Returns</dt><dd>A vector to the inferred output shape. </dd></dl> |
| 539 | |
| 540 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_layer.html#a65ca562c882ad619684445a1402f415a">Layer</a>.</p> |
| 541 | |
| 542 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00080">80</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 543 | |
| 544 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00440">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00434">Convolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00436">Convolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00428">Convolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00422">Convolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00424">Convolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00426">Convolution2dDescriptor::m_PadTop</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< Convolution2dDescriptor >::m_Param</a>, <a class="el" href="_descriptors_8hpp_source.html#l00430">Convolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00432">Convolution2dDescriptor::m_StrideY</a>, and <a class="el" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::NHWC</a>.</p> |
| 545 | |
| 546 | <p class="reference">Referenced by <a class="el" href="_infer_output_tests_8hpp_source.html#l00436">Convolution2dInferOutputShapeTest()</a>, and <a class="el" href="_convolution2d_layer_8cpp_source.html#l00115">Convolution2dLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 547 | <div class="fragment"><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> {</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  BOOST_ASSERT(inputShapes.size() == 2);</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>& inputShape = inputShapes[0];</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> filterShape = inputShapes[1];</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span> </div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="comment">// If we support multiple batch dimensions in the future, then this assert will need to change.</span></div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  BOOST_ASSERT_MSG(inputShape.GetNumDimensions() == 4, <span class="stringliteral">"Convolutions will always have 4D input."</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span> </div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <a class="code" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> dataLayoutIndex(<a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inWidth = inputShape[dataLayoutIndex.GetWidthIndex()];</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inHeight = inputShape[dataLayoutIndex.GetHeightIndex()];</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> inBatchSize = inputShape[0];</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> filterWidth = filterShape[dataLayoutIndex.GetWidthIndex()];</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dilatedFilterWidth = filterWidth + (<a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#aa3c6a77a963a98ccb8ea7b8fd008a8c1">m_DilationX</a> - 1) * (filterWidth - 1);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> readWidth = (inWidth + <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a> + <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a>) - dilatedFilterWidth;</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outWidth = 1 + (readWidth / <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a>);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> filterHeight = filterShape[dataLayoutIndex.GetHeightIndex()];</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dilatedFilterHeight = filterHeight + (<a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a302b688d88dd73cde0fb1faef6679907">m_DilationY</a> - 1) * (filterHeight - 1);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> readHeight = (inHeight + <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a> + <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a>) - dilatedFilterHeight;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outHeight = 1 + (readHeight / <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a>);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outChannels = filterShape[0];</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outBatchSize = inBatchSize;</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> tensorShape = <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a> == <a class="code" href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a> ?</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>( { outBatchSize, outHeight, outWidth, outChannels } ) :</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a>( { outBatchSize, outChannels, outHeight, outWidth });</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">return</span> std::vector<TensorShape>({ tensorShape });</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> }</div><div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Convolution2dDescriptor::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#l00440">Descriptors.hpp:440</a></div></div> |
| 548 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">armnn::Convolution2dDescriptor::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#l00424">Descriptors.hpp:424</a></div></div> |
| 549 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">armnn::Convolution2dDescriptor::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#l00428">Descriptors.hpp:428</a></div></div> |
| 550 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Convolution2dDescriptor::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#l00432">Descriptors.hpp:432</a></div></div> |
| 551 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">armnn::Convolution2dDescriptor::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#l00426">Descriptors.hpp:426</a></div></div> |
| 552 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::Convolution2dDescriptor::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#l00422">Descriptors.hpp:422</a></div></div> |
| 553 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::Convolution2dDescriptor::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#l00430">Descriptors.hpp:430</a></div></div> |
| 554 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_ad32ac22bc72e28dfd6b466d143c8e262"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">armnn::LayerWithParameters< Convolution2dDescriptor >::m_Param</a></div><div class="ttdeci">Convolution2dDescriptor m_Param</div><div class="ttdoc">The parameters for the layer (not including tensor-valued weights etc.). </div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters.hpp:50</a></div></div> |
| 555 | <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> |
| 556 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a302b688d88dd73cde0fb1faef6679907"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a302b688d88dd73cde0fb1faef6679907">armnn::Convolution2dDescriptor::m_DilationY</a></div><div class="ttdeci">uint32_t m_DilationY</div><div class="ttdoc">Dilation along y axis. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00436">Descriptors.hpp:436</a></div></div> |
| 557 | <div class="ttc" id="classarmnn_utils_1_1_data_layout_indexed_html"><div class="ttname"><a href="classarmnn_utils_1_1_data_layout_indexed.html">armnnUtils::DataLayoutIndexed</a></div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_indexed_8hpp_source.html#l00017">DataLayoutIndexed.hpp:17</a></div></div> |
| 558 | <div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_aa3c6a77a963a98ccb8ea7b8fd008a8c1"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#aa3c6a77a963a98ccb8ea7b8fd008a8c1">armnn::Convolution2dDescriptor::m_DilationX</a></div><div class="ttdeci">uint32_t m_DilationX</div><div class="ttdoc">Dilation along x axis. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00434">Descriptors.hpp:434</a></div></div> |
| 559 | <div class="ttc" id="namespacearmnn_html_ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51"><div class="ttname"><a href="namespacearmnn.html#ad1d5cce2d9e9a5d61c243e5c989112e0ad066db54b89b0912e7e7c6da51e2da51">armnn::DataLayout::NHWC</a></div></div> |
| 560 | </div><!-- fragment --> |
| 561 | </div> |
| 562 | </div> |
| 563 | <a id="a2ca654770a1890f15e3c7aab98e434a5"></a> |
| 564 | <h2 class="memtitle"><span class="permalink"><a href="#a2ca654770a1890f15e3c7aab98e434a5">◆ </a></span>SerializeLayerParameters()</h2> |
| 565 | |
| 566 | <div class="memitem"> |
| 567 | <div class="memproto"> |
| 568 | <table class="mlabels"> |
| 569 | <tr> |
| 570 | <td class="mlabels-left"> |
| 571 | <table class="memname"> |
| 572 | <tr> |
| 573 | <td class="memname">void SerializeLayerParameters </td> |
| 574 | <td>(</td> |
| 575 | <td class="paramtype"><a class="el" href="namespacearmnn.html#a8c42c6647e31ebe525aeba878d133e45">ParameterStringifyFunction</a> & </td> |
| 576 | <td class="paramname"><em>fn</em></td><td>)</td> |
| 577 | <td> const</td> |
| 578 | </tr> |
| 579 | </table> |
| 580 | </td> |
| 581 | <td class="mlabels-right"> |
| 582 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 583 | </tr> |
| 584 | </table> |
| 585 | </div><div class="memdoc"> |
| 586 | <p>Helper to serialize the layer parameters to string. (currently used in DotSerializer and company). </p> |
| 587 | |
| 588 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_layer.html#ac04cd8de9b9185756eb02463ffd432b1">Layer</a>.</p> |
| 589 | |
| 590 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00029">29</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 591 | |
| 592 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00199">InputSlot::GetConnection()</a>, <a class="el" href="_data_layout_indexed_8hpp_source.html#l00024">DataLayoutIndexed::GetHeightIndex()</a>, <a class="el" href="_layer_8hpp_source.html#l00310">Layer::GetInputSlot()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">IOutputSlot::GetTensorInfo()</a>, <a class="el" href="_data_layout_indexed_8hpp_source.html#l00025">DataLayoutIndexed::GetWidthIndex()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00440">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< Convolution2dDescriptor >::m_Param</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>, and <a class="el" href="_layer_with_parameters_8hpp_source.html#l00022">LayerWithParameters< Parameters >::SerializeLayerParameters()</a>.</p> |
| 593 | <div class="fragment"><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="comment">//using DescriptorType = Parameters;</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">const</span> std::vector<TensorShape>& inputShapes =</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0).<a class="code" href="classarmnn_1_1_input_slot.html#a3153abb7c0c0a84629079b2fac7db54f">GetConnection</a>()-><a class="code" href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(),</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->GetTensorInfo().GetShape()</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  };</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> filterShape = inputShapes[1];</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="classarmnn_utils_1_1_data_layout_indexed.html">DataLayoutIndexed</a> dataLayoutIndex(<a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> filterWidth = filterShape[dataLayoutIndex.GetWidthIndex()];</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> filterHeight = filterShape[dataLayoutIndex.GetHeightIndex()];</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> outChannels = filterShape[0];</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  fn(<span class="stringliteral">"OutputChannels"</span>,std::to_string(outChannels));</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  fn(<span class="stringliteral">"FilterWidth"</span>,std::to_string(filterWidth));</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  fn(<span class="stringliteral">"FilterHeight"</span>,std::to_string(filterHeight));</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a2ca654770a1890f15e3c7aab98e434a5">LayerWithParameters<Convolution2dDescriptor>::SerializeLayerParameters</a>(fn);</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> }</div><div class="ttc" id="structarmnn_1_1_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Convolution2dDescriptor::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#l00440">Descriptors.hpp:440</a></div></div> |
| 594 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_a2ca654770a1890f15e3c7aab98e434a5"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#a2ca654770a1890f15e3c7aab98e434a5">armnn::LayerWithParameters::SerializeLayerParameters</a></div><div class="ttdeci">void SerializeLayerParameters(ParameterStringifyFunction &fn) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00022">LayerWithParameters.hpp:22</a></div></div> |
| 595 | <div class="ttc" id="classarmnn_1_1_i_output_slot_html_a9943775a364fc4ab53b85ac88f311886"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">armnn::IOutputSlot::GetTensorInfo</a></div><div class="ttdeci">virtual const TensorInfo & GetTensorInfo() const =0</div></div> |
| 596 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 597 | <div class="ttc" id="classarmnn_1_1_input_slot_html_a3153abb7c0c0a84629079b2fac7db54f"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#a3153abb7c0c0a84629079b2fac7db54f">armnn::InputSlot::GetConnection</a></div><div class="ttdeci">const IOutputSlot * GetConnection() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00199">Layer.hpp:199</a></div></div> |
| 598 | <div class="ttc" id="classarmnn_1_1_layer_with_parameters_html_ad32ac22bc72e28dfd6b466d143c8e262"><div class="ttname"><a href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">armnn::LayerWithParameters< Convolution2dDescriptor >::m_Param</a></div><div class="ttdeci">Convolution2dDescriptor m_Param</div><div class="ttdoc">The parameters for the layer (not including tensor-valued weights etc.). </div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters.hpp:50</a></div></div> |
| 599 | <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> |
| 600 | <div class="ttc" id="classarmnn_utils_1_1_data_layout_indexed_html"><div class="ttname"><a href="classarmnn_utils_1_1_data_layout_indexed.html">armnnUtils::DataLayoutIndexed</a></div><div class="ttdef"><b>Definition:</b> <a href="_data_layout_indexed_8hpp_source.html#l00017">DataLayoutIndexed.hpp:17</a></div></div> |
| 601 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 602 | <div class="ttc" id="classarmnn_1_1_layer_html_acf8b8e23bf647836592982f97088d375"><div class="ttname"><a href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">armnn::Layer::GetInputSlot</a></div><div class="ttdeci">const InputSlot & GetInputSlot(unsigned int index) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00310">Layer.hpp:310</a></div></div> |
| 603 | </div><!-- fragment --> |
| 604 | </div> |
| 605 | </div> |
| 606 | <a id="a8c8f543d7e9729362c266d12ec169966"></a> |
| 607 | <h2 class="memtitle"><span class="permalink"><a href="#a8c8f543d7e9729362c266d12ec169966">◆ </a></span>ValidateTensorShapesFromInputs()</h2> |
| 608 | |
| 609 | <div class="memitem"> |
| 610 | <div class="memproto"> |
| 611 | <table class="mlabels"> |
| 612 | <tr> |
| 613 | <td class="mlabels-left"> |
| 614 | <table class="memname"> |
| 615 | <tr> |
| 616 | <td class="memname">void ValidateTensorShapesFromInputs </td> |
| 617 | <td>(</td> |
| 618 | <td class="paramname"></td><td>)</td> |
| 619 | <td></td> |
| 620 | </tr> |
| 621 | </table> |
| 622 | </td> |
| 623 | <td class="mlabels-right"> |
| 624 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 625 | </tr> |
| 626 | </table> |
| 627 | </div><div class="memdoc"> |
| 628 | <p>Check if the input tensor shape(s) will lead to a valid configuration of <a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a>. </p> |
| 629 | |
| 630 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#a84ff600212ba26e665de9b978ec896a4">Layer</a>.</p> |
| 631 | |
| 632 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8cpp_source.html#l00115">115</a> of file <a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a>.</p> |
| 633 | |
| 634 | <p class="reference">References <a class="el" href="_exceptions_8hpp_source.html#l00169">CHECK_LOCATION</a>, <a class="el" href="_layer_8hpp_source.html#l00199">InputSlot::GetConnection()</a>, <a class="el" href="_layer_8hpp_source.html#l00310">Layer::GetInputSlot()</a>, <a class="el" href="_layer_8hpp_source.html#l00312">Layer::GetOutputSlot()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">IOutputSlot::GetTensorInfo()</a>, <a class="el" href="_layer_8cpp_source.html#l00063">OutputSlot::GetTensorInfo()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00080">Convolution2dLayer::InferOutputShapes()</a>, <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer::m_Weight</a>, and <a class="el" href="_layer_8cpp_source.html#l00337">Layer::VerifyLayerConnections()</a>.</p> |
| 635 | <div class="fragment"><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> {</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="classarmnn_1_1_layer.html#a0607e36e88f38c34c71c663164b76776">VerifyLayerConnections</a>(1, <a class="code" href="_exceptions_8hpp.html#aa3be76aec4ce713822a5ea1ecbb7bc61">CHECK_LOCATION</a>());</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// check if we m_Weight data is not nullptr</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"Convolution2dLayer: Weights data should not be null."</span>);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <span class="keyword">auto</span> inferredShapes = <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>({</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">GetInputSlot</a>(0).<a class="code" href="classarmnn_1_1_input_slot.html#a3153abb7c0c0a84629079b2fac7db54f">GetConnection</a>()-><a class="code" href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(),</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->GetTensorInfo().GetShape() });</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  BOOST_ASSERT(inferredShapes.size() == 1);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  ConditionalThrowIfNotEqual<LayerValidationException>(</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="stringliteral">"Convolution2dLayer: TensorShape set on OutputSlot[0] does not match the inferred shape."</span>,</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  <a class="code" href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">GetOutputSlot</a>(0).<a class="code" href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">GetTensorInfo</a>().<a class="code" href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">GetShape</a>(),</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  inferredShapes[0]);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div><div class="ttc" id="classarmnn_1_1_i_output_slot_html_a9943775a364fc4ab53b85ac88f311886"><div class="ttname"><a href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">armnn::IOutputSlot::GetTensorInfo</a></div><div class="ttdeci">virtual const TensorInfo & GetTensorInfo() const =0</div></div> |
| 636 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::Convolution2dLayer::m_Weight</a></div><div class="ttdeci">std::unique_ptr< ScopedCpuTensorHandle > m_Weight</div><div class="ttdoc">A unique pointer to store Weight values. </div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8hpp_source.html#l00020">Convolution2dLayer.hpp:20</a></div></div> |
| 637 | <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> |
| 638 | <div class="ttc" id="classarmnn_1_1_input_slot_html_a3153abb7c0c0a84629079b2fac7db54f"><div class="ttname"><a href="classarmnn_1_1_input_slot.html#a3153abb7c0c0a84629079b2fac7db54f">armnn::InputSlot::GetConnection</a></div><div class="ttdeci">const IOutputSlot * GetConnection() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00199">Layer.hpp:199</a></div></div> |
| 639 | <div class="ttc" id="classarmnn_1_1_layer_html_a0607e36e88f38c34c71c663164b76776"><div class="ttname"><a href="classarmnn_1_1_layer.html#a0607e36e88f38c34c71c663164b76776">armnn::Layer::VerifyLayerConnections</a></div><div class="ttdeci">void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00337">Layer.cpp:337</a></div></div> |
| 640 | <div class="ttc" id="classarmnn_1_1_convolution2d_layer_html_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_convolution2d_layer.html#a65ca562c882ad619684445a1402f415a">armnn::Convolution2dLayer::InferOutputShapes</a></div><div class="ttdeci">std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override</div><div class="ttdef"><b>Definition:</b> <a href="_convolution2d_layer_8cpp_source.html#l00080">Convolution2dLayer.cpp:80</a></div></div> |
| 641 | <div class="ttc" id="classarmnn_1_1_tensor_info_html_a8b5d0f8a24e9d9238f412260a552acf8"><div class="ttname"><a href="classarmnn_1_1_tensor_info.html#a8b5d0f8a24e9d9238f412260a552acf8">armnn::TensorInfo::GetShape</a></div><div class="ttdeci">const TensorShape & GetShape() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00088">Tensor.hpp:88</a></div></div> |
| 642 | <div class="ttc" id="classarmnn_1_1_output_slot_html_ada2ad7d1caeeb4ef6195c8925fad6a65"><div class="ttname"><a href="classarmnn_1_1_output_slot.html#ada2ad7d1caeeb4ef6195c8925fad6a65">armnn::OutputSlot::GetTensorInfo</a></div><div class="ttdeci">const TensorInfo & GetTensorInfo() const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8cpp_source.html#l00063">Layer.cpp:63</a></div></div> |
| 643 | <div class="ttc" id="classarmnn_1_1_layer_html_a0e36688a43c35668d8db5257274c68fe"><div class="ttname"><a href="classarmnn_1_1_layer.html#a0e36688a43c35668d8db5257274c68fe">armnn::Layer::GetOutputSlot</a></div><div class="ttdeci">const OutputSlot & GetOutputSlot(unsigned int index=0) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00312">Layer.hpp:312</a></div></div> |
| 644 | <div class="ttc" id="classarmnn_1_1_layer_html_acf8b8e23bf647836592982f97088d375"><div class="ttname"><a href="classarmnn_1_1_layer.html#acf8b8e23bf647836592982f97088d375">armnn::Layer::GetInputSlot</a></div><div class="ttdeci">const InputSlot & GetInputSlot(unsigned int index) const override</div><div class="ttdef"><b>Definition:</b> <a href="_layer_8hpp_source.html#l00310">Layer.hpp:310</a></div></div> |
| 645 | </div><!-- fragment --> |
| 646 | </div> |
| 647 | </div> |
| 648 | <h2 class="groupheader">Member Data Documentation</h2> |
| 649 | <a id="a39925bc24d3afcfb322a46a5884fadb9"></a> |
| 650 | <h2 class="memtitle"><span class="permalink"><a href="#a39925bc24d3afcfb322a46a5884fadb9">◆ </a></span>m_Bias</h2> |
| 651 | |
| 652 | <div class="memitem"> |
| 653 | <div class="memproto"> |
| 654 | <table class="memname"> |
| 655 | <tr> |
| 656 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a>> m_Bias</td> |
| 657 | </tr> |
| 658 | </table> |
| 659 | </div><div class="memdoc"> |
| 660 | |
| 661 | <p>A unique pointer to store Bias values. </p> |
| 662 | |
| 663 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8hpp_source.html#l00022">22</a> of file <a class="el" href="_convolution2d_layer_8hpp_source.html">Convolution2dLayer.hpp</a>.</p> |
| 664 | |
| 665 | <p class="reference">Referenced by <a class="el" href="_convolution2d_layer_8cpp_source.html#l00139">Convolution2dLayer::Accept()</a>, <a class="el" href="_layer_release_constant_data_test_8cpp_source.html#l00075">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00066">Convolution2dLayer::Clone()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00049">Convolution2dLayer::CreateWorkload()</a>, and <a class="el" href="_convolution2d_layer_8cpp_source.html#l00134">Convolution2dLayer::GetConstantTensorsByRef()</a>.</p> |
| 666 | |
| 667 | </div> |
| 668 | </div> |
| 669 | <a id="a2664044e28e69309ea08ef385fe53903"></a> |
| 670 | <h2 class="memtitle"><span class="permalink"><a href="#a2664044e28e69309ea08ef385fe53903">◆ </a></span>m_Weight</h2> |
| 671 | |
| 672 | <div class="memitem"> |
| 673 | <div class="memproto"> |
| 674 | <table class="memname"> |
| 675 | <tr> |
| 676 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a>> m_Weight</td> |
| 677 | </tr> |
| 678 | </table> |
| 679 | </div><div class="memdoc"> |
| 680 | |
| 681 | <p>A unique pointer to store Weight values. </p> |
| 682 | |
| 683 | <p class="definition">Definition at line <a class="el" href="_convolution2d_layer_8hpp_source.html#l00020">20</a> of file <a class="el" href="_convolution2d_layer_8hpp_source.html">Convolution2dLayer.hpp</a>.</p> |
| 684 | |
| 685 | <p class="reference">Referenced by <a class="el" href="_convolution2d_layer_8cpp_source.html#l00139">Convolution2dLayer::Accept()</a>, <a class="el" href="_network_8cpp_source.html#l01023">Network::AddConcatLayer()</a>, <a class="el" href="_optimizer_tests_8cpp_source.html#l00530">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00066">Convolution2dLayer::Clone()</a>, <a class="el" href="_optimizer_tests_8cpp_source.html#l00249">CreateConvolution2dGraph()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00049">Convolution2dLayer::CreateWorkload()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00134">Convolution2dLayer::GetConstantTensorsByRef()</a>, <a class="el" href="_convolution2d_layer_8cpp_source.html#l00029">Convolution2dLayer::SerializeLayerParameters()</a>, and <a class="el" href="_convolution2d_layer_8cpp_source.html#l00115">Convolution2dLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 686 | |
| 687 | </div> |
| 688 | </div> |
| 689 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 690 | <li>src/armnn/layers/<a class="el" href="_convolution2d_layer_8hpp_source.html">Convolution2dLayer.hpp</a></li> |
| 691 | <li>src/armnn/layers/<a class="el" href="_convolution2d_layer_8cpp_source.html">Convolution2dLayer.cpp</a></li> |
| 692 | </ul> |
| 693 | </div><!-- contents --> |
| 694 | </div><!-- doc-content --> |
| 695 | <!-- start footer part --> |
| 696 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 697 | <ul> |
| 698 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_convolution2d_layer.html">Convolution2dLayer</a></li> |
| 699 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 700 | <a href="http://www.doxygen.org/index.html"> |
| 701 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 702 | </ul> |
| 703 | </div> |
| 704 | </body> |
| 705 | </html> |