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: FullyConnectedLayer 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_fully_connected_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_fully_connected_layer-members.html">List of all members</a> </div> |
| 88 | <div class="headertitle"> |
| 89 | <div class="title">FullyConnectedLayer Class Reference</div> </div> |
| 90 | </div><!--header--> |
| 91 | <div class="contents"> |
| 92 | |
| 93 | <p>This layer represents a fully connected operation. |
| 94 | <a href="classarmnn_1_1_fully_connected_layer.html#details">More...</a></p> |
| 95 | |
| 96 | <p><code>#include <<a class="el" href="_fully_connected_layer_8hpp_source.html">FullyConnectedLayer.hpp</a>></code></p> |
| 97 | <div class="dynheader"> |
| 98 | Inheritance diagram for FullyConnectedLayer:</div> |
| 99 | <div class="dyncontent"> |
| 100 | <div class="center"> |
| 101 | <img src="classarmnn_1_1_fully_connected_layer.png" usemap="#FullyConnectedLayer_map" alt=""/> |
| 102 | <map id="FullyConnectedLayer_map" name="FullyConnectedLayer_map"> |
| 103 | <area href="classarmnn_1_1_layer_with_parameters.html" alt="LayerWithParameters< FullyConnectedDescriptor >" shape="rect" coords="0,112,305,136"/> |
| 104 | <area href="classarmnn_1_1_layer.html" alt="Layer" shape="rect" coords="0,56,305,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,305,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_fully_connected_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:ae23412fdfc6726dc1823a18f5e84f8a9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_fully_connected_layer.html#ae23412fdfc6726dc1823a18f5e84f8a9">Clone</a> (<a class="el" href="classarmnn_1_1_graph.html">Graph</a> &graph) const override</td></tr> |
| 114 | <tr class="separator:ae23412fdfc6726dc1823a18f5e84f8a9"><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_fully_connected_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_fully_connected_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_fully_connected_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="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< FullyConnectedDescriptor ></a></td></tr> |
| 122 | <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_fully_connected_descriptor.html">FullyConnectedDescriptor</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#a502c06a1b13e6d90a6cbf47c081f1444">GetParameters</a> () const</td></tr> |
| 123 | <tr class="separator:a502c06a1b13e6d90a6cbf47c081f1444 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <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> |
| 125 | <tr class="separator:a2ca654770a1890f15e3c7aab98e434a5 inherit pub_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <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> |
| 127 | <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> |
| 128 | <tr class="separator:a5e5ae420d199a0bccae5139d38c30205 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <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> |
| 130 | <tr class="separator:a395d070748c18d903705799360088e80 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <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> |
| 132 | <tr class="separator:a9a97cb6d32661a57fc33bd29b8e41ff4 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <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> |
| 134 | <tr class="separator:af2c0edc7ea62a8baaec4d3d9b2b09256 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | <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> |
| 136 | <tr class="separator:a1d4e05c17647232c514cfe58ca80744a inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 137 | <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> |
| 138 | <tr class="separator:af5f530544d09a44d726f24702b67b35b inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <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> |
| 140 | <tr class="separator:a98cdff4e0b45f4c80bfcedaf926e16e0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 141 | <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> |
| 142 | <tr class="separator:af6cb8de21ef0da269ec9b67755ae92a0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 143 | <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> |
| 144 | <tr class="separator:a9752e12d6b79e18da1a25f76159d2a72 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 145 | <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> |
| 146 | <tr class="separator:a817d4be6dd88f532d36f51748ec14185 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <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> |
| 148 | <tr class="separator:a55f76d98fcd2f5cdac3e2b14536cb7ab inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 149 | <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> |
| 150 | <tr class="separator:a22485f444124128940e798a42f0b76d9 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <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> |
| 152 | <tr class="separator:aac329cade047e952621b59a51a5d5f49 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | <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> |
| 154 | <tr class="separator:af97a07195a67a638605b3c325763c2dd inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 155 | <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> |
| 156 | <tr class="separator:aaef29472862381822654ab6cbf7cba2a inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 157 | <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> |
| 158 | <tr class="separator:aea909c7327109228ef618d459015def3 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 159 | <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> |
| 160 | <tr class="separator:afdb1d37740e7a083b625d669588b6a0e inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 161 | <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> |
| 162 | <tr class="separator:a3f6ad59212fa8a47c9265162fff8a274 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 163 | <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> |
| 164 | <tr class="separator:a3ff62126ec713a2708e5fbaa6146a7de inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 165 | <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> |
| 166 | <tr class="separator:a0607e36e88f38c34c71c663164b76776 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 167 | <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> |
| 168 | <tr class="separator:a339bef86bc340c3d1393ed83950fe8af inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 169 | <tr class="memitem:a386acff5f8430245239ce58d00ba7576 inherit pub_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename Op > </td></tr> |
| 170 | <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> |
| 171 | <tr class="separator:a386acff5f8430245239ce58d00ba7576 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <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> |
| 173 | <tr class="separator:a7ddf0cf6f620d59c10e63495ace795d0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <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> |
| 175 | <tr class="separator:abc0660dc440c8a285b456c9ef6383c26 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <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> |
| 177 | <tr class="separator:a1594bddc87d6477df300317658f566bb inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <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> |
| 179 | <tr class="separator:acf8b8e23bf647836592982f97088d375 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <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> |
| 181 | <tr class="separator:a1b50eb1358cdf382f4bc3fc8849f8e8e inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <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> |
| 183 | <tr class="separator:a0e36688a43c35668d8db5257274c68fe inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <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> |
| 185 | <tr class="separator:abbd71844785bb2f00a81baca30ea5ff0 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <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> |
| 187 | <tr class="separator:a6d1024208b672a87ef2c1bfaf93d2b9f inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <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> |
| 189 | <tr class="separator:a8dc12f0ee5b232d397bd18ced1a72a64 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <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> |
| 191 | <tr class="separator:a339248d89d5e21534ecf74b4393ed4d2 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <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> |
| 193 | <tr class="separator:a5e5520194ea4042fe07b0bf53c28f634 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <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> |
| 195 | <tr class="separator:a72b18e4c5a403bc3fe2fecf20135c8d6 inherit pub_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | </table><table class="memberdecls"> |
| 197 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a> |
| 198 | Public Attributes</h2></td></tr> |
| 199 | <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_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a></td></tr> |
| 200 | <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> |
| 201 | <tr class="separator:a2664044e28e69309ea08ef385fe53903"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <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_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a></td></tr> |
| 203 | <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> |
| 204 | <tr class="separator:a39925bc24d3afcfb322a46a5884fadb9"><td class="memSeparator" colspan="2"> </td></tr> |
| 205 | </table><table class="memberdecls"> |
| 206 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 207 | Protected Member Functions</h2></td></tr> |
| 208 | <tr class="memitem:a88ae76d1f14ba0eaf81701eb38e3682a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_fully_connected_layer.html#a88ae76d1f14ba0eaf81701eb38e3682a">FullyConnectedLayer</a> (const <a class="el" href="structarmnn_1_1_fully_connected_descriptor.html">FullyConnectedDescriptor</a> &param, const char *name)</td></tr> |
| 209 | <tr class="separator:a88ae76d1f14ba0eaf81701eb38e3682a"><td class="memSeparator" colspan="2"> </td></tr> |
| 210 | <tr class="memitem:a9155d2ec7631b99587504b36ede2412a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_fully_connected_layer.html#a9155d2ec7631b99587504b36ede2412a">~FullyConnectedLayer</a> ()=default</td></tr> |
| 211 | <tr class="memdesc:a9155d2ec7631b99587504b36ede2412a"><td class="mdescLeft"> </td><td class="mdescRight">Default destructor. <a href="#a9155d2ec7631b99587504b36ede2412a">More...</a><br /></td></tr> |
| 212 | <tr class="separator:a9155d2ec7631b99587504b36ede2412a"><td class="memSeparator" colspan="2"> </td></tr> |
| 213 | <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_fully_connected_layer.html#abe659a5afa7523f5dbc04bcba9b31f1a">GetConstantTensorsByRef</a> () override</td></tr> |
| 214 | <tr class="separator:abe659a5afa7523f5dbc04bcba9b31f1a"><td class="memSeparator" colspan="2"> </td></tr> |
| 215 | <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< FullyConnectedDescriptor ></a></td></tr> |
| 216 | <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_fully_connected_descriptor.html">FullyConnectedDescriptor</a> &param, const char *name)</td></tr> |
| 217 | <tr class="separator:a1f5a1d629b1ef52a0d8e0214a0fb51a1 inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 218 | <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> |
| 219 | <tr class="separator:adc0f578e075f63379058f2d2641a509a inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 220 | <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> |
| 221 | <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> |
| 222 | <tr class="separator:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 223 | <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> |
| 224 | <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> |
| 225 | <tr class="separator:aacfb208d750bdfce1bbd423e5cac76e2 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 226 | <tr class="memitem:afc3239f5fc116259bf5451964e803646 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 227 | <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> |
| 228 | <tr class="separator:afc3239f5fc116259bf5451964e803646 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 229 | <tr class="memitem:a499ca5a94d0174ed21786b6994b2cd8c inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 230 | <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> |
| 231 | <tr class="separator:a499ca5a94d0174ed21786b6994b2cd8c inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 232 | <tr class="memitem:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename QueueDescriptor > </td></tr> |
| 233 | <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> |
| 234 | <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> |
| 235 | <tr class="separator:a30a858b2b26d651a066537e499fbf40d inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 236 | <tr class="memitem:aa10fd205c3f5469a9ecb2aa2a3ffd101 inherit pro_methods_classarmnn_1_1_layer"><td class="memTemplParams" colspan="2">template<typename LayerType , typename ... Params> </td></tr> |
| 237 | <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> |
| 238 | <tr class="separator:aa10fd205c3f5469a9ecb2aa2a3ffd101 inherit pro_methods_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 239 | <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> |
| 240 | <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> |
| 241 | <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> |
| 242 | <tr class="separator:a8c7faf37c1d965431aaa02ae934d67ee inherit pro_methods_classarmnn_1_1_i_connectable_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 243 | </table><table class="memberdecls"> |
| 244 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 245 | Additional Inherited Members</h2></td></tr> |
| 246 | <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< FullyConnectedDescriptor ></a></td></tr> |
| 247 | <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_fully_connected_descriptor.html">FullyConnectedDescriptor</a></td></tr> |
| 248 | <tr class="separator:a6b1bd3d5380a0ce8ecb71ddb0261c3fa inherit pub_types_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 249 | <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> |
| 250 | <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> |
| 251 | <tr class="separator:a585d59ec610af46a76487fd6c1c55ac1 inherit pro_types_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 252 | <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< FullyConnectedDescriptor ></a></td></tr> |
| 253 | <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_fully_connected_descriptor.html">FullyConnectedDescriptor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a></td></tr> |
| 254 | <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> |
| 255 | <tr class="separator:ad32ac22bc72e28dfd6b466d143c8e262 inherit pro_attribs_classarmnn_1_1_layer_with_parameters"><td class="memSeparator" colspan="2"> </td></tr> |
| 256 | <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> |
| 257 | <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> |
| 258 | <tr class="separator:aa44d91037bba52ba0dec6577509ade3b inherit pro_attribs_classarmnn_1_1_layer"><td class="memSeparator" colspan="2"> </td></tr> |
| 259 | </table> |
| 260 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 261 | <div class="textblock"><p>This layer represents a fully connected operation. </p> |
| 262 | |
| 263 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8hpp_source.html#l00015">15</a> of file <a class="el" href="_fully_connected_layer_8hpp_source.html">FullyConnectedLayer.hpp</a>.</p> |
| 264 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 265 | <a id="a88ae76d1f14ba0eaf81701eb38e3682a"></a> |
| 266 | <h2 class="memtitle"><span class="permalink"><a href="#a88ae76d1f14ba0eaf81701eb38e3682a">◆ </a></span>FullyConnectedLayer()</h2> |
| 267 | |
| 268 | <div class="memitem"> |
| 269 | <div class="memproto"> |
| 270 | <table class="mlabels"> |
| 271 | <tr> |
| 272 | <td class="mlabels-left"> |
| 273 | <table class="memname"> |
| 274 | <tr> |
| 275 | <td class="memname"><a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a> </td> |
| 276 | <td>(</td> |
| 277 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_fully_connected_descriptor.html">FullyConnectedDescriptor</a> & </td> |
| 278 | <td class="paramname"><em>param</em>, </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td class="paramkey"></td> |
| 282 | <td></td> |
| 283 | <td class="paramtype">const char * </td> |
| 284 | <td class="paramname"><em>name</em> </td> |
| 285 | </tr> |
| 286 | <tr> |
| 287 | <td></td> |
| 288 | <td>)</td> |
| 289 | <td></td><td></td> |
| 290 | </tr> |
| 291 | </table> |
| 292 | </td> |
| 293 | <td class="mlabels-right"> |
| 294 | <span class="mlabels"><span class="mlabel">protected</span></span> </td> |
| 295 | </tr> |
| 296 | </table> |
| 297 | </div><div class="memdoc"> |
| 298 | <p>Constructor to create a <a class="el" href="classarmnn_1_1_fully_connected_layer.html" title="This layer represents a fully connected operation. ">FullyConnectedLayer</a>. </p><dl class="params"><dt>Parameters</dt><dd> |
| 299 | <table class="params"> |
| 300 | <tr><td class="paramdir">[in]</td><td class="paramname">param</td><td><a class="el" href="structarmnn_1_1_fully_connected_descriptor.html" title="A FullyConnectedDescriptor for the FullyConnectedLayer. ">FullyConnectedDescriptor</a> to configure the fully connected operation. </td></tr> |
| 301 | <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> |
| 302 | </table> |
| 303 | </dd> |
| 304 | </dl> |
| 305 | |
| 306 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00017">17</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 307 | <div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>  : <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a1f5a1d629b1ef52a0d8e0214a0fb51a1">LayerWithParameters</a>(1, 1, <a class="code" href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4acab78faff25393e9defd1911cb58133e">LayerType::FullyConnected</a>, param, name)</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> }</div><div class="ttc" id="namespacearmnn_html_a56943a0946e5f15e5e58054b8e7a04a4acab78faff25393e9defd1911cb58133e"><div class="ttname"><a href="namespacearmnn.html#a56943a0946e5f15e5e58054b8e7a04a4acab78faff25393e9defd1911cb58133e">armnn::LayerType::FullyConnected</a></div></div> |
| 308 | <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< FullyConnectedDescriptor >::LayerWithParameters</a></div><div class="ttdeci">LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const FullyConnectedDescriptor &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> |
| 309 | </div><!-- fragment --> |
| 310 | </div> |
| 311 | </div> |
| 312 | <a id="a9155d2ec7631b99587504b36ede2412a"></a> |
| 313 | <h2 class="memtitle"><span class="permalink"><a href="#a9155d2ec7631b99587504b36ede2412a">◆ </a></span>~FullyConnectedLayer()</h2> |
| 314 | |
| 315 | <div class="memitem"> |
| 316 | <div class="memproto"> |
| 317 | <table class="mlabels"> |
| 318 | <tr> |
| 319 | <td class="mlabels-left"> |
| 320 | <table class="memname"> |
| 321 | <tr> |
| 322 | <td class="memname">~<a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a> </td> |
| 323 | <td>(</td> |
| 324 | <td class="paramname"></td><td>)</td> |
| 325 | <td></td> |
| 326 | </tr> |
| 327 | </table> |
| 328 | </td> |
| 329 | <td class="mlabels-right"> |
| 330 | <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">default</span></span> </td> |
| 331 | </tr> |
| 332 | </table> |
| 333 | </div><div class="memdoc"> |
| 334 | |
| 335 | <p>Default destructor. </p> |
| 336 | |
| 337 | </div> |
| 338 | </div> |
| 339 | <h2 class="groupheader">Member Function Documentation</h2> |
| 340 | <a id="a75a50f464326fefa605ea84ae2c9be85"></a> |
| 341 | <h2 class="memtitle"><span class="permalink"><a href="#a75a50f464326fefa605ea84ae2c9be85">◆ </a></span>Accept()</h2> |
| 342 | |
| 343 | <div class="memitem"> |
| 344 | <div class="memproto"> |
| 345 | <table class="mlabels"> |
| 346 | <tr> |
| 347 | <td class="mlabels-left"> |
| 348 | <table class="memname"> |
| 349 | <tr> |
| 350 | <td class="memname">void Accept </td> |
| 351 | <td>(</td> |
| 352 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_layer_visitor.html">ILayerVisitor</a> & </td> |
| 353 | <td class="paramname"><em>visitor</em></td><td>)</td> |
| 354 | <td> const</td> |
| 355 | </tr> |
| 356 | </table> |
| 357 | </td> |
| 358 | <td class="mlabels-right"> |
| 359 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 360 | </tr> |
| 361 | </table> |
| 362 | </div><div class="memdoc"> |
| 363 | |
| 364 | <p>Implements <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a8c9198a992b02e61a6777329d487dde3">IConnectableLayer</a>.</p> |
| 365 | |
| 366 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00088">88</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 367 | |
| 368 | <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< FullyConnectedDescriptor >::GetParameters()</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer::m_Bias</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer::m_Weight</a>, and <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab93a48970564c6eabbc982a2116c1262">ILayerVisitor::VisitFullyConnectedLayer()</a>.</p> |
| 369 | <div class="fragment"><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  ConstTensor weightsTensor(<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->GetTensorInfo(), <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->Map(<span class="keyword">true</span>));</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  Optional<ConstTensor> optionalBiasTensor = EmptyOptional();</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> </div><div class="line"><a name="l00093"></a><span class="lineno"> 93</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="l00094"></a><span class="lineno"> 94</span>  {</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  ConstTensor biasTensor(<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>->GetTensorInfo(), <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>->GetConstTensor<<span class="keywordtype">void</span>>());</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  optionalBiasTensor = Optional<ConstTensor>(biasTensor);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  }</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  visitor.VisitFullyConnectedLayer(<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="l00100"></a><span class="lineno"> 100</span> }</div><div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer.hpp:19</a></div></div> |
| 370 | <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> |
| 371 | <div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer.hpp:21</a></div></div> |
| 372 | <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< FullyConnectedDescriptor >::GetParameters</a></div><div class="ttdeci">const FullyConnectedDescriptor & GetParameters() const</div><div class="ttdef"><b>Definition:</b> <a href="_layer_with_parameters_8hpp_source.html#l00018">LayerWithParameters.hpp:18</a></div></div> |
| 373 | </div><!-- fragment --> |
| 374 | </div> |
| 375 | </div> |
| 376 | <a id="ae23412fdfc6726dc1823a18f5e84f8a9"></a> |
| 377 | <h2 class="memtitle"><span class="permalink"><a href="#ae23412fdfc6726dc1823a18f5e84f8a9">◆ </a></span>Clone()</h2> |
| 378 | |
| 379 | <div class="memitem"> |
| 380 | <div class="memproto"> |
| 381 | <table class="mlabels"> |
| 382 | <tr> |
| 383 | <td class="mlabels-left"> |
| 384 | <table class="memname"> |
| 385 | <tr> |
| 386 | <td class="memname"><a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a> * Clone </td> |
| 387 | <td>(</td> |
| 388 | <td class="paramtype"><a class="el" href="classarmnn_1_1_graph.html">Graph</a> & </td> |
| 389 | <td class="paramname"><em>graph</em></td><td>)</td> |
| 390 | <td> const</td> |
| 391 | </tr> |
| 392 | </table> |
| 393 | </td> |
| 394 | <td class="mlabels-right"> |
| 395 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 396 | </tr> |
| 397 | </table> |
| 398 | </div><div class="memdoc"> |
| 399 | <p>Creates a dynamically-allocated copy of this layer. </p><dl class="params"><dt>Parameters</dt><dd> |
| 400 | <table class="params"> |
| 401 | <tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td>The graph into which this layer is being cloned. </td></tr> |
| 402 | </table> |
| 403 | </dd> |
| 404 | </dl> |
| 405 | |
| 406 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#ae89ff455503aa106d00bf34103d2f2e0">Layer</a>.</p> |
| 407 | |
| 408 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00038">38</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 409 | |
| 410 | <p class="reference">References <a class="el" href="_layer_8hpp_source.html#l00305">Layer::GetName()</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer::m_Bias</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< FullyConnectedDescriptor >::m_Param</a>, and <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer::m_Weight</a>.</p> |
| 411 | <div class="fragment"><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">auto</span> layer = CloneBase<FullyConnectedLayer>(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="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  layer->m_Weight = <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> ? std::make_unique<ScopedCpuTensorHandle>(*m_Weight) : <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordflow">if</span> (layer->m_Param.m_BiasEnabled)</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  {</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  layer->m_Bias = <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a> ? std::make_unique<ScopedCpuTensorHandle>(*m_Bias) : <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  }</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordflow">return</span> std::move(layer);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> }</div><div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer.hpp:19</a></div></div> |
| 412 | <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> |
| 413 | <div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer.hpp:21</a></div></div> |
| 414 | <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< FullyConnectedDescriptor >::m_Param</a></div><div class="ttdeci">FullyConnectedDescriptor 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> |
| 415 | </div><!-- fragment --> |
| 416 | </div> |
| 417 | </div> |
| 418 | <a id="adfa912d0c4c6c00f1af2cbfa799572b7"></a> |
| 419 | <h2 class="memtitle"><span class="permalink"><a href="#adfa912d0c4c6c00f1af2cbfa799572b7">◆ </a></span>CreateWorkload()</h2> |
| 420 | |
| 421 | <div class="memitem"> |
| 422 | <div class="memproto"> |
| 423 | <table class="mlabels"> |
| 424 | <tr> |
| 425 | <td class="mlabels-left"> |
| 426 | <table class="memname"> |
| 427 | <tr> |
| 428 | <td class="memname">std::unique_ptr< <a class="el" href="classarmnn_1_1_i_workload.html">IWorkload</a> > CreateWorkload </td> |
| 429 | <td>(</td> |
| 430 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_workload_factory.html">IWorkloadFactory</a> & </td> |
| 431 | <td class="paramname"><em>factory</em></td><td>)</td> |
| 432 | <td> const</td> |
| 433 | </tr> |
| 434 | </table> |
| 435 | </td> |
| 436 | <td class="mlabels-right"> |
| 437 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 438 | </tr> |
| 439 | </table> |
| 440 | </div><div class="memdoc"> |
| 441 | <p>Makes a workload for the FullyConnected type. </p><dl class="params"><dt>Parameters</dt><dd> |
| 442 | <table class="params"> |
| 443 | <tr><td class="paramdir">[in]</td><td class="paramname">graph</td><td>The graph where this layer can be found. </td></tr> |
| 444 | <tr><td class="paramdir">[in]</td><td class="paramname">factory</td><td>The workload factory which will create the workload. </td></tr> |
| 445 | </table> |
| 446 | </dd> |
| 447 | </dl> |
| 448 | <dl class="section return"><dt>Returns</dt><dd>A pointer to the created workload, or nullptr if not created. </dd></dl> |
| 449 | |
| 450 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#a08d1e10a45f15cd0bd02557be35a3864">Layer</a>.</p> |
| 451 | |
| 452 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00022">22</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 453 | |
| 454 | <p class="reference">References <a class="el" href="_workload_factory_8cpp_source.html#l01208">IWorkloadFactory::CreateFullyConnected()</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer::m_Bias</a>, <a class="el" href="_workload_data_8hpp_source.html#l00150">FullyConnectedQueueDescriptor::m_Bias</a>, <a class="el" href="_descriptors_8hpp_source.html#l00386">FullyConnectedDescriptor::m_BiasEnabled</a>, <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< FullyConnectedDescriptor >::m_Param</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer::m_Weight</a>, <a class="el" href="_workload_data_8hpp_source.html#l00149">FullyConnectedQueueDescriptor::m_Weight</a>, and <a class="el" href="_layer_with_parameters_8hpp_source.html#l00043">LayerWithParameters< FullyConnectedDescriptor >::PrepInfoAndDesc()</a>.</p> |
| 455 | <div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="comment">// on this level constant data should not be released..</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"FullyConnectedLayer: Weights data should not be null."</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>  FullyConnectedQueueDescriptor descriptor;</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  descriptor.m_Weight = <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>.get();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</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_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>)</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"FullyConnectedLayer: Bias data should not be null."</span>);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  descriptor.m_Bias = <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>.get();</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  }</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">return</span> factory.CreateFullyConnected(descriptor, <a class="code" href="classarmnn_1_1_layer_with_parameters.html#a30a858b2b26d651a066537e499fbf40d">PrepInfoAndDesc</a>(descriptor));</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> }</div><div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer.hpp:19</a></div></div> |
| 456 | <div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer.hpp:21</a></div></div> |
| 457 | <div class="ttc" id="structarmnn_1_1_fully_connected_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::FullyConnectedDescriptor::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#l00386">Descriptors.hpp:386</a></div></div> |
| 458 | <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< FullyConnectedDescriptor >::m_Param</a></div><div class="ttdeci">FullyConnectedDescriptor 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> |
| 459 | <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< FullyConnectedDescriptor >::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> |
| 460 | </div><!-- fragment --> |
| 461 | </div> |
| 462 | </div> |
| 463 | <a id="abe659a5afa7523f5dbc04bcba9b31f1a"></a> |
| 464 | <h2 class="memtitle"><span class="permalink"><a href="#abe659a5afa7523f5dbc04bcba9b31f1a">◆ </a></span>GetConstantTensorsByRef()</h2> |
| 465 | |
| 466 | <div class="memitem"> |
| 467 | <div class="memproto"> |
| 468 | <table class="mlabels"> |
| 469 | <tr> |
| 470 | <td class="mlabels-left"> |
| 471 | <table class="memname"> |
| 472 | <tr> |
| 473 | <td class="memname"><a class="el" href="classarmnn_1_1_layer.html#a585d59ec610af46a76487fd6c1c55ac1">Layer::ConstantTensors</a> GetConstantTensorsByRef </td> |
| 474 | <td>(</td> |
| 475 | <td class="paramname"></td><td>)</td> |
| 476 | <td></td> |
| 477 | </tr> |
| 478 | </table> |
| 479 | </td> |
| 480 | <td class="mlabels-right"> |
| 481 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> |
| 482 | </tr> |
| 483 | </table> |
| 484 | </div><div class="memdoc"> |
| 485 | <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> |
| 486 | |
| 487 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_layer.html#afbeac2d77ecaadc3e303a163b4146961">Layer</a>.</p> |
| 488 | |
| 489 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00083">83</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 490 | |
| 491 | <p class="reference">References <a class="el" href="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer::m_Bias</a>, and <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer::m_Weight</a>.</p> |
| 492 | <div class="fragment"><div class="line"><a name="l00084"></a><span class="lineno"> 84</span> {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> {<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>, <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">m_Bias</a>};</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }</div><div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer.hpp:19</a></div></div> |
| 493 | <div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a39925bc24d3afcfb322a46a5884fadb9"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a39925bc24d3afcfb322a46a5884fadb9">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00021">FullyConnectedLayer.hpp:21</a></div></div> |
| 494 | </div><!-- fragment --> |
| 495 | </div> |
| 496 | </div> |
| 497 | <a id="a65ca562c882ad619684445a1402f415a"></a> |
| 498 | <h2 class="memtitle"><span class="permalink"><a href="#a65ca562c882ad619684445a1402f415a">◆ </a></span>InferOutputShapes()</h2> |
| 499 | |
| 500 | <div class="memitem"> |
| 501 | <div class="memproto"> |
| 502 | <table class="mlabels"> |
| 503 | <tr> |
| 504 | <td class="mlabels-left"> |
| 505 | <table class="memname"> |
| 506 | <tr> |
| 507 | <td class="memname">std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > InferOutputShapes </td> |
| 508 | <td>(</td> |
| 509 | <td class="paramtype">const std::vector< <a class="el" href="classarmnn_1_1_tensor_shape.html">TensorShape</a> > & </td> |
| 510 | <td class="paramname"><em>inputShapes</em></td><td>)</td> |
| 511 | <td> const</td> |
| 512 | </tr> |
| 513 | </table> |
| 514 | </td> |
| 515 | <td class="mlabels-right"> |
| 516 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 517 | </tr> |
| 518 | </table> |
| 519 | </div><div class="memdoc"> |
| 520 | <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> |
| 521 | <table class="params"> |
| 522 | <tr><td class="paramdir">[in]</td><td class="paramname">inputShapes</td><td>The input shapes layer has. </td></tr> |
| 523 | </table> |
| 524 | </dd> |
| 525 | </dl> |
| 526 | <dl class="section return"><dt>Returns</dt><dd>A vector to the inferred output shape. </dd></dl> |
| 527 | |
| 528 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_layer.html#a65ca562c882ad619684445a1402f415a">Layer</a>.</p> |
| 529 | |
| 530 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00051">51</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 531 | |
| 532 | <p class="reference">References <a class="el" href="_layer_with_parameters_8hpp_source.html#l00050">LayerWithParameters< FullyConnectedDescriptor >::m_Param</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00388">FullyConnectedDescriptor::m_TransposeWeightMatrix</a>.</p> |
| 533 | |
| 534 | <p class="reference">Referenced by <a class="el" href="_fully_connected_layer_8cpp_source.html#l00064">FullyConnectedLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 535 | <div class="fragment"><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  BOOST_ASSERT(inputShapes.size() == 2);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keyword">const</span> TensorShape& inputShape = inputShapes[0];</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keyword">const</span> TensorShape weightShape = inputShapes[1];</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="comment">// Output for FC is [1, w[1]].</span></div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> batches = inputShape[0];</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dimIdx = <a class="code" href="classarmnn_1_1_layer_with_parameters.html#ad32ac22bc72e28dfd6b466d143c8e262">m_Param</a>.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#a281fcaec86e17c97f7b8402633f6b55a">m_TransposeWeightMatrix</a> ? 0 : 1;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordflow">return</span> std::vector<TensorShape>({ TensorShape({batches, weightShape[dimIdx]})});</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> }</div><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< FullyConnectedDescriptor >::m_Param</a></div><div class="ttdeci">FullyConnectedDescriptor 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> |
| 536 | <div class="ttc" id="structarmnn_1_1_fully_connected_descriptor_html_a281fcaec86e17c97f7b8402633f6b55a"><div class="ttname"><a href="structarmnn_1_1_fully_connected_descriptor.html#a281fcaec86e17c97f7b8402633f6b55a">armnn::FullyConnectedDescriptor::m_TransposeWeightMatrix</a></div><div class="ttdeci">bool m_TransposeWeightMatrix</div><div class="ttdoc">Enable/disable transpose weight matrix. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00388">Descriptors.hpp:388</a></div></div> |
| 537 | </div><!-- fragment --> |
| 538 | </div> |
| 539 | </div> |
| 540 | <a id="a8c8f543d7e9729362c266d12ec169966"></a> |
| 541 | <h2 class="memtitle"><span class="permalink"><a href="#a8c8f543d7e9729362c266d12ec169966">◆ </a></span>ValidateTensorShapesFromInputs()</h2> |
| 542 | |
| 543 | <div class="memitem"> |
| 544 | <div class="memproto"> |
| 545 | <table class="mlabels"> |
| 546 | <tr> |
| 547 | <td class="mlabels-left"> |
| 548 | <table class="memname"> |
| 549 | <tr> |
| 550 | <td class="memname">void ValidateTensorShapesFromInputs </td> |
| 551 | <td>(</td> |
| 552 | <td class="paramname"></td><td>)</td> |
| 553 | <td></td> |
| 554 | </tr> |
| 555 | </table> |
| 556 | </td> |
| 557 | <td class="mlabels-right"> |
| 558 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 559 | </tr> |
| 560 | </table> |
| 561 | </div><div class="memdoc"> |
| 562 | <p>Check if the input tensor shape(s) will lead to a valid configuration of <a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a>. </p> |
| 563 | |
| 564 | <p>Implements <a class="el" href="classarmnn_1_1_layer.html#a84ff600212ba26e665de9b978ec896a4">Layer</a>.</p> |
| 565 | |
| 566 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8cpp_source.html#l00064">64</a> of file <a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a>.</p> |
| 567 | |
| 568 | <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="_fully_connected_layer_8cpp_source.html#l00051">FullyConnectedLayer::InferOutputShapes()</a>, <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer::m_Weight</a>, and <a class="el" href="_layer_8cpp_source.html#l00337">Layer::VerifyLayerConnections()</a>.</p> |
| 569 | <div class="fragment"><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> {</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</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="l00067"></a><span class="lineno"> 67</span> </div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="comment">// check if we m_Weight data is not nullptr</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  BOOST_ASSERT_MSG(<a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a> != <span class="keyword">nullptr</span>, <span class="stringliteral">"FullyConnectedLayer: Weights data should not be null."</span>);</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keyword">auto</span> inferredShapes = <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a65ca562c882ad619684445a1402f415a">InferOutputShapes</a>({</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</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="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">m_Weight</a>->GetTensorInfo().GetShape() });</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  BOOST_ASSERT(inferredShapes.size() == 1);</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>  ConditionalThrowIfNotEqual<LayerValidationException>(</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="stringliteral">"FullyConnectedLayer: TensorShape set on OutputSlot[0] does not match the inferred shape."</span>,</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</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="l00080"></a><span class="lineno"> 80</span>  inferredShapes[0]);</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span> }</div><div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a2664044e28e69309ea08ef385fe53903"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a2664044e28e69309ea08ef385fe53903">armnn::FullyConnectedLayer::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="_fully_connected_layer_8hpp_source.html#l00019">FullyConnectedLayer.hpp:19</a></div></div> |
| 570 | <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> |
| 571 | <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> |
| 572 | <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> |
| 573 | <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> |
| 574 | <div class="ttc" id="classarmnn_1_1_fully_connected_layer_html_a65ca562c882ad619684445a1402f415a"><div class="ttname"><a href="classarmnn_1_1_fully_connected_layer.html#a65ca562c882ad619684445a1402f415a">armnn::FullyConnectedLayer::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="_fully_connected_layer_8cpp_source.html#l00051">FullyConnectedLayer.cpp:51</a></div></div> |
| 575 | <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> |
| 576 | <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> |
| 577 | <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> |
| 578 | <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> |
| 579 | </div><!-- fragment --> |
| 580 | </div> |
| 581 | </div> |
| 582 | <h2 class="groupheader">Member Data Documentation</h2> |
| 583 | <a id="a39925bc24d3afcfb322a46a5884fadb9"></a> |
| 584 | <h2 class="memtitle"><span class="permalink"><a href="#a39925bc24d3afcfb322a46a5884fadb9">◆ </a></span>m_Bias</h2> |
| 585 | |
| 586 | <div class="memitem"> |
| 587 | <div class="memproto"> |
| 588 | <table class="memname"> |
| 589 | <tr> |
| 590 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a>> m_Bias</td> |
| 591 | </tr> |
| 592 | </table> |
| 593 | </div><div class="memdoc"> |
| 594 | |
| 595 | <p>A unique pointer to store Bias values. </p> |
| 596 | |
| 597 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8hpp_source.html#l00021">21</a> of file <a class="el" href="_fully_connected_layer_8hpp_source.html">FullyConnectedLayer.hpp</a>.</p> |
| 598 | |
| 599 | <p class="reference">Referenced by <a class="el" href="_fully_connected_layer_8cpp_source.html#l00088">FullyConnectedLayer::Accept()</a>, <a class="el" href="_layer_release_constant_data_test_8cpp_source.html#l00160">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00038">FullyConnectedLayer::Clone()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00022">FullyConnectedLayer::CreateWorkload()</a>, and <a class="el" href="_fully_connected_layer_8cpp_source.html#l00083">FullyConnectedLayer::GetConstantTensorsByRef()</a>.</p> |
| 600 | |
| 601 | </div> |
| 602 | </div> |
| 603 | <a id="a2664044e28e69309ea08ef385fe53903"></a> |
| 604 | <h2 class="memtitle"><span class="permalink"><a href="#a2664044e28e69309ea08ef385fe53903">◆ </a></span>m_Weight</h2> |
| 605 | |
| 606 | <div class="memitem"> |
| 607 | <div class="memproto"> |
| 608 | <table class="memname"> |
| 609 | <tr> |
| 610 | <td class="memname">std::unique_ptr<<a class="el" href="classarmnn_1_1_scoped_cpu_tensor_handle.html">ScopedCpuTensorHandle</a>> m_Weight</td> |
| 611 | </tr> |
| 612 | </table> |
| 613 | </div><div class="memdoc"> |
| 614 | |
| 615 | <p>A unique pointer to store Weight values. </p> |
| 616 | |
| 617 | <p class="definition">Definition at line <a class="el" href="_fully_connected_layer_8hpp_source.html#l00019">19</a> of file <a class="el" href="_fully_connected_layer_8hpp_source.html">FullyConnectedLayer.hpp</a>.</p> |
| 618 | |
| 619 | <p class="reference">Referenced by <a class="el" href="_fully_connected_layer_8cpp_source.html#l00088">FullyConnectedLayer::Accept()</a>, <a class="el" href="_network_8cpp_source.html#l00970">Network::AddElementwiseUnaryLayer()</a>, <a class="el" href="_convert_constants_float_to_half_tests_8cpp_source.html#l00018">BOOST_AUTO_TEST_CASE()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00038">FullyConnectedLayer::Clone()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00022">FullyConnectedLayer::CreateWorkload()</a>, <a class="el" href="_fully_connected_layer_8cpp_source.html#l00083">FullyConnectedLayer::GetConstantTensorsByRef()</a>, and <a class="el" href="_fully_connected_layer_8cpp_source.html#l00064">FullyConnectedLayer::ValidateTensorShapesFromInputs()</a>.</p> |
| 620 | |
| 621 | </div> |
| 622 | </div> |
| 623 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 624 | <li>src/armnn/layers/<a class="el" href="_fully_connected_layer_8hpp_source.html">FullyConnectedLayer.hpp</a></li> |
| 625 | <li>src/armnn/layers/<a class="el" href="_fully_connected_layer_8cpp_source.html">FullyConnectedLayer.cpp</a></li> |
| 626 | </ul> |
| 627 | </div><!-- contents --> |
| 628 | </div><!-- doc-content --> |
| 629 | <!-- start footer part --> |
| 630 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 631 | <ul> |
| 632 | <li class="navelem"><a class="el" href="namespacearmnn.html">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_fully_connected_layer.html">FullyConnectedLayer</a></li> |
| 633 | <li class="footer">Generated on Fri Mar 13 2020 16:07:03 for ArmNN by |
| 634 | <a href="http://www.doxygen.org/index.html"> |
| 635 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 636 | </ul> |
| 637 | </div> |
| 638 | </body> |
| 639 | </html> |