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: SerializerVisitor 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_serializer_1_1_serializer_visitor.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="classarmnn_serializer_1_1_serializer_visitor-members.html">List of all members</a> </div> |
| 86 | <div class="headertitle"> |
| 87 | <div class="title">SerializerVisitor Class Reference</div> </div> |
| 88 | </div><!--header--> |
| 89 | <div class="contents"> |
| 90 | |
| 91 | <p><code>#include <<a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>></code></p> |
| 92 | <div class="dynheader"> |
| 93 | Inheritance diagram for SerializerVisitor:</div> |
| 94 | <div class="dyncontent"> |
| 95 | <div class="center"> |
| 96 | <img src="classarmnn_serializer_1_1_serializer_visitor.png" usemap="#SerializerVisitor_map" alt=""/> |
| 97 | <map id="SerializerVisitor_map" name="SerializerVisitor_map"> |
| 98 | <area href="classarmnn_1_1_i_layer_visitor.html" alt="ILayerVisitor" shape="rect" coords="0,0,102,24"/> |
| 99 | </map> |
| 100 | </div></div> |
| 101 | <table class="memberdecls"> |
| 102 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 103 | Public Member Functions</h2></td></tr> |
| 104 | <tr class="memitem:a430a872adcc26d52cf028edeec429382"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a430a872adcc26d52cf028edeec429382">SerializerVisitor</a> ()</td></tr> |
| 105 | <tr class="separator:a430a872adcc26d52cf028edeec429382"><td class="memSeparator" colspan="2"> </td></tr> |
| 106 | <tr class="memitem:ab3bae9f8bf1876586b2628c120694024"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab3bae9f8bf1876586b2628c120694024">~SerializerVisitor</a> ()</td></tr> |
| 107 | <tr class="separator:ab3bae9f8bf1876586b2628c120694024"><td class="memSeparator" colspan="2"> </td></tr> |
| 108 | <tr class="memitem:ab409abc02fdc367d3b95e6c14500616a"><td class="memItemLeft" align="right" valign="top">flatbuffers::FlatBufferBuilder & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab409abc02fdc367d3b95e6c14500616a">GetFlatBufferBuilder</a> ()</td></tr> |
| 109 | <tr class="separator:ab409abc02fdc367d3b95e6c14500616a"><td class="memSeparator" colspan="2"> </td></tr> |
| 110 | <tr class="memitem:ab590ced8474cd5e0fa28912231b93f61"><td class="memItemLeft" align="right" valign="top">std::vector< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab590ced8474cd5e0fa28912231b93f61">GetInputIds</a> ()</td></tr> |
| 111 | <tr class="separator:ab590ced8474cd5e0fa28912231b93f61"><td class="memSeparator" colspan="2"> </td></tr> |
| 112 | <tr class="memitem:a05c5792591b9e83396c09ab21143cc44"><td class="memItemLeft" align="right" valign="top">std::vector< int > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a05c5792591b9e83396c09ab21143cc44">GetOutputIds</a> ()</td></tr> |
| 113 | <tr class="separator:a05c5792591b9e83396c09ab21143cc44"><td class="memSeparator" colspan="2"> </td></tr> |
| 114 | <tr class="memitem:a05e611493d1b74287eed5e3af7594538"><td class="memItemLeft" align="right" valign="top">std::vector< flatbuffers::Offset< armnnSerializer::AnyLayer > > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a05e611493d1b74287eed5e3af7594538">GetSerializedLayers</a> ()</td></tr> |
| 115 | <tr class="separator:a05e611493d1b74287eed5e3af7594538"><td class="memSeparator" colspan="2"> </td></tr> |
| 116 | <tr class="memitem:a7594572286ad32d17d57eaa4cdde53f9"><td class="memItemLeft" align="right" valign="top">flatbuffers::Offset< armnnSerializer::FeatureCompatibilityVersions > </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a7594572286ad32d17d57eaa4cdde53f9">GetVersionTable</a> ()</td></tr> |
| 117 | <tr class="separator:a7594572286ad32d17d57eaa4cdde53f9"><td class="memSeparator" colspan="2"> </td></tr> |
| 118 | <tr class="memitem:afb3379853398423f791269433f6bb43c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#afb3379853398423f791269433f6bb43c">VisitAbsLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 119 | <tr class="separator:afb3379853398423f791269433f6bb43c"><td class="memSeparator" colspan="2"> </td></tr> |
| 120 | <tr class="memitem:a3f7b255222c79282f598eb8efefa880b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a3f7b255222c79282f598eb8efefa880b">VisitActivationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_activation_descriptor.html">armnn::ActivationDescriptor</a> &descriptor, const char *name=nullptr) override</td></tr> |
| 121 | <tr class="separator:a3f7b255222c79282f598eb8efefa880b"><td class="memSeparator" colspan="2"> </td></tr> |
| 122 | <tr class="memitem:a7b608d5a44e36e6cd96e915658d49da3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a7b608d5a44e36e6cd96e915658d49da3">VisitAdditionLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 123 | <tr class="separator:a7b608d5a44e36e6cd96e915658d49da3"><td class="memSeparator" colspan="2"> </td></tr> |
| 124 | <tr class="memitem:ad7c76e1781b02bcc685ec87fe071b1fc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ad7c76e1781b02bcc685ec87fe071b1fc">VisitArgMinMaxLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_arg_min_max_descriptor.html">armnn::ArgMinMaxDescriptor</a> &argMinMaxDescriptor, const char *name=nullptr) override</td></tr> |
| 125 | <tr class="separator:ad7c76e1781b02bcc685ec87fe071b1fc"><td class="memSeparator" colspan="2"> </td></tr> |
| 126 | <tr class="memitem:a1d1235559a11a1aa63724eba742ad29c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a1d1235559a11a1aa63724eba742ad29c">VisitBatchToSpaceNdLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_batch_to_space_nd_descriptor.html">armnn::BatchToSpaceNdDescriptor</a> &descriptor, const char *name=nullptr) override</td></tr> |
| 127 | <tr class="separator:a1d1235559a11a1aa63724eba742ad29c"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a53e3051bacbfc5d901184eb7cb29c8c2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a53e3051bacbfc5d901184eb7cb29c8c2">VisitBatchNormalizationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_batch_normalization_descriptor.html">armnn::BatchNormalizationDescriptor</a> &<a class="el" href="structarmnn_1_1_batch_normalization_descriptor.html">BatchNormalizationDescriptor</a>, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &mean, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &variance, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &beta, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &gamma, const char *name=nullptr) override</td></tr> |
| 129 | <tr class="separator:a53e3051bacbfc5d901184eb7cb29c8c2"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:afb1afddc0f2cb1caac0daf5bbd13c8c8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#afb1afddc0f2cb1caac0daf5bbd13c8c8">VisitComparisonLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_comparison_descriptor.html">armnn::ComparisonDescriptor</a> &descriptor, const char *name=nullptr) override</td></tr> |
| 131 | <tr class="separator:afb1afddc0f2cb1caac0daf5bbd13c8c8"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a148d342b40eada32d536c2ccda673405"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a148d342b40eada32d536c2ccda673405">VisitConcatLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="namespacearmnn.html#a7863c179ff92feec660c48ab7b95ae55">armnn::ConcatDescriptor</a> &concatDescriptor, const char *name=nullptr) override</td></tr> |
| 133 | <tr class="separator:a148d342b40eada32d536c2ccda673405"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:ae7bb76117b0e10efef5d3d6637df4480"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ae7bb76117b0e10efef5d3d6637df4480">VisitConstantLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &input, const char *=nullptr) override</td></tr> |
| 135 | <tr class="separator:ae7bb76117b0e10efef5d3d6637df4480"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:af4c7002e267521e7ea0933ef2b767f9e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#af4c7002e267521e7ea0933ef2b767f9e">VisitConvolution2dLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">armnn::Convolution2dDescriptor</a> &descriptor, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &weights, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > &biases, const char *=nullptr) override</td></tr> |
| 137 | <tr class="separator:af4c7002e267521e7ea0933ef2b767f9e"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:ac30449d327001492692fa23a666efd7f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ac30449d327001492692fa23a666efd7f">VisitDepthToSpaceLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="namespacearmnn.html#a3647f60510bc8ddaced01c51b0ee8714">armnn::DepthToSpaceDescriptor</a> &descriptor, const char *name=nullptr) override</td></tr> |
| 139 | <tr class="separator:ac30449d327001492692fa23a666efd7f"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:afd318b4ffed3c04a4807ca2c13077ab7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#afd318b4ffed3c04a4807ca2c13077ab7">VisitDepthwiseConvolution2dLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">armnn::DepthwiseConvolution2dDescriptor</a> &descriptor, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &weights, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > &biases, const char *name=nullptr) override</td></tr> |
| 141 | <tr class="separator:afd318b4ffed3c04a4807ca2c13077ab7"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:a9a502d24112baa19f11c76bc651e0cc0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a9a502d24112baa19f11c76bc651e0cc0">VisitDequantizeLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 143 | <tr class="separator:a9a502d24112baa19f11c76bc651e0cc0"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:ace945f2f1d416b240f9c0344671b17ad"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ace945f2f1d416b240f9c0344671b17ad">VisitDetectionPostProcessLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_detection_post_process_descriptor.html">armnn::DetectionPostProcessDescriptor</a> &descriptor, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &<a class="el" href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors</a>, const char *name=nullptr) override</td></tr> |
| 145 | <tr class="separator:ace945f2f1d416b240f9c0344671b17ad"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:a9cc611872dcd6b526c84231e0b6920da"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a9cc611872dcd6b526c84231e0b6920da">VisitDivisionLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 147 | <tr class="separator:a9cc611872dcd6b526c84231e0b6920da"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:a2e0686c8a9f4a53f78fd35f83fa77c56"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a2e0686c8a9f4a53f78fd35f83fa77c56">VisitElementwiseUnaryLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_elementwise_unary_descriptor.html">armnn::ElementwiseUnaryDescriptor</a> &descriptor, const char *name=nullptr) override</td></tr> |
| 149 | <tr class="separator:a2e0686c8a9f4a53f78fd35f83fa77c56"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <tr class="memitem:a778b3249ab3704387496d45c39480ecb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a778b3249ab3704387496d45c39480ecb">VisitEqualLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 151 | <tr class="separator:a778b3249ab3704387496d45c39480ecb"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="memitem:a64c53003d714d4957829f821a5e4153d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a64c53003d714d4957829f821a5e4153d">VisitFloorLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 153 | <tr class="separator:a64c53003d714d4957829f821a5e4153d"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | <tr class="memitem:a0d4758122aed43d472cdbd59e84bc047"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a0d4758122aed43d472cdbd59e84bc047">VisitFullyConnectedLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_fully_connected_descriptor.html">armnn::FullyConnectedDescriptor</a> &fullyConnectedDescriptor, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &weights, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > &biases, const char *name=nullptr) override</td></tr> |
| 155 | <tr class="separator:a0d4758122aed43d472cdbd59e84bc047"><td class="memSeparator" colspan="2"> </td></tr> |
| 156 | <tr class="memitem:ad297ae199a9fa61e1fd983d645da6471"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ad297ae199a9fa61e1fd983d645da6471">VisitGatherLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 157 | <tr class="separator:ad297ae199a9fa61e1fd983d645da6471"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <tr class="memitem:ab0d8bc8095f70f4616bc3ace8dd46b02"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab0d8bc8095f70f4616bc3ace8dd46b02">VisitGreaterLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 159 | <tr class="separator:ab0d8bc8095f70f4616bc3ace8dd46b02"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:ade20ba84b9c46a9afedf0b969f870919"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ade20ba84b9c46a9afedf0b969f870919">VisitInputLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> id, const char *name=nullptr) override</td></tr> |
| 161 | <tr class="separator:ade20ba84b9c46a9afedf0b969f870919"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | <tr class="memitem:aae3bf0ab71205ddf8916512ac8330a1e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#aae3bf0ab71205ddf8916512ac8330a1e">VisitInstanceNormalizationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_instance_normalization_descriptor.html">armnn::InstanceNormalizationDescriptor</a> &instanceNormalizationDescriptor, const char *name=nullptr) override</td></tr> |
| 163 | <tr class="separator:aae3bf0ab71205ddf8916512ac8330a1e"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="memitem:a227d927a30f0700956047d9f65fca813"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a227d927a30f0700956047d9f65fca813">VisitL2NormalizationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_l2_normalization_descriptor.html">armnn::L2NormalizationDescriptor</a> &l2NormalizationDescriptor, const char *name=nullptr) override</td></tr> |
| 165 | <tr class="separator:a227d927a30f0700956047d9f65fca813"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="memitem:a5c02b1f1028daf64f7c6244ac68b37f5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a5c02b1f1028daf64f7c6244ac68b37f5">VisitLogSoftmaxLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="namespacearmnn.html#ac14705405cbcdd580df613de6766fe65">armnn::LogSoftmaxDescriptor</a> &logSoftmaxDescriptor, const char *name=nullptr) override</td></tr> |
| 167 | <tr class="separator:a5c02b1f1028daf64f7c6244ac68b37f5"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | <tr class="memitem:a2b37a5d520204e4e1652e6d4d38774b3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a2b37a5d520204e4e1652e6d4d38774b3">VisitLstmLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a> &descriptor, const <a class="el" href="structarmnn_1_1_lstm_input_params.html">armnn::LstmInputParams</a> &params, const char *name=nullptr) override</td></tr> |
| 169 | <tr class="separator:a2b37a5d520204e4e1652e6d4d38774b3"><td class="memSeparator" colspan="2"> </td></tr> |
| 170 | <tr class="memitem:a1404339c6c051dc6924a16172db4b3ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a1404339c6c051dc6924a16172db4b3ee">VisitMeanLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_mean_descriptor.html">armnn::MeanDescriptor</a> &descriptor, const char *name) override</td></tr> |
| 171 | <tr class="separator:a1404339c6c051dc6924a16172db4b3ee"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <tr class="memitem:a87432c758f53e21892780fc3b10b5c2a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a87432c758f53e21892780fc3b10b5c2a">VisitMinimumLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 173 | <tr class="separator:a87432c758f53e21892780fc3b10b5c2a"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <tr class="memitem:a29cb9e904f31bcc86b1ab75d13d343a4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a29cb9e904f31bcc86b1ab75d13d343a4">VisitMaximumLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 175 | <tr class="separator:a29cb9e904f31bcc86b1ab75d13d343a4"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <tr class="memitem:ae91857ae8a9be3557316eb446c40ba98"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ae91857ae8a9be3557316eb446c40ba98">VisitMergeLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 177 | <tr class="separator:ae91857ae8a9be3557316eb446c40ba98"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:ac6013ef93bf6ec846910e019a54cf021"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ac6013ef93bf6ec846910e019a54cf021">VisitMergerLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="namespacearmnn.html#a003d213dd28b0b8c0f26fbf268ccb975">armnn::MergerDescriptor</a> &mergerDescriptor, const char *name=nullptr) override</td></tr> |
| 179 | <tr class="separator:ac6013ef93bf6ec846910e019a54cf021"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:a23e516e20d857cd11ce80d0967ae48f3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a23e516e20d857cd11ce80d0967ae48f3">VisitMultiplicationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 181 | <tr class="separator:a23e516e20d857cd11ce80d0967ae48f3"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:a56858f9071c8bf57fdb31a96833ff4bd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a56858f9071c8bf57fdb31a96833ff4bd">VisitOutputLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, <a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> id, const char *name=nullptr) override</td></tr> |
| 183 | <tr class="separator:a56858f9071c8bf57fdb31a96833ff4bd"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:a3569b9af864b7b141b067e7de3902bf3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a3569b9af864b7b141b067e7de3902bf3">VisitPadLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_pad_descriptor.html">armnn::PadDescriptor</a> &<a class="el" href="structarmnn_1_1_pad_descriptor.html">PadDescriptor</a>, const char *name=nullptr) override</td></tr> |
| 185 | <tr class="separator:a3569b9af864b7b141b067e7de3902bf3"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:ac81df940ac47b39a703a2cbe017bda8e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ac81df940ac47b39a703a2cbe017bda8e">VisitPermuteLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_permute_descriptor.html">armnn::PermuteDescriptor</a> &<a class="el" href="structarmnn_1_1_permute_descriptor.html">PermuteDescriptor</a>, const char *name=nullptr) override</td></tr> |
| 187 | <tr class="separator:ac81df940ac47b39a703a2cbe017bda8e"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:ab3c8fcc1045d3379148d4298b27c20d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab3c8fcc1045d3379148d4298b27c20d3">VisitPooling2dLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a> &pooling2dDescriptor, const char *name=nullptr) override</td></tr> |
| 189 | <tr class="separator:ab3c8fcc1045d3379148d4298b27c20d3"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:a26930996b666eef0b5b1fe562644f5c9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a26930996b666eef0b5b1fe562644f5c9">VisitPreluLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 191 | <tr class="separator:a26930996b666eef0b5b1fe562644f5c9"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:a25ee3712e8012235fedcd41fdd1b78a3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a25ee3712e8012235fedcd41fdd1b78a3">VisitQuantizeLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 193 | <tr class="separator:a25ee3712e8012235fedcd41fdd1b78a3"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:a598e914a8657aca24ed847d9069ad025"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a598e914a8657aca24ed847d9069ad025">VisitQuantizedLstmLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_quantized_lstm_input_params.html">armnn::QuantizedLstmInputParams</a> &params, const char *name=nullptr) override</td></tr> |
| 195 | <tr class="separator:a598e914a8657aca24ed847d9069ad025"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:ada00d4a9cb133fef352290610f257000"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ada00d4a9cb133fef352290610f257000">VisitReshapeLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_reshape_descriptor.html">armnn::ReshapeDescriptor</a> &reshapeDescriptor, const char *name=nullptr) override</td></tr> |
| 197 | <tr class="separator:ada00d4a9cb133fef352290610f257000"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:ad7df3f2ae8cbb23bb8651fff4d079718"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ad7df3f2ae8cbb23bb8651fff4d079718">VisitResizeLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_resize_descriptor.html">armnn::ResizeDescriptor</a> &resizeDescriptor, const char *name=nullptr) override</td></tr> |
| 199 | <tr class="separator:ad7df3f2ae8cbb23bb8651fff4d079718"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:afa243ee90086da1e8270b8391dd8f221"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#afa243ee90086da1e8270b8391dd8f221">VisitResizeBilinearLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_resize_bilinear_descriptor.html">armnn::ResizeBilinearDescriptor</a> &resizeDescriptor, const char *name=nullptr) override</td></tr> |
| 201 | <tr class="separator:afa243ee90086da1e8270b8391dd8f221"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <tr class="memitem:af9fea44d69144543d711293ab4a61af4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#af9fea44d69144543d711293ab4a61af4">VisitRsqrtLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 203 | <tr class="separator:af9fea44d69144543d711293ab4a61af4"><td class="memSeparator" colspan="2"> </td></tr> |
| 204 | <tr class="memitem:a8931b9c0199822fe3db2fdbde579a96e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a8931b9c0199822fe3db2fdbde579a96e">VisitSliceLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_slice_descriptor.html">armnn::SliceDescriptor</a> &sliceDescriptor, const char *name=nullptr) override</td></tr> |
| 205 | <tr class="separator:a8931b9c0199822fe3db2fdbde579a96e"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="memitem:a22d44460791b64d4e1d65f8107f69786"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a22d44460791b64d4e1d65f8107f69786">VisitSoftmaxLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_softmax_descriptor.html">armnn::SoftmaxDescriptor</a> &softmaxDescriptor, const char *name=nullptr) override</td></tr> |
| 207 | <tr class="separator:a22d44460791b64d4e1d65f8107f69786"><td class="memSeparator" colspan="2"> </td></tr> |
| 208 | <tr class="memitem:a4ca05fff57392b368ce229af4721aa19"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a4ca05fff57392b368ce229af4721aa19">VisitSpaceToBatchNdLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.html">armnn::SpaceToBatchNdDescriptor</a> &spaceToBatchNdDescriptor, const char *name=nullptr) override</td></tr> |
| 209 | <tr class="separator:a4ca05fff57392b368ce229af4721aa19"><td class="memSeparator" colspan="2"> </td></tr> |
| 210 | <tr class="memitem:aa3c4485dc7e9529e9a03e74ba69bd624"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#aa3c4485dc7e9529e9a03e74ba69bd624">VisitSpaceToDepthLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_space_to_depth_descriptor.html">armnn::SpaceToDepthDescriptor</a> &spaceToDepthDescriptor, const char *name=nullptr) override</td></tr> |
| 211 | <tr class="separator:aa3c4485dc7e9529e9a03e74ba69bd624"><td class="memSeparator" colspan="2"> </td></tr> |
| 212 | <tr class="memitem:adf9c46396d90c17839fcbdd9f400166e"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#adf9c46396d90c17839fcbdd9f400166e">VisitNormalizationLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a> &normalizationDescriptor, const char *name=nullptr) override</td></tr> |
| 213 | <tr class="separator:adf9c46396d90c17839fcbdd9f400166e"><td class="memSeparator" colspan="2"> </td></tr> |
| 214 | <tr class="memitem:ab24e753aaf05ae1f1b099ec020bbb0df"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#ab24e753aaf05ae1f1b099ec020bbb0df">VisitSplitterLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_views_descriptor.html">armnn::ViewsDescriptor</a> &viewsDescriptor, const char *name=nullptr) override</td></tr> |
| 215 | <tr class="separator:ab24e753aaf05ae1f1b099ec020bbb0df"><td class="memSeparator" colspan="2"> </td></tr> |
| 216 | <tr class="memitem:afdc56797f18b4ec2b66469bd4553d65b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#afdc56797f18b4ec2b66469bd4553d65b">VisitStandInLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_stand_in_descriptor.html">armnn::StandInDescriptor</a> &standInDescriptor, const char *name=nullptr) override</td></tr> |
| 217 | <tr class="separator:afdc56797f18b4ec2b66469bd4553d65b"><td class="memSeparator" colspan="2"> </td></tr> |
| 218 | <tr class="memitem:aa6835f67d172384fb91ca5e7d0933a00"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#aa6835f67d172384fb91ca5e7d0933a00">VisitStackLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_stack_descriptor.html">armnn::StackDescriptor</a> &stackDescriptor, const char *name=nullptr) override</td></tr> |
| 219 | <tr class="separator:aa6835f67d172384fb91ca5e7d0933a00"><td class="memSeparator" colspan="2"> </td></tr> |
| 220 | <tr class="memitem:a4f0cb9c392102c5108766a0faa754d92"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a4f0cb9c392102c5108766a0faa754d92">VisitStridedSliceLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_strided_slice_descriptor.html">armnn::StridedSliceDescriptor</a> &stridedSliceDescriptor, const char *name=nullptr) override</td></tr> |
| 221 | <tr class="separator:a4f0cb9c392102c5108766a0faa754d92"><td class="memSeparator" colspan="2"> </td></tr> |
| 222 | <tr class="memitem:a8f33221ab8f8feb4f2bbd5ddaa5bfa02"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a8f33221ab8f8feb4f2bbd5ddaa5bfa02">VisitSubtractionLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 223 | <tr class="separator:a8f33221ab8f8feb4f2bbd5ddaa5bfa02"><td class="memSeparator" colspan="2"> </td></tr> |
| 224 | <tr class="memitem:a20396d2da2d38ae69bd5bda5d8c1e8dc"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#a20396d2da2d38ae69bd5bda5d8c1e8dc">VisitSwitchLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const char *name=nullptr) override</td></tr> |
| 225 | <tr class="separator:a20396d2da2d38ae69bd5bda5d8c1e8dc"><td class="memSeparator" colspan="2"> </td></tr> |
| 226 | <tr class="memitem:aa46bee20f6017ada3c3a46e1bdf23011"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html#aa46bee20f6017ada3c3a46e1bdf23011">VisitTransposeConvolution2dLayer</a> (const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> *layer, const <a class="el" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a> &descriptor, const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> &weights, const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > &biases, const char *=nullptr) override</td></tr> |
| 227 | <tr class="separator:aa46bee20f6017ada3c3a46e1bdf23011"><td class="memSeparator" colspan="2"> </td></tr> |
| 228 | <tr class="inherit_header pub_methods_classarmnn_1_1_i_layer_visitor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classarmnn_1_1_i_layer_visitor')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classarmnn_1_1_i_layer_visitor.html">ILayerVisitor</a></td></tr> |
| 229 | <tr class="memitem:a463965a96896bf0d261b44eea5172c7b inherit pub_methods_classarmnn_1_1_i_layer_visitor"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_layer_visitor.html#a463965a96896bf0d261b44eea5172c7b">StartVisit</a> ()</td></tr> |
| 230 | <tr class="separator:a463965a96896bf0d261b44eea5172c7b inherit pub_methods_classarmnn_1_1_i_layer_visitor"><td class="memSeparator" colspan="2"> </td></tr> |
| 231 | <tr class="memitem:a4549b1bbb63fa26700d74854e388784f inherit pub_methods_classarmnn_1_1_i_layer_visitor"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_layer_visitor.html#a4549b1bbb63fa26700d74854e388784f">FinishVisit</a> ()</td></tr> |
| 232 | <tr class="separator:a4549b1bbb63fa26700d74854e388784f inherit pub_methods_classarmnn_1_1_i_layer_visitor"><td class="memSeparator" colspan="2"> </td></tr> |
| 233 | </table><table class="memberdecls"> |
| 234 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> |
| 235 | Additional Inherited Members</h2></td></tr> |
| 236 | <tr class="inherit_header pro_methods_classarmnn_1_1_i_layer_visitor"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classarmnn_1_1_i_layer_visitor')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classarmnn_1_1_i_layer_visitor.html">ILayerVisitor</a></td></tr> |
| 237 | <tr class="memitem:a27fa880bce96ac7355284a7681f2377e inherit pro_methods_classarmnn_1_1_i_layer_visitor"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_layer_visitor.html#a27fa880bce96ac7355284a7681f2377e">ILayerVisitor</a> ()</td></tr> |
| 238 | <tr class="separator:a27fa880bce96ac7355284a7681f2377e inherit pro_methods_classarmnn_1_1_i_layer_visitor"><td class="memSeparator" colspan="2"> </td></tr> |
| 239 | <tr class="memitem:a7ad7aeeaf26228ef11c15fa5d4507d8a inherit pro_methods_classarmnn_1_1_i_layer_visitor"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_layer_visitor.html#a7ad7aeeaf26228ef11c15fa5d4507d8a">~ILayerVisitor</a> ()</td></tr> |
| 240 | <tr class="separator:a7ad7aeeaf26228ef11c15fa5d4507d8a inherit pro_methods_classarmnn_1_1_i_layer_visitor"><td class="memSeparator" colspan="2"> </td></tr> |
| 241 | </table> |
| 242 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 243 | <div class="textblock"> |
| 244 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00021">21</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 245 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 246 | <a id="a430a872adcc26d52cf028edeec429382"></a> |
| 247 | <h2 class="memtitle"><span class="permalink"><a href="#a430a872adcc26d52cf028edeec429382">◆ </a></span>SerializerVisitor()</h2> |
| 248 | |
| 249 | <div class="memitem"> |
| 250 | <div class="memproto"> |
| 251 | <table class="mlabels"> |
| 252 | <tr> |
| 253 | <td class="mlabels-left"> |
| 254 | <table class="memname"> |
| 255 | <tr> |
| 256 | <td class="memname"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html">SerializerVisitor</a> </td> |
| 257 | <td>(</td> |
| 258 | <td class="paramname"></td><td>)</td> |
| 259 | <td></td> |
| 260 | </tr> |
| 261 | </table> |
| 262 | </td> |
| 263 | <td class="mlabels-right"> |
| 264 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 265 | </tr> |
| 266 | </table> |
| 267 | </div><div class="memdoc"> |
| 268 | |
| 269 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00024">24</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 270 | <div class="fragment"><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> : m_layerId(0) {}</div></div><!-- fragment --> |
| 271 | </div> |
| 272 | </div> |
| 273 | <a id="ab3bae9f8bf1876586b2628c120694024"></a> |
| 274 | <h2 class="memtitle"><span class="permalink"><a href="#ab3bae9f8bf1876586b2628c120694024">◆ </a></span>~SerializerVisitor()</h2> |
| 275 | |
| 276 | <div class="memitem"> |
| 277 | <div class="memproto"> |
| 278 | <table class="mlabels"> |
| 279 | <tr> |
| 280 | <td class="mlabels-left"> |
| 281 | <table class="memname"> |
| 282 | <tr> |
| 283 | <td class="memname">~<a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html">SerializerVisitor</a> </td> |
| 284 | <td>(</td> |
| 285 | <td class="paramname"></td><td>)</td> |
| 286 | <td></td> |
| 287 | </tr> |
| 288 | </table> |
| 289 | </td> |
| 290 | <td class="mlabels-right"> |
| 291 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 292 | </tr> |
| 293 | </table> |
| 294 | </div><div class="memdoc"> |
| 295 | |
| 296 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00025">25</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 297 | <div class="fragment"><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {}</div></div><!-- fragment --> |
| 298 | </div> |
| 299 | </div> |
| 300 | <h2 class="groupheader">Member Function Documentation</h2> |
| 301 | <a id="ab409abc02fdc367d3b95e6c14500616a"></a> |
| 302 | <h2 class="memtitle"><span class="permalink"><a href="#ab409abc02fdc367d3b95e6c14500616a">◆ </a></span>GetFlatBufferBuilder()</h2> |
| 303 | |
| 304 | <div class="memitem"> |
| 305 | <div class="memproto"> |
| 306 | <table class="mlabels"> |
| 307 | <tr> |
| 308 | <td class="mlabels-left"> |
| 309 | <table class="memname"> |
| 310 | <tr> |
| 311 | <td class="memname">flatbuffers::FlatBufferBuilder& GetFlatBufferBuilder </td> |
| 312 | <td>(</td> |
| 313 | <td class="paramname"></td><td>)</td> |
| 314 | <td></td> |
| 315 | </tr> |
| 316 | </table> |
| 317 | </td> |
| 318 | <td class="mlabels-right"> |
| 319 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 320 | </tr> |
| 321 | </table> |
| 322 | </div><div class="memdoc"> |
| 323 | |
| 324 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00027">27</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 325 | <div class="fragment"><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>  <span class="keywordflow">return</span> m_flatBufferBuilder;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  }</div></div><!-- fragment --> |
| 326 | </div> |
| 327 | </div> |
| 328 | <a id="ab590ced8474cd5e0fa28912231b93f61"></a> |
| 329 | <h2 class="memtitle"><span class="permalink"><a href="#ab590ced8474cd5e0fa28912231b93f61">◆ </a></span>GetInputIds()</h2> |
| 330 | |
| 331 | <div class="memitem"> |
| 332 | <div class="memproto"> |
| 333 | <table class="mlabels"> |
| 334 | <tr> |
| 335 | <td class="mlabels-left"> |
| 336 | <table class="memname"> |
| 337 | <tr> |
| 338 | <td class="memname">std::vector<int>& GetInputIds </td> |
| 339 | <td>(</td> |
| 340 | <td class="paramname"></td><td>)</td> |
| 341 | <td></td> |
| 342 | </tr> |
| 343 | </table> |
| 344 | </td> |
| 345 | <td class="mlabels-right"> |
| 346 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 347 | </tr> |
| 348 | </table> |
| 349 | </div><div class="memdoc"> |
| 350 | |
| 351 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00032">32</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 352 | <div class="fragment"><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordflow">return</span> m_inputIds;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  }</div></div><!-- fragment --> |
| 353 | </div> |
| 354 | </div> |
| 355 | <a id="a05c5792591b9e83396c09ab21143cc44"></a> |
| 356 | <h2 class="memtitle"><span class="permalink"><a href="#a05c5792591b9e83396c09ab21143cc44">◆ </a></span>GetOutputIds()</h2> |
| 357 | |
| 358 | <div class="memitem"> |
| 359 | <div class="memproto"> |
| 360 | <table class="mlabels"> |
| 361 | <tr> |
| 362 | <td class="mlabels-left"> |
| 363 | <table class="memname"> |
| 364 | <tr> |
| 365 | <td class="memname">std::vector<int>& GetOutputIds </td> |
| 366 | <td>(</td> |
| 367 | <td class="paramname"></td><td>)</td> |
| 368 | <td></td> |
| 369 | </tr> |
| 370 | </table> |
| 371 | </td> |
| 372 | <td class="mlabels-right"> |
| 373 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 374 | </tr> |
| 375 | </table> |
| 376 | </div><div class="memdoc"> |
| 377 | |
| 378 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00037">37</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 379 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keywordflow">return</span> m_outputIds;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  }</div></div><!-- fragment --> |
| 380 | </div> |
| 381 | </div> |
| 382 | <a id="a05e611493d1b74287eed5e3af7594538"></a> |
| 383 | <h2 class="memtitle"><span class="permalink"><a href="#a05e611493d1b74287eed5e3af7594538">◆ </a></span>GetSerializedLayers()</h2> |
| 384 | |
| 385 | <div class="memitem"> |
| 386 | <div class="memproto"> |
| 387 | <table class="mlabels"> |
| 388 | <tr> |
| 389 | <td class="mlabels-left"> |
| 390 | <table class="memname"> |
| 391 | <tr> |
| 392 | <td class="memname">std::vector<flatbuffers::Offset<armnnSerializer::AnyLayer> >& GetSerializedLayers </td> |
| 393 | <td>(</td> |
| 394 | <td class="paramname"></td><td>)</td> |
| 395 | <td></td> |
| 396 | </tr> |
| 397 | </table> |
| 398 | </td> |
| 399 | <td class="mlabels-right"> |
| 400 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 401 | </tr> |
| 402 | </table> |
| 403 | </div><div class="memdoc"> |
| 404 | |
| 405 | <p class="definition">Definition at line <a class="el" href="_serializer_8hpp_source.html#l00042">42</a> of file <a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a>.</p> |
| 406 | |
| 407 | <p class="reference">References <a class="el" href="_neon_end_to_end_tests_8cpp.html#ac0981848e4ae57729f14f72bd4caa9f8">anchors()</a>, <a class="el" href="_deprecated_8hpp_source.html#l00043">ARMNN_DEPRECATED_MSG</a>, <a class="el" href="_serializer_8cpp_source.html#l01452">SerializerVisitor::GetVersionTable()</a>, <a class="el" href="_serializer_8cpp_source.html#l00125">SerializerVisitor::VisitAbsLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00135">SerializerVisitor::VisitActivationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00160">SerializerVisitor::VisitAdditionLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00175">SerializerVisitor::VisitArgMinMaxLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00228">SerializerVisitor::VisitBatchNormalizationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00198">SerializerVisitor::VisitBatchToSpaceNdLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00259">SerializerVisitor::VisitComparisonLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00725">SerializerVisitor::VisitConcatLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00275">SerializerVisitor::VisitConstantLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00296">SerializerVisitor::VisitConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00337">SerializerVisitor::VisitDepthToSpaceLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00353">SerializerVisitor::VisitDepthwiseConvolution2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00390">SerializerVisitor::VisitDequantizeLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00401">SerializerVisitor::VisitDetectionPostProcessLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00432">SerializerVisitor::VisitDivisionLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00442">SerializerVisitor::VisitElementwiseUnaryLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00457">SerializerVisitor::VisitEqualLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00467">SerializerVisitor::VisitFloorLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00998">SerializerVisitor::VisitFullyConnectedLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00477">SerializerVisitor::VisitGatherLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00487">SerializerVisitor::VisitGreaterLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00083">SerializerVisitor::VisitInputLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00497">SerializerVisitor::VisitInstanceNormalizationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00517">SerializerVisitor::VisitL2NormalizationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00538">SerializerVisitor::VisitLogSoftmaxLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00562">SerializerVisitor::VisitLstmLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00670">SerializerVisitor::VisitMaximumLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00680">SerializerVisitor::VisitMeanLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00708">SerializerVisitor::VisitMergeLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00718">SerializerVisitor::VisitMergerLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00698">SerializerVisitor::VisitMinimumLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00760">SerializerVisitor::VisitMultiplicationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01154">SerializerVisitor::VisitNormalizationLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00105">SerializerVisitor::VisitOutputLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00771">SerializerVisitor::VisitPadLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00797">SerializerVisitor::VisitPermuteLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00943">SerializerVisitor::VisitPooling2dLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00972">SerializerVisitor::VisitPreluLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01302">SerializerVisitor::VisitQuantizedLstmLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00987">SerializerVisitor::VisitQuantizeLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00825">SerializerVisitor::VisitReshapeLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00851">SerializerVisitor::VisitResizeBilinearLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00872">SerializerVisitor::VisitResizeLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00894">SerializerVisitor::VisitRsqrtLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00904">SerializerVisitor::VisitSliceLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l00921">SerializerVisitor::VisitSoftmaxLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01037">SerializerVisitor::VisitSpaceToBatchNdLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01068">SerializerVisitor::VisitSpaceToDepthLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01088">SerializerVisitor::VisitSplitterLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01179">SerializerVisitor::VisitStackLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01202">SerializerVisitor::VisitStandInLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01218">SerializerVisitor::VisitStridedSliceLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01245">SerializerVisitor::VisitSubtractionLayer()</a>, <a class="el" href="_serializer_8cpp_source.html#l01255">SerializerVisitor::VisitSwitchLayer()</a>, and <a class="el" href="_serializer_8cpp_source.html#l01265">SerializerVisitor::VisitTransposeConvolution2dLayer()</a>.</p> |
| 408 | <div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordflow">return</span> m_serializedLayers;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  }</div></div><!-- fragment --> |
| 409 | </div> |
| 410 | </div> |
| 411 | <a id="a7594572286ad32d17d57eaa4cdde53f9"></a> |
| 412 | <h2 class="memtitle"><span class="permalink"><a href="#a7594572286ad32d17d57eaa4cdde53f9">◆ </a></span>GetVersionTable()</h2> |
| 413 | |
| 414 | <div class="memitem"> |
| 415 | <div class="memproto"> |
| 416 | <table class="memname"> |
| 417 | <tr> |
| 418 | <td class="memname">flatbuffers::Offset< armnnSerializer::FeatureCompatibilityVersions > GetVersionTable </td> |
| 419 | <td>(</td> |
| 420 | <td class="paramname"></td><td>)</td> |
| 421 | <td></td> |
| 422 | </tr> |
| 423 | </table> |
| 424 | </div><div class="memdoc"> |
| 425 | |
| 426 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01452">1452</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 427 | |
| 428 | <p class="reference">References <a class="el" href="classarmnn_1_1_i_output_slot.html#a41d30a9cd272e05986d71a69d6ad618b">IOutputSlot::CalculateIndexOnOwner()</a>, <a class="el" href="classarmnn_1_1_i_input_slot.html#a81fbf6103761e55061b62ba989b00f10">IInputSlot::GetConnection()</a>, <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00049">armnnSerializer::GetFlatBufferDataType()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a6ec9e0eb66d7d6a01240492a0b18104c">IConnectableLayer::GetInputSlot()</a>, <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a9c2cba04b6d7ace4fc2a2436b82a5a63">IConnectableLayer::GetNumInputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#ac2dac3b61c94de52093616be4ab17f8d">IConnectableLayer::GetNumOutputSlots()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#a80ac4eda2e7f2757ec9dd96fc96dbd16">IConnectableLayer::GetOutputSlot()</a>, <a class="el" href="classarmnn_1_1_i_output_slot.html#ad0c3555b126975ad6b3e250fe2a59534">IOutputSlot::GetOwningLayerGuid()</a>, <a class="el" href="_tensor_8cpp_source.html#l00264">TensorInfo::GetQuantizationOffset()</a>, <a class="el" href="_tensor_8cpp_source.html#l00247">TensorInfo::GetQuantizationScale()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, and <a class="el" href="classarmnn_1_1_i_output_slot.html#a9943775a364fc4ab53b85ac88f311886">IOutputSlot::GetTensorInfo()</a>.</p> |
| 429 | |
| 430 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 431 | <div class="fragment"><div class="line"><a name="l01453"></a><span class="lineno"> 1453</span> {</div><div class="line"><a name="l01454"></a><span class="lineno"> 1454</span>  flatbuffers::Offset<armnnSerializer::FeatureCompatibilityVersions> versionsTable =</div><div class="line"><a name="l01455"></a><span class="lineno"> 1455</span>  serializer::CreateFeatureCompatibilityVersions(</div><div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>  m_flatBufferBuilder,</div><div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>  1 <span class="comment">// Binding ids scheme version</span></div><div class="line"><a name="l01458"></a><span class="lineno"> 1458</span>  );</div><div class="line"><a name="l01459"></a><span class="lineno"> 1459</span>  <span class="keywordflow">return</span> versionsTable;</div><div class="line"><a name="l01460"></a><span class="lineno"> 1460</span> }</div></div><!-- fragment --> |
| 432 | </div> |
| 433 | </div> |
| 434 | <a id="afb3379853398423f791269433f6bb43c"></a> |
| 435 | <h2 class="memtitle"><span class="permalink"><a href="#afb3379853398423f791269433f6bb43c">◆ </a></span>VisitAbsLayer()</h2> |
| 436 | |
| 437 | <div class="memitem"> |
| 438 | <div class="memproto"> |
| 439 | <table class="mlabels"> |
| 440 | <tr> |
| 441 | <td class="mlabels-left"> |
| 442 | <table class="memname"> |
| 443 | <tr> |
| 444 | <td class="memname">void VisitAbsLayer </td> |
| 445 | <td>(</td> |
| 446 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 447 | <td class="paramname"><em>layer</em>, </td> |
| 448 | </tr> |
| 449 | <tr> |
| 450 | <td class="paramkey"></td> |
| 451 | <td></td> |
| 452 | <td class="paramtype">const char * </td> |
| 453 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 454 | </tr> |
| 455 | <tr> |
| 456 | <td></td> |
| 457 | <td>)</td> |
| 458 | <td></td><td></td> |
| 459 | </tr> |
| 460 | </table> |
| 461 | </td> |
| 462 | <td class="mlabels-right"> |
| 463 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 464 | </tr> |
| 465 | </table> |
| 466 | </div><div class="memdoc"> |
| 467 | <p>Function an absolute layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 468 | <table class="params"> |
| 469 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 470 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 471 | </table> |
| 472 | </dd> |
| 473 | </dl> |
| 474 | |
| 475 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a288db083c224e756f7bb35afe6289b7f">ILayerVisitor</a>.</p> |
| 476 | |
| 477 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00125">125</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 478 | |
| 479 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 480 | <div class="fragment"><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> {</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Abs);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keyword">auto</span> flatBufferAbsLayer = serializer::CreateAbsLayer(m_flatBufferBuilder, flatBufferBaseLayer);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  CreateAnyLayer(flatBufferAbsLayer.o, serializer::Layer::Layer_AbsLayer);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> }</div></div><!-- fragment --> |
| 481 | </div> |
| 482 | </div> |
| 483 | <a id="a3f7b255222c79282f598eb8efefa880b"></a> |
| 484 | <h2 class="memtitle"><span class="permalink"><a href="#a3f7b255222c79282f598eb8efefa880b">◆ </a></span>VisitActivationLayer()</h2> |
| 485 | |
| 486 | <div class="memitem"> |
| 487 | <div class="memproto"> |
| 488 | <table class="mlabels"> |
| 489 | <tr> |
| 490 | <td class="mlabels-left"> |
| 491 | <table class="memname"> |
| 492 | <tr> |
| 493 | <td class="memname">void VisitActivationLayer </td> |
| 494 | <td>(</td> |
| 495 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 496 | <td class="paramname"><em>layer</em>, </td> |
| 497 | </tr> |
| 498 | <tr> |
| 499 | <td class="paramkey"></td> |
| 500 | <td></td> |
| 501 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_activation_descriptor.html">armnn::ActivationDescriptor</a> & </td> |
| 502 | <td class="paramname"><em>activationDescriptor</em>, </td> |
| 503 | </tr> |
| 504 | <tr> |
| 505 | <td class="paramkey"></td> |
| 506 | <td></td> |
| 507 | <td class="paramtype">const char * </td> |
| 508 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 509 | </tr> |
| 510 | <tr> |
| 511 | <td></td> |
| 512 | <td>)</td> |
| 513 | <td></td><td></td> |
| 514 | </tr> |
| 515 | </table> |
| 516 | </td> |
| 517 | <td class="mlabels-right"> |
| 518 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 519 | </tr> |
| 520 | </table> |
| 521 | </div><div class="memdoc"> |
| 522 | <p>Function that an activation layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 523 | <table class="params"> |
| 524 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 525 | <tr><td class="paramname">activationDescriptor</td><td>- ActivationDescriptor to configure the activation. </td></tr> |
| 526 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 527 | </table> |
| 528 | </dd> |
| 529 | </dl> |
| 530 | |
| 531 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab2a1e493b983a932792bc5d0c1a20127">ILayerVisitor</a>.</p> |
| 532 | |
| 533 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00135">135</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 534 | |
| 535 | <p class="reference">References <a class="el" href="_serializer_8cpp_source.html#l00027">armnnSerializer::GetFlatBufferActivationFunction()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00037">ActivationDescriptor::m_A</a>, <a class="el" href="_descriptors_8hpp_source.html#l00039">ActivationDescriptor::m_B</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00035">ActivationDescriptor::m_Function</a>.</p> |
| 536 | |
| 537 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 538 | <div class="fragment"><div class="line"><a name="l00138"></a><span class="lineno"> 138</span> {</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Activation);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  <span class="comment">// Create the FlatBuffer ActivationDescriptor</span></div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">auto</span> flatBufferDescriptor = CreateActivationDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <a class="code" href="namespacearmnn_serializer.html#aac3bf4453f8a909ca23f290089df8ff1">GetFlatBufferActivationFunction</a>(descriptor.m_Function),</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  descriptor.m_A,</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  descriptor.m_B);</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <span class="comment">// Create the FlatBuffer ActivationLayer</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keyword">auto</span> flatBufferAdditionLayer = CreateActivationLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  flatBufferDescriptor);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  CreateAnyLayer(flatBufferAdditionLayer.o, serializer::Layer::Layer_ActivationLayer);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_aac3bf4453f8a909ca23f290089df8ff1"><div class="ttname"><a href="namespacearmnn_serializer.html#aac3bf4453f8a909ca23f290089df8ff1">armnnSerializer::GetFlatBufferActivationFunction</a></div><div class="ttdeci">serializer::ActivationFunction GetFlatBufferActivationFunction(armnn::ActivationFunction function)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_8cpp_source.html#l00027">Serializer.cpp:27</a></div></div> |
| 539 | </div><!-- fragment --> |
| 540 | </div> |
| 541 | </div> |
| 542 | <a id="a7b608d5a44e36e6cd96e915658d49da3"></a> |
| 543 | <h2 class="memtitle"><span class="permalink"><a href="#a7b608d5a44e36e6cd96e915658d49da3">◆ </a></span>VisitAdditionLayer()</h2> |
| 544 | |
| 545 | <div class="memitem"> |
| 546 | <div class="memproto"> |
| 547 | <table class="mlabels"> |
| 548 | <tr> |
| 549 | <td class="mlabels-left"> |
| 550 | <table class="memname"> |
| 551 | <tr> |
| 552 | <td class="memname">void VisitAdditionLayer </td> |
| 553 | <td>(</td> |
| 554 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 555 | <td class="paramname"><em>layer</em>, </td> |
| 556 | </tr> |
| 557 | <tr> |
| 558 | <td class="paramkey"></td> |
| 559 | <td></td> |
| 560 | <td class="paramtype">const char * </td> |
| 561 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 562 | </tr> |
| 563 | <tr> |
| 564 | <td></td> |
| 565 | <td>)</td> |
| 566 | <td></td><td></td> |
| 567 | </tr> |
| 568 | </table> |
| 569 | </td> |
| 570 | <td class="mlabels-right"> |
| 571 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 572 | </tr> |
| 573 | </table> |
| 574 | </div><div class="memdoc"> |
| 575 | <p>Function that an addition layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 576 | <table class="params"> |
| 577 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 578 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 579 | </table> |
| 580 | </dd> |
| 581 | </dl> |
| 582 | |
| 583 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a2d20b94b7de822f3d29ab12e47e3be4e">ILayerVisitor</a>.</p> |
| 584 | |
| 585 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00160">160</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 586 | |
| 587 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 588 | <div class="fragment"><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> {</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">auto</span> flatBufferAdditionBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Addition);</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <span class="comment">// Create the FlatBuffer AdditionLayer</span></div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keyword">auto</span> flatBufferAdditionLayer = serializer::CreateAdditionLayer(m_flatBufferBuilder, flatBufferAdditionBaseLayer);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  CreateAnyLayer(flatBufferAdditionLayer.o, serializer::Layer::Layer_AdditionLayer);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div></div><!-- fragment --> |
| 589 | </div> |
| 590 | </div> |
| 591 | <a id="ad7c76e1781b02bcc685ec87fe071b1fc"></a> |
| 592 | <h2 class="memtitle"><span class="permalink"><a href="#ad7c76e1781b02bcc685ec87fe071b1fc">◆ </a></span>VisitArgMinMaxLayer()</h2> |
| 593 | |
| 594 | <div class="memitem"> |
| 595 | <div class="memproto"> |
| 596 | <table class="mlabels"> |
| 597 | <tr> |
| 598 | <td class="mlabels-left"> |
| 599 | <table class="memname"> |
| 600 | <tr> |
| 601 | <td class="memname">void VisitArgMinMaxLayer </td> |
| 602 | <td>(</td> |
| 603 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 604 | <td class="paramname"><em>layer</em>, </td> |
| 605 | </tr> |
| 606 | <tr> |
| 607 | <td class="paramkey"></td> |
| 608 | <td></td> |
| 609 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_arg_min_max_descriptor.html">armnn::ArgMinMaxDescriptor</a> & </td> |
| 610 | <td class="paramname"><em>argMinMaxDescriptor</em>, </td> |
| 611 | </tr> |
| 612 | <tr> |
| 613 | <td class="paramkey"></td> |
| 614 | <td></td> |
| 615 | <td class="paramtype">const char * </td> |
| 616 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 617 | </tr> |
| 618 | <tr> |
| 619 | <td></td> |
| 620 | <td>)</td> |
| 621 | <td></td><td></td> |
| 622 | </tr> |
| 623 | </table> |
| 624 | </td> |
| 625 | <td class="mlabels-right"> |
| 626 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 627 | </tr> |
| 628 | </table> |
| 629 | </div><div class="memdoc"> |
| 630 | <p>Function that an arg min max layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 631 | <table class="params"> |
| 632 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 633 | <tr><td class="paramname">argMinMaxDescriptor</td><td>- ArgMinMaxDescriptor to configure the activation. </td></tr> |
| 634 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 635 | </table> |
| 636 | </dd> |
| 637 | </dl> |
| 638 | |
| 639 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a8423316906ebe6ae6d28c7f69ad91248">ILayerVisitor</a>.</p> |
| 640 | |
| 641 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00175">175</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 642 | |
| 643 | <p class="reference">References <a class="el" href="_serializer_8cpp_source.html#l00054">armnnSerializer::GetFlatBufferArgMinMaxFunction()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00058">ArgMinMaxDescriptor::m_Axis</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00056">ArgMinMaxDescriptor::m_Function</a>.</p> |
| 644 | |
| 645 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 646 | <div class="fragment"><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_ArgMinMax);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="comment">// Create FlatBuffer Descriptor</span></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keyword">auto</span> flatBufferDescriptor = CreateArgMinMaxDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <a class="code" href="namespacearmnn_serializer.html#a6fcb1eefde815b0b7465a689c8d26b50">GetFlatBufferArgMinMaxFunction</a>(descriptor.m_Function),</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  descriptor.m_Axis);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="comment">// Create FlatBuffer ArgMinMaxLayer</span></div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  <span class="keyword">auto</span> flatBufferLayer = CreateArgMinMaxLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  flatBufferDescriptor);</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span> </div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_ArgMinMaxLayer);</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6fcb1eefde815b0b7465a689c8d26b50"><div class="ttname"><a href="namespacearmnn_serializer.html#a6fcb1eefde815b0b7465a689c8d26b50">armnnSerializer::GetFlatBufferArgMinMaxFunction</a></div><div class="ttdeci">serializer::ArgMinMaxFunction GetFlatBufferArgMinMaxFunction(armnn::ArgMinMaxFunction function)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_8cpp_source.html#l00054">Serializer.cpp:54</a></div></div> |
| 647 | </div><!-- fragment --> |
| 648 | </div> |
| 649 | </div> |
| 650 | <a id="a53e3051bacbfc5d901184eb7cb29c8c2"></a> |
| 651 | <h2 class="memtitle"><span class="permalink"><a href="#a53e3051bacbfc5d901184eb7cb29c8c2">◆ </a></span>VisitBatchNormalizationLayer()</h2> |
| 652 | |
| 653 | <div class="memitem"> |
| 654 | <div class="memproto"> |
| 655 | <table class="mlabels"> |
| 656 | <tr> |
| 657 | <td class="mlabels-left"> |
| 658 | <table class="memname"> |
| 659 | <tr> |
| 660 | <td class="memname">void VisitBatchNormalizationLayer </td> |
| 661 | <td>(</td> |
| 662 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 663 | <td class="paramname"><em>layer</em>, </td> |
| 664 | </tr> |
| 665 | <tr> |
| 666 | <td class="paramkey"></td> |
| 667 | <td></td> |
| 668 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_batch_normalization_descriptor.html">armnn::BatchNormalizationDescriptor</a> & </td> |
| 669 | <td class="paramname"><em>desc</em>, </td> |
| 670 | </tr> |
| 671 | <tr> |
| 672 | <td class="paramkey"></td> |
| 673 | <td></td> |
| 674 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 675 | <td class="paramname"><em>mean</em>, </td> |
| 676 | </tr> |
| 677 | <tr> |
| 678 | <td class="paramkey"></td> |
| 679 | <td></td> |
| 680 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 681 | <td class="paramname"><em>variance</em>, </td> |
| 682 | </tr> |
| 683 | <tr> |
| 684 | <td class="paramkey"></td> |
| 685 | <td></td> |
| 686 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 687 | <td class="paramname"><em>beta</em>, </td> |
| 688 | </tr> |
| 689 | <tr> |
| 690 | <td class="paramkey"></td> |
| 691 | <td></td> |
| 692 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 693 | <td class="paramname"><em>gamma</em>, </td> |
| 694 | </tr> |
| 695 | <tr> |
| 696 | <td class="paramkey"></td> |
| 697 | <td></td> |
| 698 | <td class="paramtype">const char * </td> |
| 699 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 700 | </tr> |
| 701 | <tr> |
| 702 | <td></td> |
| 703 | <td>)</td> |
| 704 | <td></td><td></td> |
| 705 | </tr> |
| 706 | </table> |
| 707 | </td> |
| 708 | <td class="mlabels-right"> |
| 709 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 710 | </tr> |
| 711 | </table> |
| 712 | </div><div class="memdoc"> |
| 713 | <p>Function that a batch normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 714 | <table class="params"> |
| 715 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 716 | <tr><td class="paramname">mean</td><td>- Pre-calculated mean for each channel. </td></tr> |
| 717 | <tr><td class="paramname">variance</td><td>- Pre-calculated variance for each channel. </td></tr> |
| 718 | <tr><td class="paramname">beta</td><td>- Per-channel additive factor. </td></tr> |
| 719 | <tr><td class="paramname">gamma</td><td>- Per-channel multiplicative factor. </td></tr> |
| 720 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 721 | </table> |
| 722 | </dd> |
| 723 | </dl> |
| 724 | |
| 725 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a9e642355474f31268e66a404e6c1b81d">ILayerVisitor</a>.</p> |
| 726 | |
| 727 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00228">228</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 728 | |
| 729 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00625">BatchNormalizationDescriptor::m_DataLayout</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00623">BatchNormalizationDescriptor::m_Eps</a>.</p> |
| 730 | |
| 731 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 732 | <div class="fragment"><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> {</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keyword">auto</span> fbBatchNormalizationBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_BatchNormalization);</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keyword">auto</span> fbBatchNormalizationDescriptor = serializer::CreateBatchNormalizationDescriptor(</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  batchNormDescriptor.m_Eps,</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(batchNormDescriptor.m_DataLayout));</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> </div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <span class="keyword">auto</span> fbMeanConstTensorInfo = CreateConstTensorInfo(mean);</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keyword">auto</span> fbVarianceConstTensorInfo = CreateConstTensorInfo(variance);</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  <span class="keyword">auto</span> fbBetaConstTensorInfo = CreateConstTensorInfo(beta);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">auto</span> fbGammaConstTensorInfo = CreateConstTensorInfo(gamma);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  <span class="keyword">auto</span> fbBatchNormalizationLayer = serializer::CreateBatchNormalizationLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  fbBatchNormalizationBaseLayer,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  fbBatchNormalizationDescriptor,</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  fbMeanConstTensorInfo,</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  fbVarianceConstTensorInfo,</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  fbBetaConstTensorInfo,</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  fbGammaConstTensorInfo);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  CreateAnyLayer(fbBatchNormalizationLayer.o, serializer::Layer::Layer_BatchNormalizationLayer);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 733 | </div><!-- fragment --> |
| 734 | </div> |
| 735 | </div> |
| 736 | <a id="a1d1235559a11a1aa63724eba742ad29c"></a> |
| 737 | <h2 class="memtitle"><span class="permalink"><a href="#a1d1235559a11a1aa63724eba742ad29c">◆ </a></span>VisitBatchToSpaceNdLayer()</h2> |
| 738 | |
| 739 | <div class="memitem"> |
| 740 | <div class="memproto"> |
| 741 | <table class="mlabels"> |
| 742 | <tr> |
| 743 | <td class="mlabels-left"> |
| 744 | <table class="memname"> |
| 745 | <tr> |
| 746 | <td class="memname">void VisitBatchToSpaceNdLayer </td> |
| 747 | <td>(</td> |
| 748 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 749 | <td class="paramname"><em>layer</em>, </td> |
| 750 | </tr> |
| 751 | <tr> |
| 752 | <td class="paramkey"></td> |
| 753 | <td></td> |
| 754 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_batch_to_space_nd_descriptor.html">armnn::BatchToSpaceNdDescriptor</a> & </td> |
| 755 | <td class="paramname"><em>batchToSpaceNdDescriptor</em>, </td> |
| 756 | </tr> |
| 757 | <tr> |
| 758 | <td class="paramkey"></td> |
| 759 | <td></td> |
| 760 | <td class="paramtype">const char * </td> |
| 761 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 762 | </tr> |
| 763 | <tr> |
| 764 | <td></td> |
| 765 | <td>)</td> |
| 766 | <td></td><td></td> |
| 767 | </tr> |
| 768 | </table> |
| 769 | </td> |
| 770 | <td class="mlabels-right"> |
| 771 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 772 | </tr> |
| 773 | </table> |
| 774 | </div><div class="memdoc"> |
| 775 | <p>Function that a batch to space ND layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 776 | <table class="params"> |
| 777 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 778 | <tr><td class="paramname">batchToSpaceNdDescriptor</td><td>- Description of the layer. </td></tr> |
| 779 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 780 | </table> |
| 781 | </dd> |
| 782 | </dl> |
| 783 | |
| 784 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a1cee693185bcda15bd777008e60c7cf7">ILayerVisitor</a>.</p> |
| 785 | |
| 786 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00198">198</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 787 | |
| 788 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00680">BatchToSpaceNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l00682">BatchToSpaceNdDescriptor::m_Crops</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00684">BatchToSpaceNdDescriptor::m_DataLayout</a>.</p> |
| 789 | |
| 790 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 791 | <div class="fragment"><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> {</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_BatchToSpaceNd);</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  std::vector<unsigned int> crops;</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  crops.reserve(descriptor.m_Crops.size() * 2);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& crop : descriptor.m_Crops)</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  {</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  crops.push_back(crop.first);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  crops.push_back(crop.second);</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  CreateBatchToSpaceNdDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  m_flatBufferBuilder.CreateVector(descriptor.m_BlockShape),</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  m_flatBufferBuilder.CreateVector(crops),</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.m_DataLayout));</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateBatchToSpaceNdLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  flatBufferDescriptor);</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span> </div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_BatchToSpaceNdLayer);</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 792 | </div><!-- fragment --> |
| 793 | </div> |
| 794 | </div> |
| 795 | <a id="afb1afddc0f2cb1caac0daf5bbd13c8c8"></a> |
| 796 | <h2 class="memtitle"><span class="permalink"><a href="#afb1afddc0f2cb1caac0daf5bbd13c8c8">◆ </a></span>VisitComparisonLayer()</h2> |
| 797 | |
| 798 | <div class="memitem"> |
| 799 | <div class="memproto"> |
| 800 | <table class="mlabels"> |
| 801 | <tr> |
| 802 | <td class="mlabels-left"> |
| 803 | <table class="memname"> |
| 804 | <tr> |
| 805 | <td class="memname">void VisitComparisonLayer </td> |
| 806 | <td>(</td> |
| 807 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 808 | <td class="paramname"><em>layer</em>, </td> |
| 809 | </tr> |
| 810 | <tr> |
| 811 | <td class="paramkey"></td> |
| 812 | <td></td> |
| 813 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_comparison_descriptor.html">armnn::ComparisonDescriptor</a> & </td> |
| 814 | <td class="paramname"><em>comparisonDescriptor</em>, </td> |
| 815 | </tr> |
| 816 | <tr> |
| 817 | <td class="paramkey"></td> |
| 818 | <td></td> |
| 819 | <td class="paramtype">const char * </td> |
| 820 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 821 | </tr> |
| 822 | <tr> |
| 823 | <td></td> |
| 824 | <td>)</td> |
| 825 | <td></td><td></td> |
| 826 | </tr> |
| 827 | </table> |
| 828 | </td> |
| 829 | <td class="mlabels-right"> |
| 830 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 831 | </tr> |
| 832 | </table> |
| 833 | </div><div class="memdoc"> |
| 834 | <p>Function a Comparison layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 835 | <table class="params"> |
| 836 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 837 | <tr><td class="paramname">comparisonDescriptor</td><td>- Description of the layer. </td></tr> |
| 838 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 839 | </table> |
| 840 | </dd> |
| 841 | </dl> |
| 842 | |
| 843 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a6a1a6856fe4210d9c84c4fb86b4b661e">ILayerVisitor</a>.</p> |
| 844 | |
| 845 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00259">259</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 846 | |
| 847 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00011">armnnSerializer::GetFlatBufferComparisonOperation()</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00078">ComparisonDescriptor::m_Operation</a>.</p> |
| 848 | |
| 849 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 850 | <div class="fragment"><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> {</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Comparison);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <span class="keyword">auto</span> fbDescriptor = serializer::CreateComparisonDescriptor(</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <a class="code" href="namespacearmnn_serializer.html#a1c88cccaeb232c6fe8022c7006bb21bc">GetFlatBufferComparisonOperation</a>(descriptor.m_Operation));</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateComparisonLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_ComparisonLayer);</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a1c88cccaeb232c6fe8022c7006bb21bc"><div class="ttname"><a href="namespacearmnn_serializer.html#a1c88cccaeb232c6fe8022c7006bb21bc">armnnSerializer::GetFlatBufferComparisonOperation</a></div><div class="ttdeci">armnnSerializer::ComparisonOperation GetFlatBufferComparisonOperation(armnn::ComparisonOperation comparisonOperation)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00011">SerializerUtils.cpp:11</a></div></div> |
| 851 | </div><!-- fragment --> |
| 852 | </div> |
| 853 | </div> |
| 854 | <a id="a148d342b40eada32d536c2ccda673405"></a> |
| 855 | <h2 class="memtitle"><span class="permalink"><a href="#a148d342b40eada32d536c2ccda673405">◆ </a></span>VisitConcatLayer()</h2> |
| 856 | |
| 857 | <div class="memitem"> |
| 858 | <div class="memproto"> |
| 859 | <table class="mlabels"> |
| 860 | <tr> |
| 861 | <td class="mlabels-left"> |
| 862 | <table class="memname"> |
| 863 | <tr> |
| 864 | <td class="memname">void VisitConcatLayer </td> |
| 865 | <td>(</td> |
| 866 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 867 | <td class="paramname"><em>layer</em>, </td> |
| 868 | </tr> |
| 869 | <tr> |
| 870 | <td class="paramkey"></td> |
| 871 | <td></td> |
| 872 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#a7863c179ff92feec660c48ab7b95ae55">armnn::ConcatDescriptor</a> & </td> |
| 873 | <td class="paramname"><em>concatDescriptor</em>, </td> |
| 874 | </tr> |
| 875 | <tr> |
| 876 | <td class="paramkey"></td> |
| 877 | <td></td> |
| 878 | <td class="paramtype">const char * </td> |
| 879 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 880 | </tr> |
| 881 | <tr> |
| 882 | <td></td> |
| 883 | <td>)</td> |
| 884 | <td></td><td></td> |
| 885 | </tr> |
| 886 | </table> |
| 887 | </td> |
| 888 | <td class="mlabels-right"> |
| 889 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 890 | </tr> |
| 891 | </table> |
| 892 | </div><div class="memdoc"> |
| 893 | <p>Function that a concat layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 894 | <table class="params"> |
| 895 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 896 | <tr><td class="paramname">concatDescriptor</td><td>- ConcatDescriptor (synonym for OriginsDescriptor) to configure the concatenation process. Number of Views must be equal to the number of inputs, and their order must match - e.g. first view corresponds to the first input, second view to the second input, etc.... </td></tr> |
| 897 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 898 | </table> |
| 899 | </dd> |
| 900 | </dl> |
| 901 | |
| 902 | <p>Reimplemented from <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aeb90d7587f7887aee1f2b43261d4ee5c">ILayerVisitor</a>.</p> |
| 903 | |
| 904 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00725">725</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 905 | |
| 906 | <p class="reference">References <a class="el" href="_descriptors_8cpp_source.html#l00154">OriginsDescriptor::GetConcatAxis()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00184">OriginsDescriptor::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00179">OriginsDescriptor::GetNumViews()</a>, and <a class="el" href="_descriptors_8cpp_source.html#l00189">OriginsDescriptor::GetViewOrigin()</a>.</p> |
| 907 | |
| 908 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 909 | <div class="fragment"><div class="line"><a name="l00728"></a><span class="lineno"> 728</span> {</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span> </div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  <span class="keyword">auto</span> flatBufferConcatBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Concat);</div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span> </div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  std::vector<flatbuffers::Offset<UintVector>> views;</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> v = 0; v < concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">GetNumViews</a>(); ++v)</div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  {</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  <span class="keyword">const</span> uint32_t* origin = concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#ab78e6fe963508c1ac5c00d04bb3361a3">GetViewOrigin</a>(v);</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  std::vector<uint32_t> origins;</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> d = 0; d < concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">GetNumDimensions</a>(); ++d)</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  {</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  origins.push_back(origin[d]);</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  }</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  <span class="keyword">auto</span> view = m_flatBufferBuilder.CreateVector(origins);</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  <span class="keyword">auto</span> uintVector = CreateUintVector(m_flatBufferBuilder, view);</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  views.push_back(uintVector);</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  }</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span> </div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  <span class="keyword">auto</span> flatBufferConcatDescriptor = CreateOriginsDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a379929e3b277f1ef94f3ce645870589d">GetConcatAxis</a>(),</div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">GetNumViews</a>(),</div><div class="line"><a name="l00750"></a><span class="lineno"> 750</span>  concatDescriptor.<a class="code" href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">GetNumDimensions</a>(),</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  m_flatBufferBuilder.CreateVector(views));</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span> </div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <span class="keyword">auto</span> flatBufferLayer = CreateConcatLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span>  flatBufferConcatBaseLayer,</div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  flatBufferConcatDescriptor);</div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span> </div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_ConcatLayer);</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span> }</div><div class="ttc" id="structarmnn_1_1_origins_descriptor_html_ab78e6fe963508c1ac5c00d04bb3361a3"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#ab78e6fe963508c1ac5c00d04bb3361a3">armnn::OriginsDescriptor::GetViewOrigin</a></div><div class="ttdeci">const uint32_t * GetViewOrigin(uint32_t idx) const</div><div class="ttdoc">Return the view origin at the int value idx. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00189">Descriptors.cpp:189</a></div></div> |
| 910 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a35546e7b56e6e972a495b48748478ede"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a35546e7b56e6e972a495b48748478ede">armnn::OriginsDescriptor::GetNumViews</a></div><div class="ttdeci">uint32_t GetNumViews() const</div><div class="ttdoc">Get the number of views. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00179">Descriptors.cpp:179</a></div></div> |
| 911 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a78e8266be865fdd92cadd04d6e25ae1f"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a78e8266be865fdd92cadd04d6e25ae1f">armnn::OriginsDescriptor::GetNumDimensions</a></div><div class="ttdeci">uint32_t GetNumDimensions() const</div><div class="ttdoc">Get the number of dimensions. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00184">Descriptors.cpp:184</a></div></div> |
| 912 | <div class="ttc" id="structarmnn_1_1_origins_descriptor_html_a379929e3b277f1ef94f3ce645870589d"><div class="ttname"><a href="structarmnn_1_1_origins_descriptor.html#a379929e3b277f1ef94f3ce645870589d">armnn::OriginsDescriptor::GetConcatAxis</a></div><div class="ttdeci">unsigned int GetConcatAxis() const</div><div class="ttdoc">Get the concatenation axis value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8cpp_source.html#l00154">Descriptors.cpp:154</a></div></div> |
| 913 | </div><!-- fragment --> |
| 914 | </div> |
| 915 | </div> |
| 916 | <a id="ae7bb76117b0e10efef5d3d6637df4480"></a> |
| 917 | <h2 class="memtitle"><span class="permalink"><a href="#ae7bb76117b0e10efef5d3d6637df4480">◆ </a></span>VisitConstantLayer()</h2> |
| 918 | |
| 919 | <div class="memitem"> |
| 920 | <div class="memproto"> |
| 921 | <table class="mlabels"> |
| 922 | <tr> |
| 923 | <td class="mlabels-left"> |
| 924 | <table class="memname"> |
| 925 | <tr> |
| 926 | <td class="memname">void VisitConstantLayer </td> |
| 927 | <td>(</td> |
| 928 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 929 | <td class="paramname"><em>layer</em>, </td> |
| 930 | </tr> |
| 931 | <tr> |
| 932 | <td class="paramkey"></td> |
| 933 | <td></td> |
| 934 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 935 | <td class="paramname"><em>input</em>, </td> |
| 936 | </tr> |
| 937 | <tr> |
| 938 | <td class="paramkey"></td> |
| 939 | <td></td> |
| 940 | <td class="paramtype">const char * </td> |
| 941 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 942 | </tr> |
| 943 | <tr> |
| 944 | <td></td> |
| 945 | <td>)</td> |
| 946 | <td></td><td></td> |
| 947 | </tr> |
| 948 | </table> |
| 949 | </td> |
| 950 | <td class="mlabels-right"> |
| 951 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 952 | </tr> |
| 953 | </table> |
| 954 | </div><div class="memdoc"> |
| 955 | <p>Function a layer with no inputs and a single output, which always corresponds to the passed in constant tensor should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 956 | <table class="params"> |
| 957 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 958 | <tr><td class="paramname">input</td><td>- Tensor to be provided as the only output of the layer. The layer will maintain its own copy of the tensor data, meaning the memory referenced by <em>input</em> can be freed or reused after this function is called. </td></tr> |
| 959 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 960 | </table> |
| 961 | </dd> |
| 962 | </dl> |
| 963 | |
| 964 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a2f123a6a99ac143c0f3806cb505765cd">ILayerVisitor</a>.</p> |
| 965 | |
| 966 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00275">275</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 967 | |
| 968 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 969 | <div class="fragment"><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> {</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <span class="keyword">auto</span> flatBufferConstantBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Constant);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keyword">auto</span> flatBufferConstTensorInfo = CreateConstTensorInfo(input);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> </div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  <span class="comment">// Create the FlatBuffer ConstantLayer</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  <span class="keyword">auto</span> flatBufferLayer = CreateConstantLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  flatBufferConstantBaseLayer,</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  flatBufferConstTensorInfo);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span> </div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_ConstantLayer);</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span> }</div></div><!-- fragment --> |
| 970 | </div> |
| 971 | </div> |
| 972 | <a id="af4c7002e267521e7ea0933ef2b767f9e"></a> |
| 973 | <h2 class="memtitle"><span class="permalink"><a href="#af4c7002e267521e7ea0933ef2b767f9e">◆ </a></span>VisitConvolution2dLayer()</h2> |
| 974 | |
| 975 | <div class="memitem"> |
| 976 | <div class="memproto"> |
| 977 | <table class="mlabels"> |
| 978 | <tr> |
| 979 | <td class="mlabels-left"> |
| 980 | <table class="memname"> |
| 981 | <tr> |
| 982 | <td class="memname">void VisitConvolution2dLayer </td> |
| 983 | <td>(</td> |
| 984 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 985 | <td class="paramname"><em>layer</em>, </td> |
| 986 | </tr> |
| 987 | <tr> |
| 988 | <td class="paramkey"></td> |
| 989 | <td></td> |
| 990 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_convolution2d_descriptor.html">armnn::Convolution2dDescriptor</a> & </td> |
| 991 | <td class="paramname"><em>convolution2dDescriptor</em>, </td> |
| 992 | </tr> |
| 993 | <tr> |
| 994 | <td class="paramkey"></td> |
| 995 | <td></td> |
| 996 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 997 | <td class="paramname"><em>weights</em>, </td> |
| 998 | </tr> |
| 999 | <tr> |
| 1000 | <td class="paramkey"></td> |
| 1001 | <td></td> |
| 1002 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > & </td> |
| 1003 | <td class="paramname"><em>biases</em>, </td> |
| 1004 | </tr> |
| 1005 | <tr> |
| 1006 | <td class="paramkey"></td> |
| 1007 | <td></td> |
| 1008 | <td class="paramtype">const char * </td> |
| 1009 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1010 | </tr> |
| 1011 | <tr> |
| 1012 | <td></td> |
| 1013 | <td>)</td> |
| 1014 | <td></td><td></td> |
| 1015 | </tr> |
| 1016 | </table> |
| 1017 | </td> |
| 1018 | <td class="mlabels-right"> |
| 1019 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1020 | </tr> |
| 1021 | </table> |
| 1022 | </div><div class="memdoc"> |
| 1023 | <p>Function that a 2D convolution layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1024 | <table class="params"> |
| 1025 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1026 | <tr><td class="paramname">convolution2dDescriptor</td><td>- Description of the 2D convolution layer. </td></tr> |
| 1027 | <tr><td class="paramname">weights</td><td>- Tensor for the weights data. </td></tr> |
| 1028 | <tr><td class="paramname">biases</td><td>- Optional tensor for the bias data. If specified, must match the output tensor shape. </td></tr> |
| 1029 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1030 | </table> |
| 1031 | </dd> |
| 1032 | </dl> |
| 1033 | |
| 1034 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#abc8fe4c6cbc8fa2b13c525500dddfbf6">ILayerVisitor</a>.</p> |
| 1035 | |
| 1036 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00296">296</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1037 | |
| 1038 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_optional_8hpp_source.html#l00053">OptionalBase::has_value()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00438">Convolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00440">Convolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00434">Convolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00436">Convolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00428">Convolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00422">Convolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00424">Convolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00426">Convolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00430">Convolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00432">Convolution2dDescriptor::m_StrideY</a>, and <a class="el" href="_optional_8hpp_source.html#l00146">OptionalReferenceSwitch< IsReference, T >::value()</a>.</p> |
| 1039 | |
| 1040 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1041 | <div class="fragment"><div class="line"><a name="l00301"></a><span class="lineno"> 301</span> {</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Convolution2d);</div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span> </div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <span class="keyword">auto</span> flatBufferDescriptor = CreateConvolution2dDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  descriptor.m_PadLeft,</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  descriptor.m_PadRight,</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  descriptor.m_PadTop,</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  descriptor.m_PadBottom,</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  descriptor.m_StrideX,</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  descriptor.m_StrideY,</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  descriptor.m_DilationX,</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  descriptor.m_DilationY,</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  descriptor.m_BiasEnabled,</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.m_DataLayout));</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keyword">auto</span> flatBufferWeightsConstTensorInfo = CreateConstTensorInfo(weights);</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  flatbuffers::Offset<serializer::ConstTensor> flatBufferBiasesConstTensorInfo;</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">if</span> (biases.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  {</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  flatBufferBiasesConstTensorInfo = CreateConstTensorInfo(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>());</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  }</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span> </div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="comment">// Create the FlatBuffer Convolution2dLayer</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <span class="keyword">auto</span> flatBufferLayer = CreateConvolution2dLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  flatBufferDescriptor,</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  flatBufferWeightsConstTensorInfo,</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  flatBufferBiasesConstTensorInfo);</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_Convolution2dLayer);</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 1042 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 1043 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 1044 | </div><!-- fragment --> |
| 1045 | </div> |
| 1046 | </div> |
| 1047 | <a id="ac30449d327001492692fa23a666efd7f"></a> |
| 1048 | <h2 class="memtitle"><span class="permalink"><a href="#ac30449d327001492692fa23a666efd7f">◆ </a></span>VisitDepthToSpaceLayer()</h2> |
| 1049 | |
| 1050 | <div class="memitem"> |
| 1051 | <div class="memproto"> |
| 1052 | <table class="mlabels"> |
| 1053 | <tr> |
| 1054 | <td class="mlabels-left"> |
| 1055 | <table class="memname"> |
| 1056 | <tr> |
| 1057 | <td class="memname">void VisitDepthToSpaceLayer </td> |
| 1058 | <td>(</td> |
| 1059 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1060 | <td class="paramname"><em>layer</em>, </td> |
| 1061 | </tr> |
| 1062 | <tr> |
| 1063 | <td class="paramkey"></td> |
| 1064 | <td></td> |
| 1065 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#a3647f60510bc8ddaced01c51b0ee8714">armnn::DepthToSpaceDescriptor</a> & </td> |
| 1066 | <td class="paramname"><em>depthToSpaceDescriptor</em>, </td> |
| 1067 | </tr> |
| 1068 | <tr> |
| 1069 | <td class="paramkey"></td> |
| 1070 | <td></td> |
| 1071 | <td class="paramtype">const char * </td> |
| 1072 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1073 | </tr> |
| 1074 | <tr> |
| 1075 | <td></td> |
| 1076 | <td>)</td> |
| 1077 | <td></td><td></td> |
| 1078 | </tr> |
| 1079 | </table> |
| 1080 | </td> |
| 1081 | <td class="mlabels-right"> |
| 1082 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1083 | </tr> |
| 1084 | </table> |
| 1085 | </div><div class="memdoc"> |
| 1086 | <p>Function a depth to space layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1087 | <table class="params"> |
| 1088 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1089 | <tr><td class="paramname">depthToSpaceDescriptor</td><td>- Parameters for the depth to space operation. </td></tr> |
| 1090 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1091 | </table> |
| 1092 | </dd> |
| 1093 | </dl> |
| 1094 | |
| 1095 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a72d308d6f24ffb8846375d770394af66">ILayerVisitor</a>.</p> |
| 1096 | |
| 1097 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00337">337</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1098 | |
| 1099 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00827">SpaceToDepthDescriptor::m_BlockSize</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00830">SpaceToDepthDescriptor::m_DataLayout</a>.</p> |
| 1100 | |
| 1101 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1102 | <div class="fragment"><div class="line"><a name="l00340"></a><span class="lineno"> 340</span> {</div><div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> </div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_DepthToSpace);</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="keyword">auto</span> fbDescriptor = CreateDepthToSpaceDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  descriptor.m_BlockSize,</div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.m_DataLayout));</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateDepthToSpaceLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span> </div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_DepthToSpaceLayer);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 1103 | </div><!-- fragment --> |
| 1104 | </div> |
| 1105 | </div> |
| 1106 | <a id="afd318b4ffed3c04a4807ca2c13077ab7"></a> |
| 1107 | <h2 class="memtitle"><span class="permalink"><a href="#afd318b4ffed3c04a4807ca2c13077ab7">◆ </a></span>VisitDepthwiseConvolution2dLayer()</h2> |
| 1108 | |
| 1109 | <div class="memitem"> |
| 1110 | <div class="memproto"> |
| 1111 | <table class="mlabels"> |
| 1112 | <tr> |
| 1113 | <td class="mlabels-left"> |
| 1114 | <table class="memname"> |
| 1115 | <tr> |
| 1116 | <td class="memname">void VisitDepthwiseConvolution2dLayer </td> |
| 1117 | <td>(</td> |
| 1118 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1119 | <td class="paramname"><em>layer</em>, </td> |
| 1120 | </tr> |
| 1121 | <tr> |
| 1122 | <td class="paramkey"></td> |
| 1123 | <td></td> |
| 1124 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_depthwise_convolution2d_descriptor.html">armnn::DepthwiseConvolution2dDescriptor</a> & </td> |
| 1125 | <td class="paramname"><em>convolution2dDescriptor</em>, </td> |
| 1126 | </tr> |
| 1127 | <tr> |
| 1128 | <td class="paramkey"></td> |
| 1129 | <td></td> |
| 1130 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 1131 | <td class="paramname"><em>weights</em>, </td> |
| 1132 | </tr> |
| 1133 | <tr> |
| 1134 | <td class="paramkey"></td> |
| 1135 | <td></td> |
| 1136 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > & </td> |
| 1137 | <td class="paramname"><em>biases</em>, </td> |
| 1138 | </tr> |
| 1139 | <tr> |
| 1140 | <td class="paramkey"></td> |
| 1141 | <td></td> |
| 1142 | <td class="paramtype">const char * </td> |
| 1143 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1144 | </tr> |
| 1145 | <tr> |
| 1146 | <td></td> |
| 1147 | <td>)</td> |
| 1148 | <td></td><td></td> |
| 1149 | </tr> |
| 1150 | </table> |
| 1151 | </td> |
| 1152 | <td class="mlabels-right"> |
| 1153 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1154 | </tr> |
| 1155 | </table> |
| 1156 | </div><div class="memdoc"> |
| 1157 | <p>Function that a 2D depthwise convolution layer with biases should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1158 | <table class="params"> |
| 1159 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1160 | <tr><td class="paramname">convolution2dDescriptor</td><td>- Description of the 2D depthwise convolution layer. </td></tr> |
| 1161 | <tr><td class="paramname">weights</td><td>- Tensor for the weights. Expected format: [channelMultiplier, inputChannels, height, width]. </td></tr> |
| 1162 | <tr><td class="paramname">biases</td><td>- Optional tensor for the bias data. If specified, must match the output tensor shape. </td></tr> |
| 1163 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1164 | </table> |
| 1165 | </dd> |
| 1166 | </dl> |
| 1167 | |
| 1168 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ad39aaac8f8fb790ae364c87f1a249d68">ILayerVisitor</a>.</p> |
| 1169 | |
| 1170 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00353">353</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1171 | |
| 1172 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_optional_8hpp_source.html#l00053">OptionalBase::has_value()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00490">DepthwiseConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00492">DepthwiseConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00486">DepthwiseConvolution2dDescriptor::m_DilationX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00488">DepthwiseConvolution2dDescriptor::m_DilationY</a>, <a class="el" href="_descriptors_8hpp_source.html#l00480">DepthwiseConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00474">DepthwiseConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00476">DepthwiseConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00478">DepthwiseConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00482">DepthwiseConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00484">DepthwiseConvolution2dDescriptor::m_StrideY</a>, and <a class="el" href="_optional_8hpp_source.html#l00146">OptionalReferenceSwitch< IsReference, T >::value()</a>.</p> |
| 1173 | |
| 1174 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1175 | <div class="fragment"><div class="line"><a name="l00358"></a><span class="lineno"> 358</span> {</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_DepthwiseConvolution2d);</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keyword">auto</span> fbDescriptor = CreateDepthwiseConvolution2dDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  descriptor.m_PadLeft,</div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  descriptor.m_PadRight,</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  descriptor.m_PadTop,</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  descriptor.m_PadBottom,</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  descriptor.m_StrideX,</div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  descriptor.m_StrideY,</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  descriptor.m_DilationX,</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  descriptor.m_DilationY,</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  descriptor.m_BiasEnabled,</div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.m_DataLayout));</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  flatbuffers::Offset<serializer::ConstTensor> fbWeightsConstTensorInfo = CreateConstTensorInfo(weights);</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  flatbuffers::Offset<serializer::ConstTensor> fbBiasesConstTensorInfo;</div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="keywordflow">if</span> (biases.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  {</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  fbBiasesConstTensorInfo = CreateConstTensorInfo(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>());</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  }</div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span> </div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <span class="keyword">auto</span> flatBufferLayer = CreateDepthwiseConvolution2dLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  fbBaseLayer,</div><div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  fbDescriptor,</div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  fbWeightsConstTensorInfo,</div><div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  fbBiasesConstTensorInfo);</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_DepthwiseConvolution2dLayer);</div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 1176 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 1177 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 1178 | </div><!-- fragment --> |
| 1179 | </div> |
| 1180 | </div> |
| 1181 | <a id="a9a502d24112baa19f11c76bc651e0cc0"></a> |
| 1182 | <h2 class="memtitle"><span class="permalink"><a href="#a9a502d24112baa19f11c76bc651e0cc0">◆ </a></span>VisitDequantizeLayer()</h2> |
| 1183 | |
| 1184 | <div class="memitem"> |
| 1185 | <div class="memproto"> |
| 1186 | <table class="mlabels"> |
| 1187 | <tr> |
| 1188 | <td class="mlabels-left"> |
| 1189 | <table class="memname"> |
| 1190 | <tr> |
| 1191 | <td class="memname">void VisitDequantizeLayer </td> |
| 1192 | <td>(</td> |
| 1193 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1194 | <td class="paramname"><em>layer</em>, </td> |
| 1195 | </tr> |
| 1196 | <tr> |
| 1197 | <td class="paramkey"></td> |
| 1198 | <td></td> |
| 1199 | <td class="paramtype">const char * </td> |
| 1200 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1201 | </tr> |
| 1202 | <tr> |
| 1203 | <td></td> |
| 1204 | <td>)</td> |
| 1205 | <td></td><td></td> |
| 1206 | </tr> |
| 1207 | </table> |
| 1208 | </td> |
| 1209 | <td class="mlabels-right"> |
| 1210 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1211 | </tr> |
| 1212 | </table> |
| 1213 | </div><div class="memdoc"> |
| 1214 | <p>Function that a Dequantize layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1215 | <table class="params"> |
| 1216 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1217 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1218 | </table> |
| 1219 | </dd> |
| 1220 | </dl> |
| 1221 | |
| 1222 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a0fa32cbc3ca68467c749d50e844faeaf">ILayerVisitor</a>.</p> |
| 1223 | |
| 1224 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00390">390</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1225 | |
| 1226 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1227 | <div class="fragment"><div class="line"><a name="l00392"></a><span class="lineno"> 392</span> {</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div><div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keyword">auto</span> fbDequantizeBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Dequantize);</div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <span class="keyword">auto</span> fbDequantizeLayer = serializer::CreateDequantizeLayer(m_flatBufferBuilder, fbDequantizeBaseLayer);</div><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> </div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  CreateAnyLayer(fbDequantizeLayer.o, serializer::Layer::Layer_DequantizeLayer);</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span> }</div></div><!-- fragment --> |
| 1228 | </div> |
| 1229 | </div> |
| 1230 | <a id="ace945f2f1d416b240f9c0344671b17ad"></a> |
| 1231 | <h2 class="memtitle"><span class="permalink"><a href="#ace945f2f1d416b240f9c0344671b17ad">◆ </a></span>VisitDetectionPostProcessLayer()</h2> |
| 1232 | |
| 1233 | <div class="memitem"> |
| 1234 | <div class="memproto"> |
| 1235 | <table class="mlabels"> |
| 1236 | <tr> |
| 1237 | <td class="mlabels-left"> |
| 1238 | <table class="memname"> |
| 1239 | <tr> |
| 1240 | <td class="memname">void VisitDetectionPostProcessLayer </td> |
| 1241 | <td>(</td> |
| 1242 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1243 | <td class="paramname"><em>layer</em>, </td> |
| 1244 | </tr> |
| 1245 | <tr> |
| 1246 | <td class="paramkey"></td> |
| 1247 | <td></td> |
| 1248 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_detection_post_process_descriptor.html">armnn::DetectionPostProcessDescriptor</a> & </td> |
| 1249 | <td class="paramname"><em>descriptor</em>, </td> |
| 1250 | </tr> |
| 1251 | <tr> |
| 1252 | <td class="paramkey"></td> |
| 1253 | <td></td> |
| 1254 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 1255 | <td class="paramname"><em>anchors</em>, </td> |
| 1256 | </tr> |
| 1257 | <tr> |
| 1258 | <td class="paramkey"></td> |
| 1259 | <td></td> |
| 1260 | <td class="paramtype">const char * </td> |
| 1261 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1262 | </tr> |
| 1263 | <tr> |
| 1264 | <td></td> |
| 1265 | <td>)</td> |
| 1266 | <td></td><td></td> |
| 1267 | </tr> |
| 1268 | </table> |
| 1269 | </td> |
| 1270 | <td class="mlabels-right"> |
| 1271 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1272 | </tr> |
| 1273 | </table> |
| 1274 | </div><div class="memdoc"> |
| 1275 | <p>Function that a Detection PostProcess layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1276 | <table class="params"> |
| 1277 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1278 | <tr><td class="paramname">descriptor</td><td>- Description of the Detection PostProcess layer. </td></tr> |
| 1279 | <tr><td class="paramname">anchors</td><td>- Tensor for the anchors. </td></tr> |
| 1280 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1281 | </table> |
| 1282 | </dd> |
| 1283 | </dl> |
| 1284 | |
| 1285 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab270e1bebbe01a22543cc49ac3a14c25">ILayerVisitor</a>.</p> |
| 1286 | |
| 1287 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00401">401</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1288 | |
| 1289 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00531">DetectionPostProcessDescriptor::m_DetectionsPerClass</a>, <a class="el" href="_descriptors_8hpp_source.html#l00529">DetectionPostProcessDescriptor::m_MaxClassesPerDetection</a>, <a class="el" href="_descriptors_8hpp_source.html#l00527">DetectionPostProcessDescriptor::m_MaxDetections</a>, <a class="el" href="_descriptors_8hpp_source.html#l00535">DetectionPostProcessDescriptor::m_NmsIouThreshold</a>, <a class="el" href="_descriptors_8hpp_source.html#l00533">DetectionPostProcessDescriptor::m_NmsScoreThreshold</a>, <a class="el" href="_descriptors_8hpp_source.html#l00537">DetectionPostProcessDescriptor::m_NumClasses</a>, <a class="el" href="_descriptors_8hpp_source.html#l00547">DetectionPostProcessDescriptor::m_ScaleH</a>, <a class="el" href="_descriptors_8hpp_source.html#l00545">DetectionPostProcessDescriptor::m_ScaleW</a>, <a class="el" href="_descriptors_8hpp_source.html#l00541">DetectionPostProcessDescriptor::m_ScaleX</a>, <a class="el" href="_descriptors_8hpp_source.html#l00543">DetectionPostProcessDescriptor::m_ScaleY</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00539">DetectionPostProcessDescriptor::m_UseRegularNms</a>.</p> |
| 1290 | |
| 1291 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1292 | <div class="fragment"><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> {</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span> </div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_DetectionPostProcess);</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keyword">auto</span> fbDescriptor = CreateDetectionPostProcessDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">m_MaxDetections</a>,</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a9ae2c9796692ebeafe19a4d3f09c8ea8">m_MaxClassesPerDetection</a>,</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a7e2f87544b8bc7e497e1dec8d3ca4055">m_DetectionsPerClass</a>,</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a4392dd6b4862cc9cf95ae8f1001ba592">m_NmsScoreThreshold</a>,</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a53c8a7f33a40e1e240256bcfcf41b101">m_NmsIouThreshold</a>,</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a3a04b0ccee4bb2f21721ee5045e83df4">m_NumClasses</a>,</div><div class="line"><a name="l00416"></a><span class="lineno"> 416</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a7ed9bc7c26df67d274d5dd4cd83adf0f">m_UseRegularNms</a>,</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#ae64523937ea910030ad66fee6fddd51f">m_ScaleX</a>,</div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#a7a2156ec7d9c012ce00bbcc6afcb9028">m_ScaleY</a>,</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#ab509802c659de19929f18bad14a35c58">m_ScaleW</a>,</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  descriptor.<a class="code" href="structarmnn_1_1_detection_post_process_descriptor.html#aa61510cbd529870182e918ac6e8b9d72">m_ScaleH</a>);</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span>  flatbuffers::Offset<serializer::ConstTensor> fbAnchorsConstTensorInfo = CreateConstTensorInfo(anchors);</div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span> </div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  <span class="keyword">auto</span> flatBufferLayer = CreateDetectionPostProcessLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  fbBaseLayer,</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  fbDescriptor,</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  fbAnchorsConstTensorInfo);</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span> </div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_DetectionPostProcessLayer);</div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span> }</div><div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_ae64523937ea910030ad66fee6fddd51f"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#ae64523937ea910030ad66fee6fddd51f">armnn::DetectionPostProcessDescriptor::m_ScaleX</a></div><div class="ttdeci">float m_ScaleX</div><div class="ttdoc">Center size encoding scale x. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00541">Descriptors.hpp:541</a></div></div> |
| 1293 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a9ae2c9796692ebeafe19a4d3f09c8ea8"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a9ae2c9796692ebeafe19a4d3f09c8ea8">armnn::DetectionPostProcessDescriptor::m_MaxClassesPerDetection</a></div><div class="ttdeci">uint32_t m_MaxClassesPerDetection</div><div class="ttdoc">Maximum numbers of classes per detection, used in Fast NMS. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00529">Descriptors.hpp:529</a></div></div> |
| 1294 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a3a04b0ccee4bb2f21721ee5045e83df4"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a3a04b0ccee4bb2f21721ee5045e83df4">armnn::DetectionPostProcessDescriptor::m_NumClasses</a></div><div class="ttdeci">uint32_t m_NumClasses</div><div class="ttdoc">Number of classes. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00537">Descriptors.hpp:537</a></div></div> |
| 1295 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_ab509802c659de19929f18bad14a35c58"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#ab509802c659de19929f18bad14a35c58">armnn::DetectionPostProcessDescriptor::m_ScaleW</a></div><div class="ttdeci">float m_ScaleW</div><div class="ttdoc">Center size encoding scale weight. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00545">Descriptors.hpp:545</a></div></div> |
| 1296 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a7a2156ec7d9c012ce00bbcc6afcb9028"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a7a2156ec7d9c012ce00bbcc6afcb9028">armnn::DetectionPostProcessDescriptor::m_ScaleY</a></div><div class="ttdeci">float m_ScaleY</div><div class="ttdoc">Center size encoding scale y. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00543">Descriptors.hpp:543</a></div></div> |
| 1297 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a7ed9bc7c26df67d274d5dd4cd83adf0f"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a7ed9bc7c26df67d274d5dd4cd83adf0f">armnn::DetectionPostProcessDescriptor::m_UseRegularNms</a></div><div class="ttdeci">bool m_UseRegularNms</div><div class="ttdoc">Use Regular NMS. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00539">Descriptors.hpp:539</a></div></div> |
| 1298 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a53c8a7f33a40e1e240256bcfcf41b101"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a53c8a7f33a40e1e240256bcfcf41b101">armnn::DetectionPostProcessDescriptor::m_NmsIouThreshold</a></div><div class="ttdeci">float m_NmsIouThreshold</div><div class="ttdoc">Intersection over union threshold. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00535">Descriptors.hpp:535</a></div></div> |
| 1299 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a7e2f87544b8bc7e497e1dec8d3ca4055"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a7e2f87544b8bc7e497e1dec8d3ca4055">armnn::DetectionPostProcessDescriptor::m_DetectionsPerClass</a></div><div class="ttdeci">uint32_t m_DetectionsPerClass</div><div class="ttdoc">Detections per classes, used in Regular NMS. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00531">Descriptors.hpp:531</a></div></div> |
| 1300 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_a4392dd6b4862cc9cf95ae8f1001ba592"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#a4392dd6b4862cc9cf95ae8f1001ba592">armnn::DetectionPostProcessDescriptor::m_NmsScoreThreshold</a></div><div class="ttdeci">float m_NmsScoreThreshold</div><div class="ttdoc">NMS score threshold. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00533">Descriptors.hpp:533</a></div></div> |
| 1301 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_aa61510cbd529870182e918ac6e8b9d72"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#aa61510cbd529870182e918ac6e8b9d72">armnn::DetectionPostProcessDescriptor::m_ScaleH</a></div><div class="ttdeci">float m_ScaleH</div><div class="ttdoc">Center size encoding scale height. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00547">Descriptors.hpp:547</a></div></div> |
| 1302 | <div class="ttc" id="structarmnn_1_1_detection_post_process_descriptor_html_ae72089bcab60ac175557f4241b16a014"><div class="ttname"><a href="structarmnn_1_1_detection_post_process_descriptor.html#ae72089bcab60ac175557f4241b16a014">armnn::DetectionPostProcessDescriptor::m_MaxDetections</a></div><div class="ttdeci">uint32_t m_MaxDetections</div><div class="ttdoc">Maximum numbers of detections. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00527">Descriptors.hpp:527</a></div></div> |
| 1303 | </div><!-- fragment --> |
| 1304 | </div> |
| 1305 | </div> |
| 1306 | <a id="a9cc611872dcd6b526c84231e0b6920da"></a> |
| 1307 | <h2 class="memtitle"><span class="permalink"><a href="#a9cc611872dcd6b526c84231e0b6920da">◆ </a></span>VisitDivisionLayer()</h2> |
| 1308 | |
| 1309 | <div class="memitem"> |
| 1310 | <div class="memproto"> |
| 1311 | <table class="mlabels"> |
| 1312 | <tr> |
| 1313 | <td class="mlabels-left"> |
| 1314 | <table class="memname"> |
| 1315 | <tr> |
| 1316 | <td class="memname">void VisitDivisionLayer </td> |
| 1317 | <td>(</td> |
| 1318 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1319 | <td class="paramname"><em>layer</em>, </td> |
| 1320 | </tr> |
| 1321 | <tr> |
| 1322 | <td class="paramkey"></td> |
| 1323 | <td></td> |
| 1324 | <td class="paramtype">const char * </td> |
| 1325 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1326 | </tr> |
| 1327 | <tr> |
| 1328 | <td></td> |
| 1329 | <td>)</td> |
| 1330 | <td></td><td></td> |
| 1331 | </tr> |
| 1332 | </table> |
| 1333 | </td> |
| 1334 | <td class="mlabels-right"> |
| 1335 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1336 | </tr> |
| 1337 | </table> |
| 1338 | </div><div class="memdoc"> |
| 1339 | <p>Function a division layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1340 | <table class="params"> |
| 1341 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1342 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1343 | </table> |
| 1344 | </dd> |
| 1345 | </dl> |
| 1346 | |
| 1347 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ada3c96a7b0d4251edb24584096b90a24">ILayerVisitor</a>.</p> |
| 1348 | |
| 1349 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00432">432</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1350 | |
| 1351 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1352 | <div class="fragment"><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> {</div><div class="line"><a name="l00434"></a><span class="lineno"> 434</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span> </div><div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  <span class="keyword">auto</span> fbDivisionBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Division);</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keyword">auto</span> fbDivisionLayer = serializer::CreateDivisionLayer(m_flatBufferBuilder, fbDivisionBaseLayer);</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  CreateAnyLayer(fbDivisionLayer.o, serializer::Layer::Layer_DivisionLayer);</div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> }</div></div><!-- fragment --> |
| 1353 | </div> |
| 1354 | </div> |
| 1355 | <a id="a2e0686c8a9f4a53f78fd35f83fa77c56"></a> |
| 1356 | <h2 class="memtitle"><span class="permalink"><a href="#a2e0686c8a9f4a53f78fd35f83fa77c56">◆ </a></span>VisitElementwiseUnaryLayer()</h2> |
| 1357 | |
| 1358 | <div class="memitem"> |
| 1359 | <div class="memproto"> |
| 1360 | <table class="mlabels"> |
| 1361 | <tr> |
| 1362 | <td class="mlabels-left"> |
| 1363 | <table class="memname"> |
| 1364 | <tr> |
| 1365 | <td class="memname">void VisitElementwiseUnaryLayer </td> |
| 1366 | <td>(</td> |
| 1367 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1368 | <td class="paramname"><em>layer</em>, </td> |
| 1369 | </tr> |
| 1370 | <tr> |
| 1371 | <td class="paramkey"></td> |
| 1372 | <td></td> |
| 1373 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_elementwise_unary_descriptor.html">armnn::ElementwiseUnaryDescriptor</a> & </td> |
| 1374 | <td class="paramname"><em>elementwiseUnaryDescriptor</em>, </td> |
| 1375 | </tr> |
| 1376 | <tr> |
| 1377 | <td class="paramkey"></td> |
| 1378 | <td></td> |
| 1379 | <td class="paramtype">const char * </td> |
| 1380 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1381 | </tr> |
| 1382 | <tr> |
| 1383 | <td></td> |
| 1384 | <td>)</td> |
| 1385 | <td></td><td></td> |
| 1386 | </tr> |
| 1387 | </table> |
| 1388 | </td> |
| 1389 | <td class="mlabels-right"> |
| 1390 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1391 | </tr> |
| 1392 | </table> |
| 1393 | </div><div class="memdoc"> |
| 1394 | <p>Function a ElementwiseUnary layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1395 | <table class="params"> |
| 1396 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1397 | <tr><td class="paramname">elementwiseUnaryDescriptor</td><td>- Description of the layer. </td></tr> |
| 1398 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1399 | </table> |
| 1400 | </dd> |
| 1401 | </dl> |
| 1402 | |
| 1403 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aaf99c2bdfe61c48821f23826433a5abc">ILayerVisitor</a>.</p> |
| 1404 | |
| 1405 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00442">442</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1406 | |
| 1407 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00082">armnnSerializer::GetFlatBufferUnaryOperation()</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00098">ElementwiseUnaryDescriptor::m_Operation</a>.</p> |
| 1408 | |
| 1409 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1410 | <div class="fragment"><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> {</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span> </div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_ElementwiseUnary);</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <span class="keyword">auto</span> fbDescriptor = serializer::CreateElementwiseUnaryDescriptor(</div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <a class="code" href="namespacearmnn_serializer.html#ae4ba1925d55937fdb1770852ff0554bf">GetFlatBufferUnaryOperation</a>(descriptor.m_Operation));</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateElementwiseUnaryLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_ElementwiseUnaryLayer);</div><div class="line"><a name="l00455"></a><span class="lineno"> 455</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_ae4ba1925d55937fdb1770852ff0554bf"><div class="ttname"><a href="namespacearmnn_serializer.html#ae4ba1925d55937fdb1770852ff0554bf">armnnSerializer::GetFlatBufferUnaryOperation</a></div><div class="ttdeci">armnnSerializer::UnaryOperation GetFlatBufferUnaryOperation(armnn::UnaryOperation comparisonOperation)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00082">SerializerUtils.cpp:82</a></div></div> |
| 1411 | </div><!-- fragment --> |
| 1412 | </div> |
| 1413 | </div> |
| 1414 | <a id="a778b3249ab3704387496d45c39480ecb"></a> |
| 1415 | <h2 class="memtitle"><span class="permalink"><a href="#a778b3249ab3704387496d45c39480ecb">◆ </a></span>VisitEqualLayer()</h2> |
| 1416 | |
| 1417 | <div class="memitem"> |
| 1418 | <div class="memproto"> |
| 1419 | <table class="mlabels"> |
| 1420 | <tr> |
| 1421 | <td class="mlabels-left"> |
| 1422 | <table class="memname"> |
| 1423 | <tr> |
| 1424 | <td class="memname">void VisitEqualLayer </td> |
| 1425 | <td>(</td> |
| 1426 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1427 | <td class="paramname"><em>layer</em>, </td> |
| 1428 | </tr> |
| 1429 | <tr> |
| 1430 | <td class="paramkey"></td> |
| 1431 | <td></td> |
| 1432 | <td class="paramtype">const char * </td> |
| 1433 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1434 | </tr> |
| 1435 | <tr> |
| 1436 | <td></td> |
| 1437 | <td>)</td> |
| 1438 | <td></td><td></td> |
| 1439 | </tr> |
| 1440 | </table> |
| 1441 | </td> |
| 1442 | <td class="mlabels-right"> |
| 1443 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1444 | </tr> |
| 1445 | </table> |
| 1446 | </div><div class="memdoc"> |
| 1447 | <p>Function an Equal layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1448 | <table class="params"> |
| 1449 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1450 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1451 | </table> |
| 1452 | </dd> |
| 1453 | </dl> |
| 1454 | |
| 1455 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ae242b544b15e9d80aa2f3be385540eb6">ILayerVisitor</a>.</p> |
| 1456 | |
| 1457 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00457">457</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1458 | |
| 1459 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1460 | <div class="fragment"><div class="line"><a name="l00458"></a><span class="lineno"> 458</span> {</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> </div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Equal);</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  <span class="keyword">auto</span> fbEqualLayer = serializer::CreateEqualLayer(m_flatBufferBuilder, fbBaseLayer);</div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span> </div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  CreateAnyLayer(fbEqualLayer.o, serializer::Layer::Layer_EqualLayer);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> }</div></div><!-- fragment --> |
| 1461 | </div> |
| 1462 | </div> |
| 1463 | <a id="a64c53003d714d4957829f821a5e4153d"></a> |
| 1464 | <h2 class="memtitle"><span class="permalink"><a href="#a64c53003d714d4957829f821a5e4153d">◆ </a></span>VisitFloorLayer()</h2> |
| 1465 | |
| 1466 | <div class="memitem"> |
| 1467 | <div class="memproto"> |
| 1468 | <table class="mlabels"> |
| 1469 | <tr> |
| 1470 | <td class="mlabels-left"> |
| 1471 | <table class="memname"> |
| 1472 | <tr> |
| 1473 | <td class="memname">void VisitFloorLayer </td> |
| 1474 | <td>(</td> |
| 1475 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1476 | <td class="paramname"><em>layer</em>, </td> |
| 1477 | </tr> |
| 1478 | <tr> |
| 1479 | <td class="paramkey"></td> |
| 1480 | <td></td> |
| 1481 | <td class="paramtype">const char * </td> |
| 1482 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1483 | </tr> |
| 1484 | <tr> |
| 1485 | <td></td> |
| 1486 | <td>)</td> |
| 1487 | <td></td><td></td> |
| 1488 | </tr> |
| 1489 | </table> |
| 1490 | </td> |
| 1491 | <td class="mlabels-right"> |
| 1492 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1493 | </tr> |
| 1494 | </table> |
| 1495 | </div><div class="memdoc"> |
| 1496 | <p>Function a floor layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1497 | <table class="params"> |
| 1498 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1499 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1500 | </table> |
| 1501 | </dd> |
| 1502 | </dl> |
| 1503 | |
| 1504 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a3fd73f343863eedb8dde418c6183193c">ILayerVisitor</a>.</p> |
| 1505 | |
| 1506 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00467">467</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1507 | |
| 1508 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1509 | <div class="fragment"><div class="line"><a name="l00468"></a><span class="lineno"> 468</span> {</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keyword">auto</span> flatBufferFloorBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Floor);</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  <span class="keyword">auto</span> flatBufferFloorLayer = serializer::CreateFloorLayer(m_flatBufferBuilder, flatBufferFloorBaseLayer);</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span> </div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  CreateAnyLayer(flatBufferFloorLayer.o, serializer::Layer::Layer_FloorLayer);</div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> }</div></div><!-- fragment --> |
| 1510 | </div> |
| 1511 | </div> |
| 1512 | <a id="a0d4758122aed43d472cdbd59e84bc047"></a> |
| 1513 | <h2 class="memtitle"><span class="permalink"><a href="#a0d4758122aed43d472cdbd59e84bc047">◆ </a></span>VisitFullyConnectedLayer()</h2> |
| 1514 | |
| 1515 | <div class="memitem"> |
| 1516 | <div class="memproto"> |
| 1517 | <table class="mlabels"> |
| 1518 | <tr> |
| 1519 | <td class="mlabels-left"> |
| 1520 | <table class="memname"> |
| 1521 | <tr> |
| 1522 | <td class="memname">void VisitFullyConnectedLayer </td> |
| 1523 | <td>(</td> |
| 1524 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1525 | <td class="paramname"><em>layer</em>, </td> |
| 1526 | </tr> |
| 1527 | <tr> |
| 1528 | <td class="paramkey"></td> |
| 1529 | <td></td> |
| 1530 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_fully_connected_descriptor.html">armnn::FullyConnectedDescriptor</a> & </td> |
| 1531 | <td class="paramname"><em>fullyConnectedDescriptor</em>, </td> |
| 1532 | </tr> |
| 1533 | <tr> |
| 1534 | <td class="paramkey"></td> |
| 1535 | <td></td> |
| 1536 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 1537 | <td class="paramname"><em>weights</em>, </td> |
| 1538 | </tr> |
| 1539 | <tr> |
| 1540 | <td class="paramkey"></td> |
| 1541 | <td></td> |
| 1542 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > & </td> |
| 1543 | <td class="paramname"><em>biases</em>, </td> |
| 1544 | </tr> |
| 1545 | <tr> |
| 1546 | <td class="paramkey"></td> |
| 1547 | <td></td> |
| 1548 | <td class="paramtype">const char * </td> |
| 1549 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1550 | </tr> |
| 1551 | <tr> |
| 1552 | <td></td> |
| 1553 | <td>)</td> |
| 1554 | <td></td><td></td> |
| 1555 | </tr> |
| 1556 | </table> |
| 1557 | </td> |
| 1558 | <td class="mlabels-right"> |
| 1559 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1560 | </tr> |
| 1561 | </table> |
| 1562 | </div><div class="memdoc"> |
| 1563 | <p>Function that a fully connected layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1564 | <table class="params"> |
| 1565 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1566 | <tr><td class="paramname">fullyConnectedDescriptor</td><td>- Description of the fully connected layer. </td></tr> |
| 1567 | <tr><td class="paramname">weights</td><td>- Tensor for the weights data. </td></tr> |
| 1568 | <tr><td class="paramname">biases</td><td>- Optional tensor for the bias data. </td></tr> |
| 1569 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1570 | </table> |
| 1571 | </dd> |
| 1572 | </dl> |
| 1573 | |
| 1574 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab93a48970564c6eabbc982a2116c1262">ILayerVisitor</a>.</p> |
| 1575 | |
| 1576 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00998">998</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1577 | |
| 1578 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00386">FullyConnectedDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00388">FullyConnectedDescriptor::m_TransposeWeightMatrix</a>, and <a class="el" href="_optional_8hpp_source.html#l00146">OptionalReferenceSwitch< IsReference, T >::value()</a>.</p> |
| 1579 | |
| 1580 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1581 | <div class="fragment"><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span> {</div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span> </div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_FullyConnected);</div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span> </div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>  <span class="comment">// Create FlatBuffer FullyConnectedDescriptor</span></div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>  serializer::CreateFullyConnectedDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>  fullyConnectedDescriptor.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>,</div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>  fullyConnectedDescriptor.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#a281fcaec86e17c97f7b8402633f6b55a">m_TransposeWeightMatrix</a>);</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span> </div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>  <span class="comment">// Create FlatBuffer weights data</span></div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>  <span class="keyword">auto</span> flatBufferWeights = CreateConstTensorInfo(weights);</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span> </div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>  <span class="comment">// Create FlatBuffer bias data</span></div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>  flatbuffers::Offset<serializer::ConstTensor> flatBufferBiases;</div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>  <span class="keywordflow">if</span> (fullyConnectedDescriptor.<a class="code" href="structarmnn_1_1_fully_connected_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>)</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>  {</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>  flatBufferBiases = CreateConstTensorInfo(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>());</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>  }</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span> </div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>  <span class="comment">// Create FlatBuffer FullyConnectedLayer</span></div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateFullyConnectedLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>  flatBufferBaseLayer,</div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  flatBufferDescriptor,</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  flatBufferWeights,</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  flatBufferBiases);</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  <span class="comment">// Add created FullyConnectedLayer to the FlatBufferLayers</span></div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_FullyConnectedLayer);</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span> }</div><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> |
| 1582 | <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> |
| 1583 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 1584 | </div><!-- fragment --> |
| 1585 | </div> |
| 1586 | </div> |
| 1587 | <a id="ad297ae199a9fa61e1fd983d645da6471"></a> |
| 1588 | <h2 class="memtitle"><span class="permalink"><a href="#ad297ae199a9fa61e1fd983d645da6471">◆ </a></span>VisitGatherLayer()</h2> |
| 1589 | |
| 1590 | <div class="memitem"> |
| 1591 | <div class="memproto"> |
| 1592 | <table class="mlabels"> |
| 1593 | <tr> |
| 1594 | <td class="mlabels-left"> |
| 1595 | <table class="memname"> |
| 1596 | <tr> |
| 1597 | <td class="memname">void VisitGatherLayer </td> |
| 1598 | <td>(</td> |
| 1599 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1600 | <td class="paramname"><em>layer</em>, </td> |
| 1601 | </tr> |
| 1602 | <tr> |
| 1603 | <td class="paramkey"></td> |
| 1604 | <td></td> |
| 1605 | <td class="paramtype">const char * </td> |
| 1606 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1607 | </tr> |
| 1608 | <tr> |
| 1609 | <td></td> |
| 1610 | <td>)</td> |
| 1611 | <td></td><td></td> |
| 1612 | </tr> |
| 1613 | </table> |
| 1614 | </td> |
| 1615 | <td class="mlabels-right"> |
| 1616 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1617 | </tr> |
| 1618 | </table> |
| 1619 | </div><div class="memdoc"> |
| 1620 | <p>Function a Gather layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1621 | <table class="params"> |
| 1622 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1623 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1624 | </table> |
| 1625 | </dd> |
| 1626 | </dl> |
| 1627 | |
| 1628 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a8b19c99b738524199b49d4b9819d4d8a">ILayerVisitor</a>.</p> |
| 1629 | |
| 1630 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00477">477</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1631 | |
| 1632 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1633 | <div class="fragment"><div class="line"><a name="l00478"></a><span class="lineno"> 478</span> {</div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keyword">auto</span> fbGatherBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Gather);</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateGatherLayer(m_flatBufferBuilder, fbGatherBaseLayer);</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_GatherLayer);</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> }</div></div><!-- fragment --> |
| 1634 | </div> |
| 1635 | </div> |
| 1636 | <a id="ab0d8bc8095f70f4616bc3ace8dd46b02"></a> |
| 1637 | <h2 class="memtitle"><span class="permalink"><a href="#ab0d8bc8095f70f4616bc3ace8dd46b02">◆ </a></span>VisitGreaterLayer()</h2> |
| 1638 | |
| 1639 | <div class="memitem"> |
| 1640 | <div class="memproto"> |
| 1641 | <table class="mlabels"> |
| 1642 | <tr> |
| 1643 | <td class="mlabels-left"> |
| 1644 | <table class="memname"> |
| 1645 | <tr> |
| 1646 | <td class="memname">void VisitGreaterLayer </td> |
| 1647 | <td>(</td> |
| 1648 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1649 | <td class="paramname"><em>layer</em>, </td> |
| 1650 | </tr> |
| 1651 | <tr> |
| 1652 | <td class="paramkey"></td> |
| 1653 | <td></td> |
| 1654 | <td class="paramtype">const char * </td> |
| 1655 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1656 | </tr> |
| 1657 | <tr> |
| 1658 | <td></td> |
| 1659 | <td>)</td> |
| 1660 | <td></td><td></td> |
| 1661 | </tr> |
| 1662 | </table> |
| 1663 | </td> |
| 1664 | <td class="mlabels-right"> |
| 1665 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1666 | </tr> |
| 1667 | </table> |
| 1668 | </div><div class="memdoc"> |
| 1669 | <p>Function a Greater layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1670 | <table class="params"> |
| 1671 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1672 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1673 | </table> |
| 1674 | </dd> |
| 1675 | </dl> |
| 1676 | |
| 1677 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ac81739b57b9a27fb0c363bcd6479692e">ILayerVisitor</a>.</p> |
| 1678 | |
| 1679 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00487">487</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1680 | |
| 1681 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1682 | <div class="fragment"><div class="line"><a name="l00488"></a><span class="lineno"> 488</span> {</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="keyword">auto</span> fbGreaterBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Greater);</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <span class="keyword">auto</span> fbGreaterLayer = serializer::CreateGreaterLayer(m_flatBufferBuilder, fbGreaterBaseLayer);</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span> </div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  CreateAnyLayer(fbGreaterLayer.o, serializer::Layer::Layer_GreaterLayer);</div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span> }</div></div><!-- fragment --> |
| 1683 | </div> |
| 1684 | </div> |
| 1685 | <a id="ade20ba84b9c46a9afedf0b969f870919"></a> |
| 1686 | <h2 class="memtitle"><span class="permalink"><a href="#ade20ba84b9c46a9afedf0b969f870919">◆ </a></span>VisitInputLayer()</h2> |
| 1687 | |
| 1688 | <div class="memitem"> |
| 1689 | <div class="memproto"> |
| 1690 | <table class="mlabels"> |
| 1691 | <tr> |
| 1692 | <td class="mlabels-left"> |
| 1693 | <table class="memname"> |
| 1694 | <tr> |
| 1695 | <td class="memname">void VisitInputLayer </td> |
| 1696 | <td>(</td> |
| 1697 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1698 | <td class="paramname"><em>layer</em>, </td> |
| 1699 | </tr> |
| 1700 | <tr> |
| 1701 | <td class="paramkey"></td> |
| 1702 | <td></td> |
| 1703 | <td class="paramtype"><a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 1704 | <td class="paramname"><em>id</em>, </td> |
| 1705 | </tr> |
| 1706 | <tr> |
| 1707 | <td class="paramkey"></td> |
| 1708 | <td></td> |
| 1709 | <td class="paramtype">const char * </td> |
| 1710 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1711 | </tr> |
| 1712 | <tr> |
| 1713 | <td></td> |
| 1714 | <td>)</td> |
| 1715 | <td></td><td></td> |
| 1716 | </tr> |
| 1717 | </table> |
| 1718 | </td> |
| 1719 | <td class="mlabels-right"> |
| 1720 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1721 | </tr> |
| 1722 | </table> |
| 1723 | </div><div class="memdoc"> |
| 1724 | <p>Function that an InputLayer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1725 | <table class="params"> |
| 1726 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1727 | <tr><td class="paramname">id</td><td>- User generated id to uniquely identify a particular input. The same id needs to be specified when passing the inputs to the IRuntime::EnqueueWorkload() function. </td></tr> |
| 1728 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1729 | </table> |
| 1730 | </dd> |
| 1731 | </dl> |
| 1732 | |
| 1733 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab6dc51682cb4178194f3f00c2309ec7b">ILayerVisitor</a>.</p> |
| 1734 | |
| 1735 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00083">83</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1736 | |
| 1737 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1738 | <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>  boost::ignore_unused(name);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">auto</span> flatBufferInputBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Input);</div><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>  <span class="comment">// Create FlatBuffer BindableBaseLayer</span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keyword">auto</span> flatBufferInputBindableBaseLayer = serializer::CreateBindableLayerBase(m_flatBufferBuilder,</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  flatBufferInputBaseLayer,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">id</span>);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="comment">// Push layer binding id to outputIds.</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  m_inputIds.push_back(<span class="keywordtype">id</span>);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>  <span class="comment">// Create the FlatBuffer InputLayer</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <span class="keyword">auto</span> flatBufferInputLayer = serializer::CreateInputLayer(m_flatBufferBuilder, flatBufferInputBindableBaseLayer);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  CreateAnyLayer(flatBufferInputLayer.o, serializer::Layer::Layer_InputLayer);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> }</div></div><!-- fragment --> |
| 1739 | </div> |
| 1740 | </div> |
| 1741 | <a id="aae3bf0ab71205ddf8916512ac8330a1e"></a> |
| 1742 | <h2 class="memtitle"><span class="permalink"><a href="#aae3bf0ab71205ddf8916512ac8330a1e">◆ </a></span>VisitInstanceNormalizationLayer()</h2> |
| 1743 | |
| 1744 | <div class="memitem"> |
| 1745 | <div class="memproto"> |
| 1746 | <table class="mlabels"> |
| 1747 | <tr> |
| 1748 | <td class="mlabels-left"> |
| 1749 | <table class="memname"> |
| 1750 | <tr> |
| 1751 | <td class="memname">void VisitInstanceNormalizationLayer </td> |
| 1752 | <td>(</td> |
| 1753 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1754 | <td class="paramname"><em>layer</em>, </td> |
| 1755 | </tr> |
| 1756 | <tr> |
| 1757 | <td class="paramkey"></td> |
| 1758 | <td></td> |
| 1759 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_instance_normalization_descriptor.html">armnn::InstanceNormalizationDescriptor</a> & </td> |
| 1760 | <td class="paramname"><em>desc</em>, </td> |
| 1761 | </tr> |
| 1762 | <tr> |
| 1763 | <td class="paramkey"></td> |
| 1764 | <td></td> |
| 1765 | <td class="paramtype">const char * </td> |
| 1766 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1767 | </tr> |
| 1768 | <tr> |
| 1769 | <td></td> |
| 1770 | <td>)</td> |
| 1771 | <td></td><td></td> |
| 1772 | </tr> |
| 1773 | </table> |
| 1774 | </td> |
| 1775 | <td class="mlabels-right"> |
| 1776 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1777 | </tr> |
| 1778 | </table> |
| 1779 | </div><div class="memdoc"> |
| 1780 | <p>Function that an instance normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1781 | <table class="params"> |
| 1782 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1783 | <tr><td class="paramname">desc</td><td>- Parameters for the instance normalization operation. </td></tr> |
| 1784 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1785 | </table> |
| 1786 | </dd> |
| 1787 | </dl> |
| 1788 | |
| 1789 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aaf4e8d2b1ed2612f4821ed1d2351667b">ILayerVisitor</a>.</p> |
| 1790 | |
| 1791 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00497">497</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1792 | |
| 1793 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00649">InstanceNormalizationDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00653">InstanceNormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00651">InstanceNormalizationDescriptor::m_Eps</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00647">InstanceNormalizationDescriptor::m_Gamma</a>.</p> |
| 1794 | |
| 1795 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1796 | <div class="fragment"><div class="line"><a name="l00501"></a><span class="lineno"> 501</span> {</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span> </div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span>  <span class="keyword">auto</span> fbDescriptor = serializer::CreateInstanceNormalizationDescriptor(</div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  instanceNormalizationDescriptor.m_Gamma,</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  instanceNormalizationDescriptor.m_Beta,</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  instanceNormalizationDescriptor.m_Eps,</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(instanceNormalizationDescriptor.m_DataLayout));</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span> </div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_InstanceNormalization);</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateInstanceNormalizationLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span> </div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_InstanceNormalizationLayer);</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 1797 | </div><!-- fragment --> |
| 1798 | </div> |
| 1799 | </div> |
| 1800 | <a id="a227d927a30f0700956047d9f65fca813"></a> |
| 1801 | <h2 class="memtitle"><span class="permalink"><a href="#a227d927a30f0700956047d9f65fca813">◆ </a></span>VisitL2NormalizationLayer()</h2> |
| 1802 | |
| 1803 | <div class="memitem"> |
| 1804 | <div class="memproto"> |
| 1805 | <table class="mlabels"> |
| 1806 | <tr> |
| 1807 | <td class="mlabels-left"> |
| 1808 | <table class="memname"> |
| 1809 | <tr> |
| 1810 | <td class="memname">void VisitL2NormalizationLayer </td> |
| 1811 | <td>(</td> |
| 1812 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1813 | <td class="paramname"><em>layer</em>, </td> |
| 1814 | </tr> |
| 1815 | <tr> |
| 1816 | <td class="paramkey"></td> |
| 1817 | <td></td> |
| 1818 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_l2_normalization_descriptor.html">armnn::L2NormalizationDescriptor</a> & </td> |
| 1819 | <td class="paramname"><em>desc</em>, </td> |
| 1820 | </tr> |
| 1821 | <tr> |
| 1822 | <td class="paramkey"></td> |
| 1823 | <td></td> |
| 1824 | <td class="paramtype">const char * </td> |
| 1825 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1826 | </tr> |
| 1827 | <tr> |
| 1828 | <td></td> |
| 1829 | <td>)</td> |
| 1830 | <td></td><td></td> |
| 1831 | </tr> |
| 1832 | </table> |
| 1833 | </td> |
| 1834 | <td class="mlabels-right"> |
| 1835 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1836 | </tr> |
| 1837 | </table> |
| 1838 | </div><div class="memdoc"> |
| 1839 | <p>Function that an L2 normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. Normalization is performed along dimension 1, but requires a 4d input. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1840 | <table class="params"> |
| 1841 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1842 | <tr><td class="paramname">desc</td><td>- Parameters for the L2 normalization operation. </td></tr> |
| 1843 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1844 | </table> |
| 1845 | </dd> |
| 1846 | </dl> |
| 1847 | |
| 1848 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a0678ff146765cea41b6d577773680fda">ILayerVisitor</a>.</p> |
| 1849 | |
| 1850 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00517">517</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1851 | |
| 1852 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00606">L2NormalizationDescriptor::m_DataLayout</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00604">L2NormalizationDescriptor::m_Eps</a>.</p> |
| 1853 | |
| 1854 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1855 | <div class="fragment"><div class="line"><a name="l00520"></a><span class="lineno"> 520</span> {</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span> </div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_L2Normalization);</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span> </div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="comment">// Create the FlatBuffer L2Normalization Descriptor</span></div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keyword">auto</span> fbDescriptor = serializer::CreateL2NormalizationDescriptor(</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(l2NormalizationDescriptor.m_DataLayout),</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  l2NormalizationDescriptor.m_Eps);</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <span class="comment">// Create FlatBuffer layer</span></div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateL2NormalizationLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span> </div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_L2NormalizationLayer);</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 1856 | </div><!-- fragment --> |
| 1857 | </div> |
| 1858 | </div> |
| 1859 | <a id="a5c02b1f1028daf64f7c6244ac68b37f5"></a> |
| 1860 | <h2 class="memtitle"><span class="permalink"><a href="#a5c02b1f1028daf64f7c6244ac68b37f5">◆ </a></span>VisitLogSoftmaxLayer()</h2> |
| 1861 | |
| 1862 | <div class="memitem"> |
| 1863 | <div class="memproto"> |
| 1864 | <table class="mlabels"> |
| 1865 | <tr> |
| 1866 | <td class="mlabels-left"> |
| 1867 | <table class="memname"> |
| 1868 | <tr> |
| 1869 | <td class="memname">void VisitLogSoftmaxLayer </td> |
| 1870 | <td>(</td> |
| 1871 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1872 | <td class="paramname"><em>layer</em>, </td> |
| 1873 | </tr> |
| 1874 | <tr> |
| 1875 | <td class="paramkey"></td> |
| 1876 | <td></td> |
| 1877 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#ac14705405cbcdd580df613de6766fe65">armnn::LogSoftmaxDescriptor</a> & </td> |
| 1878 | <td class="paramname"><em>logSoftmaxDescriptor</em>, </td> |
| 1879 | </tr> |
| 1880 | <tr> |
| 1881 | <td class="paramkey"></td> |
| 1882 | <td></td> |
| 1883 | <td class="paramtype">const char * </td> |
| 1884 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1885 | </tr> |
| 1886 | <tr> |
| 1887 | <td></td> |
| 1888 | <td>)</td> |
| 1889 | <td></td><td></td> |
| 1890 | </tr> |
| 1891 | </table> |
| 1892 | </td> |
| 1893 | <td class="mlabels-right"> |
| 1894 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1895 | </tr> |
| 1896 | </table> |
| 1897 | </div><div class="memdoc"> |
| 1898 | <p>Function that a log softmax layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1899 | <table class="params"> |
| 1900 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1901 | <tr><td class="paramname">logSoftmaxDescriptor</td><td>- LogSoftmaxDescriptor to configure the log softmax. </td></tr> |
| 1902 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1903 | </table> |
| 1904 | </dd> |
| 1905 | </dl> |
| 1906 | |
| 1907 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a2db103c5db69877b05b365e50ee3bd5b">ILayerVisitor</a>.</p> |
| 1908 | |
| 1909 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00538">538</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1910 | |
| 1911 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00138">SoftmaxDescriptor::m_Axis</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>.</p> |
| 1912 | |
| 1913 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1914 | <div class="fragment"><div class="line"><a name="l00541"></a><span class="lineno"> 541</span> {</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <span class="keyword">auto</span> flatBufferLogSoftmaxBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_LogSoftmax);</div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span> </div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <span class="comment">// Create the FlatBuffer LogSoftmaxDescriptor</span></div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keyword">auto</span> flatBufferLogSoftmaxDesc =</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  serializer::CreateLogSoftmaxDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  logSoftmaxDescriptor.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a>,</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  logSoftmaxDescriptor.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">m_Axis</a>);</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> </div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <span class="comment">// Create the FlatBuffer LogSoftmaxLayer</span></div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <span class="keyword">auto</span> flatBufferLogSoftmaxLayer =</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  serializer::CreateLogSoftmaxLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span>  flatBufferLogSoftmaxBaseLayer,</div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  flatBufferLogSoftmaxDesc);</div><div class="line"><a name="l00558"></a><span class="lineno"> 558</span> </div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  CreateAnyLayer(flatBufferLogSoftmaxLayer.o, serializer::Layer::Layer_LogSoftmaxLayer);</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span> }</div><div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div> |
| 1915 | <div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a214c3636fdf0ea5bac8edb42d0e6c7f0"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a214c3636fdf0ea5bac8edb42d0e6c7f0">armnn::SoftmaxDescriptor::m_Axis</a></div><div class="ttdeci">int m_Axis</div><div class="ttdoc">Scalar, defaulted to the last index (-1), specifying the dimension the activation will be performed o...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00138">Descriptors.hpp:138</a></div></div> |
| 1916 | </div><!-- fragment --> |
| 1917 | </div> |
| 1918 | </div> |
| 1919 | <a id="a2b37a5d520204e4e1652e6d4d38774b3"></a> |
| 1920 | <h2 class="memtitle"><span class="permalink"><a href="#a2b37a5d520204e4e1652e6d4d38774b3">◆ </a></span>VisitLstmLayer()</h2> |
| 1921 | |
| 1922 | <div class="memitem"> |
| 1923 | <div class="memproto"> |
| 1924 | <table class="mlabels"> |
| 1925 | <tr> |
| 1926 | <td class="mlabels-left"> |
| 1927 | <table class="memname"> |
| 1928 | <tr> |
| 1929 | <td class="memname">void VisitLstmLayer </td> |
| 1930 | <td>(</td> |
| 1931 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 1932 | <td class="paramname"><em>layer</em>, </td> |
| 1933 | </tr> |
| 1934 | <tr> |
| 1935 | <td class="paramkey"></td> |
| 1936 | <td></td> |
| 1937 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_lstm_descriptor.html">armnn::LstmDescriptor</a> & </td> |
| 1938 | <td class="paramname"><em>descriptor</em>, </td> |
| 1939 | </tr> |
| 1940 | <tr> |
| 1941 | <td class="paramkey"></td> |
| 1942 | <td></td> |
| 1943 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_lstm_input_params.html">armnn::LstmInputParams</a> & </td> |
| 1944 | <td class="paramname"><em>params</em>, </td> |
| 1945 | </tr> |
| 1946 | <tr> |
| 1947 | <td class="paramkey"></td> |
| 1948 | <td></td> |
| 1949 | <td class="paramtype">const char * </td> |
| 1950 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 1951 | </tr> |
| 1952 | <tr> |
| 1953 | <td></td> |
| 1954 | <td>)</td> |
| 1955 | <td></td><td></td> |
| 1956 | </tr> |
| 1957 | </table> |
| 1958 | </td> |
| 1959 | <td class="mlabels-right"> |
| 1960 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 1961 | </tr> |
| 1962 | </table> |
| 1963 | </div><div class="memdoc"> |
| 1964 | <p>Function an Lstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 1965 | <table class="params"> |
| 1966 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 1967 | <tr><td class="paramname">descriptor</td><td>- Parameters controlling the operation of the Lstm operation. </td></tr> |
| 1968 | <tr><td class="paramname">params</td><td>- The weights and biases for the LSTM cell. </td></tr> |
| 1969 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 1970 | </table> |
| 1971 | </dd> |
| 1972 | </dl> |
| 1973 | |
| 1974 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aed730aaef50861ea8b7b6276ce880c9a">ILayerVisitor</a>.</p> |
| 1975 | |
| 1976 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00562">562</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 1977 | |
| 1978 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00861">LstmDescriptor::m_ActivationFunc</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00053">LstmInputParams::m_CellBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00059">LstmInputParams::m_CellLayerNormWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00049">LstmInputParams::m_CellToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00048">LstmInputParams::m_CellToInputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00050">LstmInputParams::m_CellToOutputWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l00867">LstmDescriptor::m_CifgEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l00863">LstmDescriptor::m_ClippingThresCell</a>, <a class="el" href="_descriptors_8hpp_source.html#l00865">LstmDescriptor::m_ClippingThresProj</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00052">LstmInputParams::m_ForgetGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00058">LstmInputParams::m_ForgetLayerNormWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00051">LstmInputParams::m_InputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00057">LstmInputParams::m_InputLayerNormWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00042">LstmInputParams::m_InputToCellWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00041">LstmInputParams::m_InputToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00040">LstmInputParams::m_InputToInputWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00043">LstmInputParams::m_InputToOutputWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l00873">LstmDescriptor::m_LayerNormEnabled</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00054">LstmInputParams::m_OutputGateBias</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00060">LstmInputParams::m_OutputLayerNormWeights</a>, <a class="el" href="_descriptors_8hpp_source.html#l00869">LstmDescriptor::m_PeepholeEnabled</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00056">LstmInputParams::m_ProjectionBias</a>, <a class="el" href="_descriptors_8hpp_source.html#l00871">LstmDescriptor::m_ProjectionEnabled</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00055">LstmInputParams::m_ProjectionWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00046">LstmInputParams::m_RecurrentToCellWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00045">LstmInputParams::m_RecurrentToForgetWeights</a>, <a class="el" href="_lstm_params_8hpp_source.html#l00044">LstmInputParams::m_RecurrentToInputWeights</a>, and <a class="el" href="_lstm_params_8hpp_source.html#l00047">LstmInputParams::m_RecurrentToOutputWeights</a>.</p> |
| 1979 | |
| 1980 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 1981 | <div class="fragment"><div class="line"><a name="l00566"></a><span class="lineno"> 566</span> {</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span> </div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keyword">auto</span> fbLstmBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Lstm);</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span> </div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keyword">auto</span> fbLstmDescriptor = serializer::CreateLstmDescriptor(</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">m_ActivationFunc</a>,</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">m_ClippingThresCell</a>,</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">m_ClippingThresProj</a>,</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a>,</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">m_PeepholeEnabled</a>,</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">m_ProjectionEnabled</a>,</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span>  descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a4a8ec49f130084445d44297549254780">m_LayerNormEnabled</a>);</div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> </div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  <span class="comment">// Get mandatory input parameters</span></div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span>  <span class="keyword">auto</span> inputToForgetWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a31da1ead6794dd64571afdd0b6efc771">m_InputToForgetWeights</a>);</div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="keyword">auto</span> inputToCellWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a49e11acda22742cbaf6f1b259ead0d84">m_InputToCellWeights</a>);</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  <span class="keyword">auto</span> inputToOutputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a6e30c7b3451da3ea9cf4259fb602e6e6">m_InputToOutputWeights</a>);</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  <span class="keyword">auto</span> recurrentToForgetWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#ae83131e16df1cace69395a5f99bc5ecb">m_RecurrentToForgetWeights</a>);</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span>  <span class="keyword">auto</span> recurrentToCellWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a1759754ccb88ecc9af44f3aae6e244ee">m_RecurrentToCellWeights</a>);</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="keyword">auto</span> recurrentToOutputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a56b81ca8ba4b4937e0787e4951f043fc">m_RecurrentToOutputWeights</a>);</div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  <span class="keyword">auto</span> forgetGateBias = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#ace7a1f1f1041b412b7d8ef82b95ff352">m_ForgetGateBias</a>);</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  <span class="keyword">auto</span> cellBias = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a4a9d678146f572808a361dbdc5489f38">m_CellBias</a>);</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  <span class="keyword">auto</span> outputGateBias = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a8c0f6d48705f40c5590dde09be262222">m_OutputGateBias</a>);</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span> </div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="comment">//Define optional parameters, these will be set depending on configuration in Lstm descriptor</span></div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  flatbuffers::Offset<serializer::ConstTensor> inputToInputWeights;</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  flatbuffers::Offset<serializer::ConstTensor> recurrentToInputWeights;</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  flatbuffers::Offset<serializer::ConstTensor> cellToInputWeights;</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  flatbuffers::Offset<serializer::ConstTensor> inputGateBias;</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span>  flatbuffers::Offset<serializer::ConstTensor> projectionWeights;</div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  flatbuffers::Offset<serializer::ConstTensor> projectionBias;</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  flatbuffers::Offset<serializer::ConstTensor> cellToForgetWeights;</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span>  flatbuffers::Offset<serializer::ConstTensor> cellToOutputWeights;</div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  flatbuffers::Offset<serializer::ConstTensor> inputLayerNormWeights;</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  flatbuffers::Offset<serializer::ConstTensor> forgetLayerNormWeights;</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  flatbuffers::Offset<serializer::ConstTensor> cellLayerNormWeights;</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  flatbuffers::Offset<serializer::ConstTensor> outputLayerNormWeights;</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span> </div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  <span class="keywordflow">if</span> (!descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a>)</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  {</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  inputToInputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#affcee5f4ab5994a21bee3b78b4e43de3">m_InputToInputWeights</a>);</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  recurrentToInputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a435d3651482bbfcc11263b4e4e0c900f">m_RecurrentToInputWeights</a>);</div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  cellToInputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a484bafa2f8453a7c5a4a00b92a61b006">m_CellToInputWeights</a>);</div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  inputGateBias = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a9e081a9b94defb30d1558dc912507e0e">m_InputGateBias</a>);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  }</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span> </div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  <span class="keywordflow">if</span> (descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">m_ProjectionEnabled</a>)</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  {</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  projectionWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#ab03e6e1514f74427916c892f473fe04c">m_ProjectionWeights</a>);</div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  projectionBias = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a44b0e6b16708df7f0d2bbab141688aaa">m_ProjectionBias</a>);</div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  }</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span> </div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <span class="keywordflow">if</span> (descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">m_PeepholeEnabled</a>)</div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  {</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  cellToForgetWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a35b112e30c3eb153806a2a8c16d178e3">m_CellToForgetWeights</a>);</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  cellToOutputWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#afe204ca375b74e9a72640c9227918d0a">m_CellToOutputWeights</a>);</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  }</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span> </div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  <span class="keywordflow">if</span> (descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#a4a8ec49f130084445d44297549254780">m_LayerNormEnabled</a>)</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  {</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  <span class="keywordflow">if</span> (!descriptor.<a class="code" href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">m_CifgEnabled</a>)</div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  {</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  inputLayerNormWeights = CreateConstTensorInfo((*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a0cd848f65ec31778d708852f0042fe37">m_InputLayerNormWeights</a>));</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  }</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  forgetLayerNormWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#af0f796fba1a2be9c56b4c9ee534577ee">m_ForgetLayerNormWeights</a>);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  cellLayerNormWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#ad0b8c32bb5381f4cc999093ba3b98b43">m_CellLayerNormWeights</a>);</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  outputLayerNormWeights = CreateConstTensorInfo(*params.<a class="code" href="structarmnn_1_1_lstm_input_params.html#a9b18daea2e9f42386055326fd016519a">m_OutputLayerNormWeights</a>);</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  }</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span> </div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  <span class="keyword">auto</span> fbLstmParams = serializer::CreateLstmInputParams(</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span>  inputToForgetWeights,</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  inputToCellWeights,</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  inputToOutputWeights,</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span>  recurrentToForgetWeights,</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  recurrentToCellWeights,</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  recurrentToOutputWeights,</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  forgetGateBias,</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  cellBias,</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  outputGateBias,</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span>  inputToInputWeights,</div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  recurrentToInputWeights,</div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  cellToInputWeights,</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  inputGateBias,</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  projectionWeights,</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span>  projectionBias,</div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  cellToForgetWeights,</div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  cellToOutputWeights,</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  inputLayerNormWeights,</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  forgetLayerNormWeights,</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  cellLayerNormWeights,</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span>  outputLayerNormWeights);</div><div class="line"><a name="l00660"></a><span class="lineno"> 660</span> </div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keyword">auto</span> fbLstmLayer = serializer::CreateLstmLayer(</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  fbLstmBaseLayer,</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  fbLstmDescriptor,</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  fbLstmParams);</div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span> </div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  CreateAnyLayer(fbLstmLayer.o, serializer::Layer::Layer_LstmLayer);</div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span> }</div><div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a6c9de81fc65b3c4924cab11907075a17"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a6c9de81fc65b3c4924cab11907075a17">armnn::LstmDescriptor::m_ProjectionEnabled</a></div><div class="ttdeci">bool m_ProjectionEnabled</div><div class="ttdoc">Enable/disable the projection layer. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00871">Descriptors.hpp:871</a></div></div> |
| 1982 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a6e30c7b3451da3ea9cf4259fb602e6e6"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a6e30c7b3451da3ea9cf4259fb602e6e6">armnn::LstmInputParams::m_InputToOutputWeights</a></div><div class="ttdeci">const ConstTensor * m_InputToOutputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00043">LstmParams.hpp:43</a></div></div> |
| 1983 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a35b112e30c3eb153806a2a8c16d178e3"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a35b112e30c3eb153806a2a8c16d178e3">armnn::LstmInputParams::m_CellToForgetWeights</a></div><div class="ttdeci">const ConstTensor * m_CellToForgetWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00049">LstmParams.hpp:49</a></div></div> |
| 1984 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a31da1ead6794dd64571afdd0b6efc771"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a31da1ead6794dd64571afdd0b6efc771">armnn::LstmInputParams::m_InputToForgetWeights</a></div><div class="ttdeci">const ConstTensor * m_InputToForgetWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00041">LstmParams.hpp:41</a></div></div> |
| 1985 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a531a3907ec13d3772370da88030191a5"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a531a3907ec13d3772370da88030191a5">armnn::LstmDescriptor::m_ClippingThresCell</a></div><div class="ttdeci">float m_ClippingThresCell</div><div class="ttdoc">Clipping threshold value for the cell state. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00863">Descriptors.hpp:863</a></div></div> |
| 1986 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a56b81ca8ba4b4937e0787e4951f043fc"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a56b81ca8ba4b4937e0787e4951f043fc">armnn::LstmInputParams::m_RecurrentToOutputWeights</a></div><div class="ttdeci">const ConstTensor * m_RecurrentToOutputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00047">LstmParams.hpp:47</a></div></div> |
| 1987 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ad474e5c51a0b194ef32e812b86c0cbdb"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ad474e5c51a0b194ef32e812b86c0cbdb">armnn::LstmDescriptor::m_CifgEnabled</a></div><div class="ttdeci">bool m_CifgEnabled</div><div class="ttdoc">Enable/disable cifg (coupled input & forget gate). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00867">Descriptors.hpp:867</a></div></div> |
| 1988 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a9b18daea2e9f42386055326fd016519a"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a9b18daea2e9f42386055326fd016519a">armnn::LstmInputParams::m_OutputLayerNormWeights</a></div><div class="ttdeci">const ConstTensor * m_OutputLayerNormWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00060">LstmParams.hpp:60</a></div></div> |
| 1989 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a0cd848f65ec31778d708852f0042fe37"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a0cd848f65ec31778d708852f0042fe37">armnn::LstmInputParams::m_InputLayerNormWeights</a></div><div class="ttdeci">const ConstTensor * m_InputLayerNormWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00057">LstmParams.hpp:57</a></div></div> |
| 1990 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a4a9d678146f572808a361dbdc5489f38"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a4a9d678146f572808a361dbdc5489f38">armnn::LstmInputParams::m_CellBias</a></div><div class="ttdeci">const ConstTensor * m_CellBias</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00053">LstmParams.hpp:53</a></div></div> |
| 1991 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_af0f796fba1a2be9c56b4c9ee534577ee"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#af0f796fba1a2be9c56b4c9ee534577ee">armnn::LstmInputParams::m_ForgetLayerNormWeights</a></div><div class="ttdeci">const ConstTensor * m_ForgetLayerNormWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00058">LstmParams.hpp:58</a></div></div> |
| 1992 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a2837b4396f20c956952d1a7286cab5f8"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a2837b4396f20c956952d1a7286cab5f8">armnn::LstmDescriptor::m_PeepholeEnabled</a></div><div class="ttdeci">bool m_PeepholeEnabled</div><div class="ttdoc">Enable/disable peephole. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00869">Descriptors.hpp:869</a></div></div> |
| 1993 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a8c0f6d48705f40c5590dde09be262222"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a8c0f6d48705f40c5590dde09be262222">armnn::LstmInputParams::m_OutputGateBias</a></div><div class="ttdeci">const ConstTensor * m_OutputGateBias</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00054">LstmParams.hpp:54</a></div></div> |
| 1994 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a49e11acda22742cbaf6f1b259ead0d84"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a49e11acda22742cbaf6f1b259ead0d84">armnn::LstmInputParams::m_InputToCellWeights</a></div><div class="ttdeci">const ConstTensor * m_InputToCellWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00042">LstmParams.hpp:42</a></div></div> |
| 1995 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a1759754ccb88ecc9af44f3aae6e244ee"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a1759754ccb88ecc9af44f3aae6e244ee">armnn::LstmInputParams::m_RecurrentToCellWeights</a></div><div class="ttdeci">const ConstTensor * m_RecurrentToCellWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00046">LstmParams.hpp:46</a></div></div> |
| 1996 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_ab03e6e1514f74427916c892f473fe04c"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#ab03e6e1514f74427916c892f473fe04c">armnn::LstmInputParams::m_ProjectionWeights</a></div><div class="ttdeci">const ConstTensor * m_ProjectionWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00055">LstmParams.hpp:55</a></div></div> |
| 1997 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a484bafa2f8453a7c5a4a00b92a61b006"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a484bafa2f8453a7c5a4a00b92a61b006">armnn::LstmInputParams::m_CellToInputWeights</a></div><div class="ttdeci">const ConstTensor * m_CellToInputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00048">LstmParams.hpp:48</a></div></div> |
| 1998 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_ae83131e16df1cace69395a5f99bc5ecb"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#ae83131e16df1cace69395a5f99bc5ecb">armnn::LstmInputParams::m_RecurrentToForgetWeights</a></div><div class="ttdeci">const ConstTensor * m_RecurrentToForgetWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00045">LstmParams.hpp:45</a></div></div> |
| 1999 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_ad0b8c32bb5381f4cc999093ba3b98b43"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#ad0b8c32bb5381f4cc999093ba3b98b43">armnn::LstmInputParams::m_CellLayerNormWeights</a></div><div class="ttdeci">const ConstTensor * m_CellLayerNormWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00059">LstmParams.hpp:59</a></div></div> |
| 2000 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a435d3651482bbfcc11263b4e4e0c900f"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a435d3651482bbfcc11263b4e4e0c900f">armnn::LstmInputParams::m_RecurrentToInputWeights</a></div><div class="ttdeci">const ConstTensor * m_RecurrentToInputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00044">LstmParams.hpp:44</a></div></div> |
| 2001 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_ace7a1f1f1041b412b7d8ef82b95ff352"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#ace7a1f1f1041b412b7d8ef82b95ff352">armnn::LstmInputParams::m_ForgetGateBias</a></div><div class="ttdeci">const ConstTensor * m_ForgetGateBias</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00052">LstmParams.hpp:52</a></div></div> |
| 2002 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a9e081a9b94defb30d1558dc912507e0e"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a9e081a9b94defb30d1558dc912507e0e">armnn::LstmInputParams::m_InputGateBias</a></div><div class="ttdeci">const ConstTensor * m_InputGateBias</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00051">LstmParams.hpp:51</a></div></div> |
| 2003 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_affcee5f4ab5994a21bee3b78b4e43de3"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#affcee5f4ab5994a21bee3b78b4e43de3">armnn::LstmInputParams::m_InputToInputWeights</a></div><div class="ttdeci">const ConstTensor * m_InputToInputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00040">LstmParams.hpp:40</a></div></div> |
| 2004 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_a44b0e6b16708df7f0d2bbab141688aaa"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#a44b0e6b16708df7f0d2bbab141688aaa">armnn::LstmInputParams::m_ProjectionBias</a></div><div class="ttdeci">const ConstTensor * m_ProjectionBias</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00056">LstmParams.hpp:56</a></div></div> |
| 2005 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_ae1b07ed928036004bd257169e5aeeef4"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#ae1b07ed928036004bd257169e5aeeef4">armnn::LstmDescriptor::m_ActivationFunc</a></div><div class="ttdeci">uint32_t m_ActivationFunc</div><div class="ttdoc">The activation function to use. 0: None, 1: Relu, 3: Relu6, 4: Tanh, 6: Sigmoid. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00861">Descriptors.hpp:861</a></div></div> |
| 2006 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a4a8ec49f130084445d44297549254780"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a4a8ec49f130084445d44297549254780">armnn::LstmDescriptor::m_LayerNormEnabled</a></div><div class="ttdeci">bool m_LayerNormEnabled</div><div class="ttdoc">Enable/disable layer normalization. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00873">Descriptors.hpp:873</a></div></div> |
| 2007 | <div class="ttc" id="structarmnn_1_1_lstm_input_params_html_afe204ca375b74e9a72640c9227918d0a"><div class="ttname"><a href="structarmnn_1_1_lstm_input_params.html#afe204ca375b74e9a72640c9227918d0a">armnn::LstmInputParams::m_CellToOutputWeights</a></div><div class="ttdeci">const ConstTensor * m_CellToOutputWeights</div><div class="ttdef"><b>Definition:</b> <a href="_lstm_params_8hpp_source.html#l00050">LstmParams.hpp:50</a></div></div> |
| 2008 | <div class="ttc" id="structarmnn_1_1_lstm_descriptor_html_a86e88bef0df4df96df752b4b8955a3af"><div class="ttname"><a href="structarmnn_1_1_lstm_descriptor.html#a86e88bef0df4df96df752b4b8955a3af">armnn::LstmDescriptor::m_ClippingThresProj</a></div><div class="ttdeci">float m_ClippingThresProj</div><div class="ttdoc">Clipping threshold value for the projection. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00865">Descriptors.hpp:865</a></div></div> |
| 2009 | </div><!-- fragment --> |
| 2010 | </div> |
| 2011 | </div> |
| 2012 | <a id="a29cb9e904f31bcc86b1ab75d13d343a4"></a> |
| 2013 | <h2 class="memtitle"><span class="permalink"><a href="#a29cb9e904f31bcc86b1ab75d13d343a4">◆ </a></span>VisitMaximumLayer()</h2> |
| 2014 | |
| 2015 | <div class="memitem"> |
| 2016 | <div class="memproto"> |
| 2017 | <table class="mlabels"> |
| 2018 | <tr> |
| 2019 | <td class="mlabels-left"> |
| 2020 | <table class="memname"> |
| 2021 | <tr> |
| 2022 | <td class="memname">void VisitMaximumLayer </td> |
| 2023 | <td>(</td> |
| 2024 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2025 | <td class="paramname"><em>layer</em>, </td> |
| 2026 | </tr> |
| 2027 | <tr> |
| 2028 | <td class="paramkey"></td> |
| 2029 | <td></td> |
| 2030 | <td class="paramtype">const char * </td> |
| 2031 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2032 | </tr> |
| 2033 | <tr> |
| 2034 | <td></td> |
| 2035 | <td>)</td> |
| 2036 | <td></td><td></td> |
| 2037 | </tr> |
| 2038 | </table> |
| 2039 | </td> |
| 2040 | <td class="mlabels-right"> |
| 2041 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2042 | </tr> |
| 2043 | </table> |
| 2044 | </div><div class="memdoc"> |
| 2045 | <p>Function a Maximum layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2046 | <table class="params"> |
| 2047 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2048 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2049 | </table> |
| 2050 | </dd> |
| 2051 | </dl> |
| 2052 | |
| 2053 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a9cbdbdbda6abefbc2e1eacaad47795bd">ILayerVisitor</a>.</p> |
| 2054 | |
| 2055 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00670">670</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2056 | |
| 2057 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2058 | <div class="fragment"><div class="line"><a name="l00671"></a><span class="lineno"> 671</span> {</div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span> </div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  <span class="keyword">auto</span> fbMaximumBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Maximum);</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <span class="keyword">auto</span> fbMaximumLayer = serializer::CreateMaximumLayer(m_flatBufferBuilder, fbMaximumBaseLayer);</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span> </div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  CreateAnyLayer(fbMaximumLayer.o, serializer::Layer::Layer_MaximumLayer);</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span> }</div></div><!-- fragment --> |
| 2059 | </div> |
| 2060 | </div> |
| 2061 | <a id="a1404339c6c051dc6924a16172db4b3ee"></a> |
| 2062 | <h2 class="memtitle"><span class="permalink"><a href="#a1404339c6c051dc6924a16172db4b3ee">◆ </a></span>VisitMeanLayer()</h2> |
| 2063 | |
| 2064 | <div class="memitem"> |
| 2065 | <div class="memproto"> |
| 2066 | <table class="mlabels"> |
| 2067 | <tr> |
| 2068 | <td class="mlabels-left"> |
| 2069 | <table class="memname"> |
| 2070 | <tr> |
| 2071 | <td class="memname">void VisitMeanLayer </td> |
| 2072 | <td>(</td> |
| 2073 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2074 | <td class="paramname"><em>layer</em>, </td> |
| 2075 | </tr> |
| 2076 | <tr> |
| 2077 | <td class="paramkey"></td> |
| 2078 | <td></td> |
| 2079 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_mean_descriptor.html">armnn::MeanDescriptor</a> & </td> |
| 2080 | <td class="paramname"><em>meanDescriptor</em>, </td> |
| 2081 | </tr> |
| 2082 | <tr> |
| 2083 | <td class="paramkey"></td> |
| 2084 | <td></td> |
| 2085 | <td class="paramtype">const char * </td> |
| 2086 | <td class="paramname"><em>name</em> </td> |
| 2087 | </tr> |
| 2088 | <tr> |
| 2089 | <td></td> |
| 2090 | <td>)</td> |
| 2091 | <td></td><td></td> |
| 2092 | </tr> |
| 2093 | </table> |
| 2094 | </td> |
| 2095 | <td class="mlabels-right"> |
| 2096 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2097 | </tr> |
| 2098 | </table> |
| 2099 | </div><div class="memdoc"> |
| 2100 | <p>Function a Mean layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2101 | <table class="params"> |
| 2102 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2103 | <tr><td class="paramname">meanDescriptor</td><td>- Parameters for the mean operation. </td></tr> |
| 2104 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2105 | </table> |
| 2106 | </dd> |
| 2107 | </dl> |
| 2108 | |
| 2109 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ab33e9cae83e312ccc9e12adcf53494e3">ILayerVisitor</a>.</p> |
| 2110 | |
| 2111 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00680">680</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2112 | |
| 2113 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00895">MeanDescriptor::m_Axis</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00897">MeanDescriptor::m_KeepDims</a>.</p> |
| 2114 | |
| 2115 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2116 | <div class="fragment"><div class="line"><a name="l00683"></a><span class="lineno"> 683</span> {</div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span> </div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <span class="keyword">auto</span> fbMeanBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Mean);</div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="keyword">auto</span> fbMeanDescriptor = serializer::CreateMeanDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  m_flatBufferBuilder.CreateVector(descriptor.m_Axis),</div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  descriptor.m_KeepDims);</div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span> </div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <span class="keyword">auto</span> fbMeanLayer = serializer::CreateMeanLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  fbMeanBaseLayer,</div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  fbMeanDescriptor);</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> </div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  CreateAnyLayer(fbMeanLayer.o, serializer::Layer::Layer_MeanLayer);</div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span> }</div></div><!-- fragment --> |
| 2117 | </div> |
| 2118 | </div> |
| 2119 | <a id="ae91857ae8a9be3557316eb446c40ba98"></a> |
| 2120 | <h2 class="memtitle"><span class="permalink"><a href="#ae91857ae8a9be3557316eb446c40ba98">◆ </a></span>VisitMergeLayer()</h2> |
| 2121 | |
| 2122 | <div class="memitem"> |
| 2123 | <div class="memproto"> |
| 2124 | <table class="mlabels"> |
| 2125 | <tr> |
| 2126 | <td class="mlabels-left"> |
| 2127 | <table class="memname"> |
| 2128 | <tr> |
| 2129 | <td class="memname">void VisitMergeLayer </td> |
| 2130 | <td>(</td> |
| 2131 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2132 | <td class="paramname"><em>layer</em>, </td> |
| 2133 | </tr> |
| 2134 | <tr> |
| 2135 | <td class="paramkey"></td> |
| 2136 | <td></td> |
| 2137 | <td class="paramtype">const char * </td> |
| 2138 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2139 | </tr> |
| 2140 | <tr> |
| 2141 | <td></td> |
| 2142 | <td>)</td> |
| 2143 | <td></td><td></td> |
| 2144 | </tr> |
| 2145 | </table> |
| 2146 | </td> |
| 2147 | <td class="mlabels-right"> |
| 2148 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2149 | </tr> |
| 2150 | </table> |
| 2151 | </div><div class="memdoc"> |
| 2152 | <p>Function that a merge layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2153 | <table class="params"> |
| 2154 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2155 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2156 | </table> |
| 2157 | </dd> |
| 2158 | </dl> |
| 2159 | |
| 2160 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a002ed3346c6a89035f54e11155d5b1e1">ILayerVisitor</a>.</p> |
| 2161 | |
| 2162 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00708">708</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2163 | |
| 2164 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2165 | <div class="fragment"><div class="line"><a name="l00709"></a><span class="lineno"> 709</span> {</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span> </div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <span class="keyword">auto</span> fbMergeBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Merge);</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <span class="keyword">auto</span> fbMergeLayer = serializer::CreateMergeLayer(m_flatBufferBuilder, fbMergeBaseLayer);</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span> </div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  CreateAnyLayer(fbMergeLayer.o, serializer::Layer::Layer_MergeLayer);</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span> }</div></div><!-- fragment --> |
| 2166 | </div> |
| 2167 | </div> |
| 2168 | <a id="ac6013ef93bf6ec846910e019a54cf021"></a> |
| 2169 | <h2 class="memtitle"><span class="permalink"><a href="#ac6013ef93bf6ec846910e019a54cf021">◆ </a></span>VisitMergerLayer()</h2> |
| 2170 | |
| 2171 | <div class="memitem"> |
| 2172 | <div class="memproto"> |
| 2173 | <table class="mlabels"> |
| 2174 | <tr> |
| 2175 | <td class="mlabels-left"> |
| 2176 | <table class="memname"> |
| 2177 | <tr> |
| 2178 | <td class="memname">void VisitMergerLayer </td> |
| 2179 | <td>(</td> |
| 2180 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2181 | <td class="paramname"><em>layer</em>, </td> |
| 2182 | </tr> |
| 2183 | <tr> |
| 2184 | <td class="paramkey"></td> |
| 2185 | <td></td> |
| 2186 | <td class="paramtype">const <a class="el" href="namespacearmnn.html#a003d213dd28b0b8c0f26fbf268ccb975">armnn::MergerDescriptor</a> & </td> |
| 2187 | <td class="paramname"><em>mergerDescriptor</em>, </td> |
| 2188 | </tr> |
| 2189 | <tr> |
| 2190 | <td class="paramkey"></td> |
| 2191 | <td></td> |
| 2192 | <td class="paramtype">const char * </td> |
| 2193 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2194 | </tr> |
| 2195 | <tr> |
| 2196 | <td></td> |
| 2197 | <td>)</td> |
| 2198 | <td></td><td></td> |
| 2199 | </tr> |
| 2200 | </table> |
| 2201 | </td> |
| 2202 | <td class="mlabels-right"> |
| 2203 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2204 | </tr> |
| 2205 | </table> |
| 2206 | </div><div class="memdoc"> |
| 2207 | <p>Function that a merger layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2208 | <table class="params"> |
| 2209 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2210 | <tr><td class="paramname">mergerDescriptor</td><td>- MergerDescriptor (synonym for OriginsDescriptor) to configure the concatenation process. Number of Views must be equal to the number of inputs, and their order must match - e.g. first view corresponds to the first input, second view to the second input, etc.... </td></tr> |
| 2211 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2212 | </table> |
| 2213 | </dd> |
| 2214 | </dl> |
| 2215 | |
| 2216 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#acc80689b27497fe0c4ee3c27b50d1f31">ILayerVisitor</a>.</p> |
| 2217 | |
| 2218 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00718">718</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2219 | |
| 2220 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2221 | <div class="fragment"><div class="line"><a name="l00721"></a><span class="lineno"> 721</span> {</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  <a class="code" href="classarmnn_serializer_1_1_serializer_visitor.html#a148d342b40eada32d536c2ccda673405">VisitConcatLayer</a>(layer, mergerDescriptor, name);</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span> }</div><div class="ttc" id="classarmnn_serializer_1_1_serializer_visitor_html_a148d342b40eada32d536c2ccda673405"><div class="ttname"><a href="classarmnn_serializer_1_1_serializer_visitor.html#a148d342b40eada32d536c2ccda673405">armnnSerializer::SerializerVisitor::VisitConcatLayer</a></div><div class="ttdeci">void VisitConcatLayer(const armnn::IConnectableLayer *layer, const armnn::ConcatDescriptor &concatDescriptor, const char *name=nullptr) override</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_8cpp_source.html#l00725">Serializer.cpp:725</a></div></div> |
| 2222 | </div><!-- fragment --> |
| 2223 | </div> |
| 2224 | </div> |
| 2225 | <a id="a87432c758f53e21892780fc3b10b5c2a"></a> |
| 2226 | <h2 class="memtitle"><span class="permalink"><a href="#a87432c758f53e21892780fc3b10b5c2a">◆ </a></span>VisitMinimumLayer()</h2> |
| 2227 | |
| 2228 | <div class="memitem"> |
| 2229 | <div class="memproto"> |
| 2230 | <table class="mlabels"> |
| 2231 | <tr> |
| 2232 | <td class="mlabels-left"> |
| 2233 | <table class="memname"> |
| 2234 | <tr> |
| 2235 | <td class="memname">void VisitMinimumLayer </td> |
| 2236 | <td>(</td> |
| 2237 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2238 | <td class="paramname"><em>layer</em>, </td> |
| 2239 | </tr> |
| 2240 | <tr> |
| 2241 | <td class="paramkey"></td> |
| 2242 | <td></td> |
| 2243 | <td class="paramtype">const char * </td> |
| 2244 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2245 | </tr> |
| 2246 | <tr> |
| 2247 | <td></td> |
| 2248 | <td>)</td> |
| 2249 | <td></td><td></td> |
| 2250 | </tr> |
| 2251 | </table> |
| 2252 | </td> |
| 2253 | <td class="mlabels-right"> |
| 2254 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2255 | </tr> |
| 2256 | </table> |
| 2257 | </div><div class="memdoc"> |
| 2258 | <p>Function a Minimum layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2259 | <table class="params"> |
| 2260 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2261 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2262 | </table> |
| 2263 | </dd> |
| 2264 | </dl> |
| 2265 | |
| 2266 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a63187da01b5bb0bd4500ddf851edd0ff">ILayerVisitor</a>.</p> |
| 2267 | |
| 2268 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00698">698</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2269 | |
| 2270 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2271 | <div class="fragment"><div class="line"><a name="l00699"></a><span class="lineno"> 699</span> {</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span> </div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="keyword">auto</span> fbMinimumBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Minimum);</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <span class="keyword">auto</span> fbMinimumLayer = serializer::CreateMinimumLayer(m_flatBufferBuilder, fbMinimumBaseLayer);</div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span> </div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  CreateAnyLayer(fbMinimumLayer.o, serializer::Layer::Layer_MinimumLayer);</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span> }</div></div><!-- fragment --> |
| 2272 | </div> |
| 2273 | </div> |
| 2274 | <a id="a23e516e20d857cd11ce80d0967ae48f3"></a> |
| 2275 | <h2 class="memtitle"><span class="permalink"><a href="#a23e516e20d857cd11ce80d0967ae48f3">◆ </a></span>VisitMultiplicationLayer()</h2> |
| 2276 | |
| 2277 | <div class="memitem"> |
| 2278 | <div class="memproto"> |
| 2279 | <table class="mlabels"> |
| 2280 | <tr> |
| 2281 | <td class="mlabels-left"> |
| 2282 | <table class="memname"> |
| 2283 | <tr> |
| 2284 | <td class="memname">void VisitMultiplicationLayer </td> |
| 2285 | <td>(</td> |
| 2286 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2287 | <td class="paramname"><em>layer</em>, </td> |
| 2288 | </tr> |
| 2289 | <tr> |
| 2290 | <td class="paramkey"></td> |
| 2291 | <td></td> |
| 2292 | <td class="paramtype">const char * </td> |
| 2293 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2294 | </tr> |
| 2295 | <tr> |
| 2296 | <td></td> |
| 2297 | <td>)</td> |
| 2298 | <td></td><td></td> |
| 2299 | </tr> |
| 2300 | </table> |
| 2301 | </td> |
| 2302 | <td class="mlabels-right"> |
| 2303 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2304 | </tr> |
| 2305 | </table> |
| 2306 | </div><div class="memdoc"> |
| 2307 | <p>Function that a multiplication layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2308 | <table class="params"> |
| 2309 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2310 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2311 | </table> |
| 2312 | </dd> |
| 2313 | </dl> |
| 2314 | |
| 2315 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a1e415ad61a4fa40d85a4f0da855cf485">ILayerVisitor</a>.</p> |
| 2316 | |
| 2317 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00760">760</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2318 | |
| 2319 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2320 | <div class="fragment"><div class="line"><a name="l00761"></a><span class="lineno"> 761</span> {</div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span> </div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  <span class="keyword">auto</span> fbMultiplicationBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Multiplication);</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="keyword">auto</span> fbMultiplicationLayer = serializer::CreateMultiplicationLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  fbMultiplicationBaseLayer);</div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span> </div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  CreateAnyLayer(fbMultiplicationLayer.o, serializer::Layer::Layer_MultiplicationLayer);</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span> }</div></div><!-- fragment --> |
| 2321 | </div> |
| 2322 | </div> |
| 2323 | <a id="adf9c46396d90c17839fcbdd9f400166e"></a> |
| 2324 | <h2 class="memtitle"><span class="permalink"><a href="#adf9c46396d90c17839fcbdd9f400166e">◆ </a></span>VisitNormalizationLayer()</h2> |
| 2325 | |
| 2326 | <div class="memitem"> |
| 2327 | <div class="memproto"> |
| 2328 | <table class="mlabels"> |
| 2329 | <tr> |
| 2330 | <td class="mlabels-left"> |
| 2331 | <table class="memname"> |
| 2332 | <tr> |
| 2333 | <td class="memname">void VisitNormalizationLayer </td> |
| 2334 | <td>(</td> |
| 2335 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2336 | <td class="paramname"><em>layer</em>, </td> |
| 2337 | </tr> |
| 2338 | <tr> |
| 2339 | <td class="paramkey"></td> |
| 2340 | <td></td> |
| 2341 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_normalization_descriptor.html">armnn::NormalizationDescriptor</a> & </td> |
| 2342 | <td class="paramname"><em>normalizationDescriptor</em>, </td> |
| 2343 | </tr> |
| 2344 | <tr> |
| 2345 | <td class="paramkey"></td> |
| 2346 | <td></td> |
| 2347 | <td class="paramtype">const char * </td> |
| 2348 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2349 | </tr> |
| 2350 | <tr> |
| 2351 | <td></td> |
| 2352 | <td>)</td> |
| 2353 | <td></td><td></td> |
| 2354 | </tr> |
| 2355 | </table> |
| 2356 | </td> |
| 2357 | <td class="mlabels-right"> |
| 2358 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2359 | </tr> |
| 2360 | </table> |
| 2361 | </div><div class="memdoc"> |
| 2362 | <p>Function that a normalization layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2363 | <table class="params"> |
| 2364 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2365 | <tr><td class="paramname">normalizationDescriptor</td><td>- NormalizationDescriptor to configure the normalization. </td></tr> |
| 2366 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2367 | </table> |
| 2368 | </dd> |
| 2369 | </dl> |
| 2370 | |
| 2371 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a96501b3e43422b9fdf6fc45d89b20992">ILayerVisitor</a>.</p> |
| 2372 | |
| 2373 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01154">1154</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2374 | |
| 2375 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00139">armnnSerializer::GetFlatBufferNormalizationAlgorithmChannel()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00153">armnnSerializer::GetFlatBufferNormalizationAlgorithmMethod()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00581">NormalizationDescriptor::m_Alpha</a>, <a class="el" href="_descriptors_8hpp_source.html#l00583">NormalizationDescriptor::m_Beta</a>, <a class="el" href="_descriptors_8hpp_source.html#l00587">NormalizationDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00585">NormalizationDescriptor::m_K</a>, <a class="el" href="_descriptors_8hpp_source.html#l00575">NormalizationDescriptor::m_NormChannelType</a>, <a class="el" href="_descriptors_8hpp_source.html#l00577">NormalizationDescriptor::m_NormMethodType</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00579">NormalizationDescriptor::m_NormSize</a>.</p> |
| 2376 | |
| 2377 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2378 | <div class="fragment"><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span> {</div><div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span> </div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>  <span class="keyword">auto</span> fbNormalizationBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Normalization);</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>  <span class="keyword">auto</span> fbNormalizationDescriptor = serializer::CreateNormalizationDescriptor(</div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>  m_flatBufferBuilder,</div><div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>  <a class="code" href="namespacearmnn_serializer.html#af279947f1e42035d0f611e5b8cd70cb2">GetFlatBufferNormalizationAlgorithmChannel</a>(descriptor.m_NormChannelType),</div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  <a class="code" href="namespacearmnn_serializer.html#ac813f02c91c348db92b5a40ecfa0135e">GetFlatBufferNormalizationAlgorithmMethod</a>(descriptor.m_NormMethodType),</div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>  descriptor.m_NormSize,</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>  descriptor.m_Alpha,</div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>  descriptor.m_Beta,</div><div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>  descriptor.m_K,</div><div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.m_DataLayout));</div><div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div><div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateNormalizationLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>  fbNormalizationBaseLayer,</div><div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>  fbNormalizationDescriptor);</div><div class="line"><a name="l01175"></a><span class="lineno"> 1175</span> </div><div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_NormalizationLayer);</div><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_af279947f1e42035d0f611e5b8cd70cb2"><div class="ttname"><a href="namespacearmnn_serializer.html#af279947f1e42035d0f611e5b8cd70cb2">armnnSerializer::GetFlatBufferNormalizationAlgorithmChannel</a></div><div class="ttdeci">armnnSerializer::NormalizationAlgorithmChannel GetFlatBufferNormalizationAlgorithmChannel(armnn::NormalizationAlgorithmChannel normalizationAlgorithmChannel)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00139">SerializerUtils.cpp:139</a></div></div> |
| 2379 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 2380 | <div class="ttc" id="namespacearmnn_serializer_html_ac813f02c91c348db92b5a40ecfa0135e"><div class="ttname"><a href="namespacearmnn_serializer.html#ac813f02c91c348db92b5a40ecfa0135e">armnnSerializer::GetFlatBufferNormalizationAlgorithmMethod</a></div><div class="ttdeci">armnnSerializer::NormalizationAlgorithmMethod GetFlatBufferNormalizationAlgorithmMethod(armnn::NormalizationAlgorithmMethod normalizationAlgorithmMethod)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00153">SerializerUtils.cpp:153</a></div></div> |
| 2381 | </div><!-- fragment --> |
| 2382 | </div> |
| 2383 | </div> |
| 2384 | <a id="a56858f9071c8bf57fdb31a96833ff4bd"></a> |
| 2385 | <h2 class="memtitle"><span class="permalink"><a href="#a56858f9071c8bf57fdb31a96833ff4bd">◆ </a></span>VisitOutputLayer()</h2> |
| 2386 | |
| 2387 | <div class="memitem"> |
| 2388 | <div class="memproto"> |
| 2389 | <table class="mlabels"> |
| 2390 | <tr> |
| 2391 | <td class="mlabels-left"> |
| 2392 | <table class="memname"> |
| 2393 | <tr> |
| 2394 | <td class="memname">void VisitOutputLayer </td> |
| 2395 | <td>(</td> |
| 2396 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2397 | <td class="paramname"><em>layer</em>, </td> |
| 2398 | </tr> |
| 2399 | <tr> |
| 2400 | <td class="paramkey"></td> |
| 2401 | <td></td> |
| 2402 | <td class="paramtype"><a class="el" href="namespacearmnn.html#ab8cf8f9fb6792e654c2d8d8382f6f01b">armnn::LayerBindingId</a> </td> |
| 2403 | <td class="paramname"><em>id</em>, </td> |
| 2404 | </tr> |
| 2405 | <tr> |
| 2406 | <td class="paramkey"></td> |
| 2407 | <td></td> |
| 2408 | <td class="paramtype">const char * </td> |
| 2409 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2410 | </tr> |
| 2411 | <tr> |
| 2412 | <td></td> |
| 2413 | <td>)</td> |
| 2414 | <td></td><td></td> |
| 2415 | </tr> |
| 2416 | </table> |
| 2417 | </td> |
| 2418 | <td class="mlabels-right"> |
| 2419 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2420 | </tr> |
| 2421 | </table> |
| 2422 | </div><div class="memdoc"> |
| 2423 | <p>Function an output layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2424 | <table class="params"> |
| 2425 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2426 | <tr><td class="paramname">id</td><td>- User generated id to uniquely identify a particular output. The same id needs to be specified when passing the outputs to the IRuntime::EnqueueWorkload() function. </td></tr> |
| 2427 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2428 | </table> |
| 2429 | </dd> |
| 2430 | </dl> |
| 2431 | |
| 2432 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a0da6bde681d919b7282eddad4a446890">ILayerVisitor</a>.</p> |
| 2433 | |
| 2434 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00105">105</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2435 | |
| 2436 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2437 | <div class="fragment"><div class="line"><a name="l00106"></a><span class="lineno"> 106</span> {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">auto</span> flatBufferOutputBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Output);</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="comment">// Create FlatBuffer BindableBaseLayer</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">auto</span> flatBufferOutputBindableBaseLayer = serializer::CreateBindableLayerBase(m_flatBufferBuilder,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  flatBufferOutputBaseLayer,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordtype">id</span>);</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="comment">// Push layer binding id to outputIds.</span></div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  m_outputIds.push_back(<span class="keywordtype">id</span>);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="comment">// Create the FlatBuffer OutputLayer</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keyword">auto</span> flatBufferOutputLayer = serializer::CreateOutputLayer(m_flatBufferBuilder, flatBufferOutputBindableBaseLayer);</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  CreateAnyLayer(flatBufferOutputLayer.o, serializer::Layer::Layer_OutputLayer);</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> }</div></div><!-- fragment --> |
| 2438 | </div> |
| 2439 | </div> |
| 2440 | <a id="a3569b9af864b7b141b067e7de3902bf3"></a> |
| 2441 | <h2 class="memtitle"><span class="permalink"><a href="#a3569b9af864b7b141b067e7de3902bf3">◆ </a></span>VisitPadLayer()</h2> |
| 2442 | |
| 2443 | <div class="memitem"> |
| 2444 | <div class="memproto"> |
| 2445 | <table class="mlabels"> |
| 2446 | <tr> |
| 2447 | <td class="mlabels-left"> |
| 2448 | <table class="memname"> |
| 2449 | <tr> |
| 2450 | <td class="memname">void VisitPadLayer </td> |
| 2451 | <td>(</td> |
| 2452 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2453 | <td class="paramname"><em>layer</em>, </td> |
| 2454 | </tr> |
| 2455 | <tr> |
| 2456 | <td class="paramkey"></td> |
| 2457 | <td></td> |
| 2458 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_pad_descriptor.html">armnn::PadDescriptor</a> & </td> |
| 2459 | <td class="paramname"><em>padDescriptor</em>, </td> |
| 2460 | </tr> |
| 2461 | <tr> |
| 2462 | <td class="paramkey"></td> |
| 2463 | <td></td> |
| 2464 | <td class="paramtype">const char * </td> |
| 2465 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2466 | </tr> |
| 2467 | <tr> |
| 2468 | <td></td> |
| 2469 | <td>)</td> |
| 2470 | <td></td><td></td> |
| 2471 | </tr> |
| 2472 | </table> |
| 2473 | </td> |
| 2474 | <td class="mlabels-right"> |
| 2475 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2476 | </tr> |
| 2477 | </table> |
| 2478 | </div><div class="memdoc"> |
| 2479 | <p>Function a pad layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2480 | <table class="params"> |
| 2481 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2482 | <tr><td class="paramname">paddings</td><td>- n by 2 tensor, where n is the rank of the input tensor, such that paddings[i,0] indicates the amount of padding to add in front of dimension i, and paddings[i,1] indicates the amount of padding to add after the end of dimension i </td></tr> |
| 2483 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2484 | </table> |
| 2485 | </dd> |
| 2486 | </dl> |
| 2487 | |
| 2488 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aab2febd844bcf654e80cf164984c8904">ILayerVisitor</a>.</p> |
| 2489 | |
| 2490 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00771">771</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2491 | |
| 2492 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00920">PadDescriptor::m_PadList</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00923">PadDescriptor::m_PadValue</a>.</p> |
| 2493 | |
| 2494 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2495 | <div class="fragment"><div class="line"><a name="l00774"></a><span class="lineno"> 774</span> {</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span> </div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Pad);</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> </div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  std::vector<unsigned int> padList;</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& p: padDescriptor.<a class="code" href="structarmnn_1_1_pad_descriptor.html#a85f98c94e11f65a6b73f831735c040f3">m_PadList</a>)</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  {</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  padList.push_back(p.first);</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  padList.push_back(p.second);</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  }</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span> </div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  <span class="keyword">auto</span> flatBufferPadDesc = serializer::CreatePadDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span>  m_flatBufferBuilder.CreateVector(padList),</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  padDescriptor.<a class="code" href="structarmnn_1_1_pad_descriptor.html#a410fa919f78af0f0f100bd1594eca4ab">m_PadValue</a>);</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span> </div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  <span class="keyword">auto</span> flatBufferPadLayer = serializer::CreatePadLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  flatBufferPadDesc);</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span> </div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  CreateAnyLayer(flatBufferPadLayer.o, serializer::Layer::Layer_PadLayer);</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span> }</div><div class="ttc" id="structarmnn_1_1_pad_descriptor_html_a410fa919f78af0f0f100bd1594eca4ab"><div class="ttname"><a href="structarmnn_1_1_pad_descriptor.html#a410fa919f78af0f0f100bd1594eca4ab">armnn::PadDescriptor::m_PadValue</a></div><div class="ttdeci">float m_PadValue</div><div class="ttdoc">Optional value to use for padding, defaults to 0. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00923">Descriptors.hpp:923</a></div></div> |
| 2496 | <div class="ttc" id="structarmnn_1_1_pad_descriptor_html_a85f98c94e11f65a6b73f831735c040f3"><div class="ttname"><a href="structarmnn_1_1_pad_descriptor.html#a85f98c94e11f65a6b73f831735c040f3">armnn::PadDescriptor::m_PadList</a></div><div class="ttdeci">std::vector< std::pair< unsigned int, unsigned int > > m_PadList</div><div class="ttdoc">Specifies the padding for input dimension. First is the number of values to add before the tensor in ...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00920">Descriptors.hpp:920</a></div></div> |
| 2497 | </div><!-- fragment --> |
| 2498 | </div> |
| 2499 | </div> |
| 2500 | <a id="ac81df940ac47b39a703a2cbe017bda8e"></a> |
| 2501 | <h2 class="memtitle"><span class="permalink"><a href="#ac81df940ac47b39a703a2cbe017bda8e">◆ </a></span>VisitPermuteLayer()</h2> |
| 2502 | |
| 2503 | <div class="memitem"> |
| 2504 | <div class="memproto"> |
| 2505 | <table class="mlabels"> |
| 2506 | <tr> |
| 2507 | <td class="mlabels-left"> |
| 2508 | <table class="memname"> |
| 2509 | <tr> |
| 2510 | <td class="memname">void VisitPermuteLayer </td> |
| 2511 | <td>(</td> |
| 2512 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2513 | <td class="paramname"><em>layer</em>, </td> |
| 2514 | </tr> |
| 2515 | <tr> |
| 2516 | <td class="paramkey"></td> |
| 2517 | <td></td> |
| 2518 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_permute_descriptor.html">armnn::PermuteDescriptor</a> & </td> |
| 2519 | <td class="paramname"><em>permuteDescriptor</em>, </td> |
| 2520 | </tr> |
| 2521 | <tr> |
| 2522 | <td class="paramkey"></td> |
| 2523 | <td></td> |
| 2524 | <td class="paramtype">const char * </td> |
| 2525 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2526 | </tr> |
| 2527 | <tr> |
| 2528 | <td></td> |
| 2529 | <td>)</td> |
| 2530 | <td></td><td></td> |
| 2531 | </tr> |
| 2532 | </table> |
| 2533 | </td> |
| 2534 | <td class="mlabels-right"> |
| 2535 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2536 | </tr> |
| 2537 | </table> |
| 2538 | </div><div class="memdoc"> |
| 2539 | <p>Function that a permute layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2540 | <table class="params"> |
| 2541 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2542 | <tr><td class="paramname">permuteDescriptor</td><td>- PermuteDescriptor to configure the permute. </td></tr> |
| 2543 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2544 | </table> |
| 2545 | </dd> |
| 2546 | </dl> |
| 2547 | |
| 2548 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a211e587a05b0c7e7202f8f8894f89894">ILayerVisitor</a>.</p> |
| 2549 | |
| 2550 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00797">797</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2551 | |
| 2552 | <p class="reference">References <a class="el" href="_types_8hpp_source.html#l00199">PermutationVector::GetSize()</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00119">PermuteDescriptor::m_DimMappings</a>.</p> |
| 2553 | |
| 2554 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2555 | <div class="fragment"><div class="line"><a name="l00800"></a><span class="lineno"> 800</span> {</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span> </div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  <span class="keyword">auto</span> flatBufferPermuteBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Permute);</div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span> </div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  std::vector<unsigned int> dimMappings;</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<permuteDescriptor.<a class="code" href="structarmnn_1_1_permute_descriptor.html#a14433af2b223695b40d8c8f8ba2ebb8f">m_DimMappings</a>.<a class="code" href="classarmnn_1_1_permutation_vector.html#a490ec6b59006d1fe1ec2ea30e69fb97c">GetSize</a>(); ++i)</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span>  {</div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  dimMappings.push_back(permuteDescriptor.<a class="code" href="structarmnn_1_1_permute_descriptor.html#a14433af2b223695b40d8c8f8ba2ebb8f">m_DimMappings</a>[i]);</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  }</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span> </div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  <span class="keyword">auto</span> flatBufferPermuteDesc = serializer::CreatePermuteDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  m_flatBufferBuilder.CreateVector(dimMappings));</div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span> </div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <span class="comment">// Create the FlatBuffer PermuteLayer</span></div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span>  <span class="keyword">auto</span> flatBufferPermuteLayer = serializer::CreatePermuteLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  flatBufferPermuteBaseLayer,</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span>  flatBufferPermuteDesc);</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span> </div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  CreateAnyLayer(flatBufferPermuteLayer.o, serializer::Layer::Layer_PermuteLayer);</div><div class="line"><a name="l00822"></a><span class="lineno"> 822</span> }</div><div class="ttc" id="structarmnn_1_1_permute_descriptor_html_a14433af2b223695b40d8c8f8ba2ebb8f"><div class="ttname"><a href="structarmnn_1_1_permute_descriptor.html#a14433af2b223695b40d8c8f8ba2ebb8f">armnn::PermuteDescriptor::m_DimMappings</a></div><div class="ttdeci">PermutationVector m_DimMappings</div><div class="ttdoc">Indicates how to translate tensor elements from a given source into the target destination, when source and target potentially have different memory layouts e.g. {0U, 3U, 1U, 2U}. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00119">Descriptors.hpp:119</a></div></div> |
| 2556 | <div class="ttc" id="classarmnn_1_1_permutation_vector_html_a490ec6b59006d1fe1ec2ea30e69fb97c"><div class="ttname"><a href="classarmnn_1_1_permutation_vector.html#a490ec6b59006d1fe1ec2ea30e69fb97c">armnn::PermutationVector::GetSize</a></div><div class="ttdeci">SizeType GetSize() const</div><div class="ttdef"><b>Definition:</b> <a href="_types_8hpp_source.html#l00199">Types.hpp:199</a></div></div> |
| 2557 | </div><!-- fragment --> |
| 2558 | </div> |
| 2559 | </div> |
| 2560 | <a id="ab3c8fcc1045d3379148d4298b27c20d3"></a> |
| 2561 | <h2 class="memtitle"><span class="permalink"><a href="#ab3c8fcc1045d3379148d4298b27c20d3">◆ </a></span>VisitPooling2dLayer()</h2> |
| 2562 | |
| 2563 | <div class="memitem"> |
| 2564 | <div class="memproto"> |
| 2565 | <table class="mlabels"> |
| 2566 | <tr> |
| 2567 | <td class="mlabels-left"> |
| 2568 | <table class="memname"> |
| 2569 | <tr> |
| 2570 | <td class="memname">void VisitPooling2dLayer </td> |
| 2571 | <td>(</td> |
| 2572 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2573 | <td class="paramname"><em>layer</em>, </td> |
| 2574 | </tr> |
| 2575 | <tr> |
| 2576 | <td class="paramkey"></td> |
| 2577 | <td></td> |
| 2578 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_pooling2d_descriptor.html">armnn::Pooling2dDescriptor</a> & </td> |
| 2579 | <td class="paramname"><em>pooling2dDescriptor</em>, </td> |
| 2580 | </tr> |
| 2581 | <tr> |
| 2582 | <td class="paramkey"></td> |
| 2583 | <td></td> |
| 2584 | <td class="paramtype">const char * </td> |
| 2585 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2586 | </tr> |
| 2587 | <tr> |
| 2588 | <td></td> |
| 2589 | <td>)</td> |
| 2590 | <td></td><td></td> |
| 2591 | </tr> |
| 2592 | </table> |
| 2593 | </td> |
| 2594 | <td class="mlabels-right"> |
| 2595 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2596 | </tr> |
| 2597 | </table> |
| 2598 | </div><div class="memdoc"> |
| 2599 | <p>Function that a pooling layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2600 | <table class="params"> |
| 2601 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2602 | <tr><td class="paramname">pooling2dDescriptor</td><td>- Pooling2dDescriptor to configure the pooling. </td></tr> |
| 2603 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2604 | </table> |
| 2605 | </dd> |
| 2606 | </dl> |
| 2607 | |
| 2608 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aef56afef7d87afa51fd363487c375af5">ILayerVisitor</a>.</p> |
| 2609 | |
| 2610 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00943">943</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2611 | |
| 2612 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00115">armnnSerializer::GetFlatBufferOutputShapeRounding()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00127">armnnSerializer::GetFlatBufferPaddingMethod()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00101">armnnSerializer::GetFlatBufferPoolingAlgorithm()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00369">Pooling2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00365">Pooling2dDescriptor::m_OutputShapeRounding</a>, <a class="el" href="_descriptors_8hpp_source.html#l00355">Pooling2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l00367">Pooling2dDescriptor::m_PaddingMethod</a>, <a class="el" href="_descriptors_8hpp_source.html#l00349">Pooling2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l00351">Pooling2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00353">Pooling2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l00359">Pooling2dDescriptor::m_PoolHeight</a>, <a class="el" href="_descriptors_8hpp_source.html#l00347">Pooling2dDescriptor::m_PoolType</a>, <a class="el" href="_descriptors_8hpp_source.html#l00357">Pooling2dDescriptor::m_PoolWidth</a>, <a class="el" href="_descriptors_8hpp_source.html#l00361">Pooling2dDescriptor::m_StrideX</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00363">Pooling2dDescriptor::m_StrideY</a>.</p> |
| 2613 | |
| 2614 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2615 | <div class="fragment"><div class="line"><a name="l00946"></a><span class="lineno"> 946</span> {</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span> </div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span>  <span class="keyword">auto</span> fbPooling2dBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Pooling2d);</div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  <span class="keyword">auto</span> fbPooling2dDescriptor = serializer::CreatePooling2dDescriptor(</div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  m_flatBufferBuilder,</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  <a class="code" href="namespacearmnn_serializer.html#ac2eceb2274af867d713fe44720fc2d4e">GetFlatBufferPoolingAlgorithm</a>(pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">m_PoolType</a>),</div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a>,</div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a>,</div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a>,</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a>,</div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">m_PoolWidth</a>,</div><div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">m_PoolHeight</a>,</div><div class="line"><a name="l00959"></a><span class="lineno"> 959</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a>,</div><div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a>,</div><div class="line"><a name="l00961"></a><span class="lineno"> 961</span>  <a class="code" href="namespacearmnn_serializer.html#aa5f62540b7f991c1522cf9c43fc005ee">GetFlatBufferOutputShapeRounding</a>(pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#affb5b68b3eba3ed45a06c7cde7781962">m_OutputShapeRounding</a>),</div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span>  <a class="code" href="namespacearmnn_serializer.html#a30eb1e8d2a9b090243c4ededa17746b7">GetFlatBufferPaddingMethod</a>(pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">m_PaddingMethod</a>),</div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(pooling2dDescriptor.<a class="code" href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span> </div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span>  <span class="keyword">auto</span> fbPooling2dLayer = serializer::CreatePooling2dLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span>  fbPooling2dBaseLayer,</div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span>  fbPooling2dDescriptor);</div><div class="line"><a name="l00968"></a><span class="lineno"> 968</span> </div><div class="line"><a name="l00969"></a><span class="lineno"> 969</span>  CreateAnyLayer(fbPooling2dLayer.o, serializer::Layer::Layer_Pooling2dLayer);</div><div class="line"><a name="l00970"></a><span class="lineno"> 970</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_aa5f62540b7f991c1522cf9c43fc005ee"><div class="ttname"><a href="namespacearmnn_serializer.html#aa5f62540b7f991c1522cf9c43fc005ee">armnnSerializer::GetFlatBufferOutputShapeRounding</a></div><div class="ttdeci">armnnSerializer::OutputShapeRounding GetFlatBufferOutputShapeRounding(armnn::OutputShapeRounding outputShapeRounding)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00115">SerializerUtils.cpp:115</a></div></div> |
| 2616 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a5699e8606c37d18c03910b242cd1b010"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a5699e8606c37d18c03910b242cd1b010">armnn::Pooling2dDescriptor::m_PoolHeight</a></div><div class="ttdeci">uint32_t m_PoolHeight</div><div class="ttdoc">Pooling height value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00359">Descriptors.hpp:359</a></div></div> |
| 2617 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">armnn::Pooling2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00353">Descriptors.hpp:353</a></div></div> |
| 2618 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">armnn::Pooling2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00351">Descriptors.hpp:351</a></div></div> |
| 2619 | <div class="ttc" id="namespacearmnn_serializer_html_a30eb1e8d2a9b090243c4ededa17746b7"><div class="ttname"><a href="namespacearmnn_serializer.html#a30eb1e8d2a9b090243c4ededa17746b7">armnnSerializer::GetFlatBufferPaddingMethod</a></div><div class="ttdeci">armnnSerializer::PaddingMethod GetFlatBufferPaddingMethod(armnn::PaddingMethod paddingMethod)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00127">SerializerUtils.cpp:127</a></div></div> |
| 2620 | <div class="ttc" id="namespacearmnn_serializer_html_ac2eceb2274af867d713fe44720fc2d4e"><div class="ttname"><a href="namespacearmnn_serializer.html#ac2eceb2274af867d713fe44720fc2d4e">armnnSerializer::GetFlatBufferPoolingAlgorithm</a></div><div class="ttdeci">armnnSerializer::PoolingAlgorithm GetFlatBufferPoolingAlgorithm(armnn::PoolingAlgorithm poolingAlgorithm)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00101">SerializerUtils.cpp:101</a></div></div> |
| 2621 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6d8fb685cc1ff224f25aa127fcf62c86"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6d8fb685cc1ff224f25aa127fcf62c86">armnn::Pooling2dDescriptor::m_PoolWidth</a></div><div class="ttdeci">uint32_t m_PoolWidth</div><div class="ttdoc">Pooling width value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00357">Descriptors.hpp:357</a></div></div> |
| 2622 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::Pooling2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00349">Descriptors.hpp:349</a></div></div> |
| 2623 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a8c29d6ea9b4186d69aad5961c910939c"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a8c29d6ea9b4186d69aad5961c910939c">armnn::Pooling2dDescriptor::m_PaddingMethod</a></div><div class="ttdeci">PaddingMethod m_PaddingMethod</div><div class="ttdoc">The padding method to be used. (Exclude, IgnoreValue). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00367">Descriptors.hpp:367</a></div></div> |
| 2624 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_affb5b68b3eba3ed45a06c7cde7781962"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#affb5b68b3eba3ed45a06c7cde7781962">armnn::Pooling2dDescriptor::m_OutputShapeRounding</a></div><div class="ttdeci">OutputShapeRounding m_OutputShapeRounding</div><div class="ttdoc">The rounding method for the output shape. (Floor, Ceiling). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00365">Descriptors.hpp:365</a></div></div> |
| 2625 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::Pooling2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00363">Descriptors.hpp:363</a></div></div> |
| 2626 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a0031997bf43bd2747656c31e4977793a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a0031997bf43bd2747656c31e4977793a">armnn::Pooling2dDescriptor::m_PoolType</a></div><div class="ttdeci">PoolingAlgorithm m_PoolType</div><div class="ttdoc">The pooling algorithm to use (Max. Average, L2). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00347">Descriptors.hpp:347</a></div></div> |
| 2627 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::Pooling2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00369">Descriptors.hpp:369</a></div></div> |
| 2628 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 2629 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">armnn::Pooling2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00355">Descriptors.hpp:355</a></div></div> |
| 2630 | <div class="ttc" id="structarmnn_1_1_pooling2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_pooling2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::Pooling2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00361">Descriptors.hpp:361</a></div></div> |
| 2631 | </div><!-- fragment --> |
| 2632 | </div> |
| 2633 | </div> |
| 2634 | <a id="a26930996b666eef0b5b1fe562644f5c9"></a> |
| 2635 | <h2 class="memtitle"><span class="permalink"><a href="#a26930996b666eef0b5b1fe562644f5c9">◆ </a></span>VisitPreluLayer()</h2> |
| 2636 | |
| 2637 | <div class="memitem"> |
| 2638 | <div class="memproto"> |
| 2639 | <table class="mlabels"> |
| 2640 | <tr> |
| 2641 | <td class="mlabels-left"> |
| 2642 | <table class="memname"> |
| 2643 | <tr> |
| 2644 | <td class="memname">void VisitPreluLayer </td> |
| 2645 | <td>(</td> |
| 2646 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2647 | <td class="paramname"><em>layer</em>, </td> |
| 2648 | </tr> |
| 2649 | <tr> |
| 2650 | <td class="paramkey"></td> |
| 2651 | <td></td> |
| 2652 | <td class="paramtype">const char * </td> |
| 2653 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2654 | </tr> |
| 2655 | <tr> |
| 2656 | <td></td> |
| 2657 | <td>)</td> |
| 2658 | <td></td><td></td> |
| 2659 | </tr> |
| 2660 | </table> |
| 2661 | </td> |
| 2662 | <td class="mlabels-right"> |
| 2663 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2664 | </tr> |
| 2665 | </table> |
| 2666 | </div><div class="memdoc"> |
| 2667 | <p>Function that a PReLU activation layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2668 | <table class="params"> |
| 2669 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2670 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2671 | </table> |
| 2672 | </dd> |
| 2673 | </dl> |
| 2674 | |
| 2675 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a4f6971a5d2c164c691dc7943f4befd5c">ILayerVisitor</a>.</p> |
| 2676 | |
| 2677 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00972">972</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2678 | |
| 2679 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2680 | <div class="fragment"><div class="line"><a name="l00974"></a><span class="lineno"> 974</span> {</div><div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span> </div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span>  <span class="keyword">auto</span> flatBufferPreluBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Prelu);</div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span> </div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span>  <span class="comment">// Create the FlatBuffer AdditionLayer</span></div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  <span class="keyword">auto</span> flatBufferPreluLayer = serializer::CreatePreluLayer(m_flatBufferBuilder, flatBufferPreluBaseLayer);</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span> </div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span>  CreateAnyLayer(flatBufferPreluLayer.o, serializer::Layer::Layer_PreluLayer);</div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span> }</div></div><!-- fragment --> |
| 2681 | </div> |
| 2682 | </div> |
| 2683 | <a id="a598e914a8657aca24ed847d9069ad025"></a> |
| 2684 | <h2 class="memtitle"><span class="permalink"><a href="#a598e914a8657aca24ed847d9069ad025">◆ </a></span>VisitQuantizedLstmLayer()</h2> |
| 2685 | |
| 2686 | <div class="memitem"> |
| 2687 | <div class="memproto"> |
| 2688 | <table class="mlabels"> |
| 2689 | <tr> |
| 2690 | <td class="mlabels-left"> |
| 2691 | <table class="memname"> |
| 2692 | <tr> |
| 2693 | <td class="memname">void VisitQuantizedLstmLayer </td> |
| 2694 | <td>(</td> |
| 2695 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2696 | <td class="paramname"><em>layer</em>, </td> |
| 2697 | </tr> |
| 2698 | <tr> |
| 2699 | <td class="paramkey"></td> |
| 2700 | <td></td> |
| 2701 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_quantized_lstm_input_params.html">armnn::QuantizedLstmInputParams</a> & </td> |
| 2702 | <td class="paramname"><em>params</em>, </td> |
| 2703 | </tr> |
| 2704 | <tr> |
| 2705 | <td class="paramkey"></td> |
| 2706 | <td></td> |
| 2707 | <td class="paramtype">const char * </td> |
| 2708 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2709 | </tr> |
| 2710 | <tr> |
| 2711 | <td></td> |
| 2712 | <td>)</td> |
| 2713 | <td></td><td></td> |
| 2714 | </tr> |
| 2715 | </table> |
| 2716 | </td> |
| 2717 | <td class="mlabels-right"> |
| 2718 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2719 | </tr> |
| 2720 | </table> |
| 2721 | </div><div class="memdoc"> |
| 2722 | <p>Function a QuantizedLstm layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2723 | <table class="params"> |
| 2724 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2725 | <tr><td class="paramname">params</td><td>- The weights and biases for the Quantized LSTM cell </td></tr> |
| 2726 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2727 | </table> |
| 2728 | </dd> |
| 2729 | </dl> |
| 2730 | |
| 2731 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#acb1bac244973743d460064c1e0d816fd">ILayerVisitor</a>.</p> |
| 2732 | |
| 2733 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01302">1302</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2734 | |
| 2735 | <p class="reference">References <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a27226c864bac7454a8504f8edb15d95b">armnn::Boolean</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a26e6ed77470c6f2f830ecf874e6c0d55">armnn::Float16</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a166495adc0d0f53bee6baecc577f5204">armnn::Float32</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00108">QuantizedLstmInputParams::GetCellBias()</a>, <a class="el" href="_tensor_8hpp_source.html#l00095">TensorInfo::GetDataType()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00031">armnnSerializer::GetFlatBufferConstTensorData()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00049">armnnSerializer::GetFlatBufferDataType()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00103">QuantizedLstmInputParams::GetForgetGateBias()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#afb5e65c770f6cee222db8af7581541a6">IConnectableLayer::GetGuid()</a>, <a class="el" href="_tensor_8hpp_source.html#l00167">BaseTensor< MemoryType >::GetInfo()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00098">QuantizedLstmInputParams::GetInputGateBias()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00068">QuantizedLstmInputParams::GetInputToCellWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00063">QuantizedLstmInputParams::GetInputToForgetWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00058">QuantizedLstmInputParams::GetInputToInputWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00073">QuantizedLstmInputParams::GetInputToOutputWeights()</a>, <a class="el" href="_tensor_8hpp_source.html#l00177">BaseTensor< MemoryType >::GetMemoryArea()</a>, <a class="el" href="classarmnn_1_1_i_connectable_layer.html#afcc1c3a20bd2860e0ddd21674389246f">IConnectableLayer::GetName()</a>, <a class="el" href="_tensor_8hpp_source.html#l00174">BaseTensor< MemoryType >::GetNumBytes()</a>, <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00113">QuantizedLstmInputParams::GetOutputGateBias()</a>, <a class="el" href="_tensor_8cpp_source.html#l00264">TensorInfo::GetQuantizationOffset()</a>, <a class="el" href="_tensor_8cpp_source.html#l00247">TensorInfo::GetQuantizationScale()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00088">QuantizedLstmInputParams::GetRecurrentToCellWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00083">QuantizedLstmInputParams::GetRecurrentToForgetWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00078">QuantizedLstmInputParams::GetRecurrentToInputWeights()</a>, <a class="el" href="_quantized_lstm_params_8hpp_source.html#l00093">QuantizedLstmInputParams::GetRecurrentToOutputWeights()</a>, <a class="el" href="_tensor_8hpp_source.html#l00088">TensorInfo::GetShape()</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a0a3f57c876f5a230244c38e1453a8a6e">armnn::QAsymmU8</a>, <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6a053c769dcf82d66ef326c86980c02ba7">armnn::QSymmS16</a>, and <a class="el" href="namespacearmnn.html#ad8ed01ff3ff33333d8e19db4d2818bb6accedffbc6e5308e33d3843e8bdc0dad7">armnn::Signed32</a>.</p> |
| 2736 | |
| 2737 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2738 | <div class="fragment"><div class="line"><a name="l01305"></a><span class="lineno"> 1305</span> {</div><div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> </div><div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>  <span class="keyword">auto</span> fbQuantizedLstmBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_QuantizedLstm);</div><div class="line"><a name="l01309"></a><span class="lineno"> 1309</span> </div><div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>  <span class="comment">// Get input parameters</span></div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>  <span class="keyword">auto</span> inputToInputWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a23d6133552ba91cc0571517896792ea4">GetInputToInputWeights</a>());</div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>  <span class="keyword">auto</span> inputToForgetWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a339c19855613274cf0ea13921af9e5a3">GetInputToForgetWeights</a>());</div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>  <span class="keyword">auto</span> inputToCellWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a928f70dd19a2b0d3e9b75c27a2099c44">GetInputToCellWeights</a>());</div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>  <span class="keyword">auto</span> inputToOutputWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a477440c44fe870fb6f2486bf68214395">GetInputToOutputWeights</a>());</div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span> </div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>  <span class="keyword">auto</span> recurrentToInputWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#ad2e53e6428416a65ae4ba566207cc6bf">GetRecurrentToInputWeights</a>());</div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>  <span class="keyword">auto</span> recurrentToForgetWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a8ad69d6d46b4b12f47fbe6032c9b7a18">GetRecurrentToForgetWeights</a>());</div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>  <span class="keyword">auto</span> recurrentToCellWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a63e34dd3e41262e750f7a54de8ca81d1">GetRecurrentToCellWeights</a>());</div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>  <span class="keyword">auto</span> recurrentToOutputWeights = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a94645f29b99800c2e57acc4832519a53">GetRecurrentToOutputWeights</a>());</div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span> </div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>  <span class="keyword">auto</span> inputGateBias = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#aba6d12c9d5671017b6711b80316069ff">GetInputGateBias</a>());</div><div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>  <span class="keyword">auto</span> forgetGateBias = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a715696f29b5376cbb8aaec0b77a092af">GetForgetGateBias</a>());</div><div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>  <span class="keyword">auto</span> cellBias = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a89f3c8b72e3a802240156915141de5ca">GetCellBias</a>());</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>  <span class="keyword">auto</span> outputGateBias = CreateConstTensorInfo(params.<a class="code" href="structarmnn_1_1_quantized_lstm_input_params.html#a1691bf16df2cabf1a4b82aecbb021f31">GetOutputGateBias</a>());</div><div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div><div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>  <span class="keyword">auto</span> fbQuantizedLstmParams = serializer::CreateQuantizedLstmInputParams(</div><div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>  m_flatBufferBuilder,</div><div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>  inputToInputWeights,</div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>  inputToForgetWeights,</div><div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>  inputToCellWeights,</div><div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>  inputToOutputWeights,</div><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>  recurrentToInputWeights,</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>  recurrentToForgetWeights,</div><div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>  recurrentToCellWeights,</div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>  recurrentToOutputWeights,</div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>  inputGateBias,</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>  forgetGateBias,</div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>  cellBias,</div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>  outputGateBias);</div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span> </div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>  <span class="keyword">auto</span> fbQuantizedLstmLayer = serializer::CreateQuantizedLstmLayer(</div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>  m_flatBufferBuilder,</div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>  fbQuantizedLstmBaseLayer,</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>  fbQuantizedLstmParams);</div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>  CreateAnyLayer(fbQuantizedLstmLayer.o, serializer::Layer::Layer_QuantizedLstmLayer);</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span> }</div><div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a339c19855613274cf0ea13921af9e5a3"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a339c19855613274cf0ea13921af9e5a3">armnn::QuantizedLstmInputParams::GetInputToForgetWeights</a></div><div class="ttdeci">const ConstTensor & GetInputToForgetWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00063">QuantizedLstmParams.hpp:63</a></div></div> |
| 2739 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_aba6d12c9d5671017b6711b80316069ff"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#aba6d12c9d5671017b6711b80316069ff">armnn::QuantizedLstmInputParams::GetInputGateBias</a></div><div class="ttdeci">const ConstTensor & GetInputGateBias() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00098">QuantizedLstmParams.hpp:98</a></div></div> |
| 2740 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a1691bf16df2cabf1a4b82aecbb021f31"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a1691bf16df2cabf1a4b82aecbb021f31">armnn::QuantizedLstmInputParams::GetOutputGateBias</a></div><div class="ttdeci">const ConstTensor & GetOutputGateBias() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00113">QuantizedLstmParams.hpp:113</a></div></div> |
| 2741 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a715696f29b5376cbb8aaec0b77a092af"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a715696f29b5376cbb8aaec0b77a092af">armnn::QuantizedLstmInputParams::GetForgetGateBias</a></div><div class="ttdeci">const ConstTensor & GetForgetGateBias() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00103">QuantizedLstmParams.hpp:103</a></div></div> |
| 2742 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_ad2e53e6428416a65ae4ba566207cc6bf"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#ad2e53e6428416a65ae4ba566207cc6bf">armnn::QuantizedLstmInputParams::GetRecurrentToInputWeights</a></div><div class="ttdeci">const ConstTensor & GetRecurrentToInputWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00078">QuantizedLstmParams.hpp:78</a></div></div> |
| 2743 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a89f3c8b72e3a802240156915141de5ca"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a89f3c8b72e3a802240156915141de5ca">armnn::QuantizedLstmInputParams::GetCellBias</a></div><div class="ttdeci">const ConstTensor & GetCellBias() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00108">QuantizedLstmParams.hpp:108</a></div></div> |
| 2744 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a94645f29b99800c2e57acc4832519a53"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a94645f29b99800c2e57acc4832519a53">armnn::QuantizedLstmInputParams::GetRecurrentToOutputWeights</a></div><div class="ttdeci">const ConstTensor & GetRecurrentToOutputWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00093">QuantizedLstmParams.hpp:93</a></div></div> |
| 2745 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a23d6133552ba91cc0571517896792ea4"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a23d6133552ba91cc0571517896792ea4">armnn::QuantizedLstmInputParams::GetInputToInputWeights</a></div><div class="ttdeci">const ConstTensor & GetInputToInputWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00058">QuantizedLstmParams.hpp:58</a></div></div> |
| 2746 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a8ad69d6d46b4b12f47fbe6032c9b7a18"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a8ad69d6d46b4b12f47fbe6032c9b7a18">armnn::QuantizedLstmInputParams::GetRecurrentToForgetWeights</a></div><div class="ttdeci">const ConstTensor & GetRecurrentToForgetWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00083">QuantizedLstmParams.hpp:83</a></div></div> |
| 2747 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a928f70dd19a2b0d3e9b75c27a2099c44"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a928f70dd19a2b0d3e9b75c27a2099c44">armnn::QuantizedLstmInputParams::GetInputToCellWeights</a></div><div class="ttdeci">const ConstTensor & GetInputToCellWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00068">QuantizedLstmParams.hpp:68</a></div></div> |
| 2748 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a63e34dd3e41262e750f7a54de8ca81d1"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a63e34dd3e41262e750f7a54de8ca81d1">armnn::QuantizedLstmInputParams::GetRecurrentToCellWeights</a></div><div class="ttdeci">const ConstTensor & GetRecurrentToCellWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00088">QuantizedLstmParams.hpp:88</a></div></div> |
| 2749 | <div class="ttc" id="structarmnn_1_1_quantized_lstm_input_params_html_a477440c44fe870fb6f2486bf68214395"><div class="ttname"><a href="structarmnn_1_1_quantized_lstm_input_params.html#a477440c44fe870fb6f2486bf68214395">armnn::QuantizedLstmInputParams::GetInputToOutputWeights</a></div><div class="ttdeci">const ConstTensor & GetInputToOutputWeights() const</div><div class="ttdef"><b>Definition:</b> <a href="_quantized_lstm_params_8hpp_source.html#l00073">QuantizedLstmParams.hpp:73</a></div></div> |
| 2750 | </div><!-- fragment --> |
| 2751 | </div> |
| 2752 | </div> |
| 2753 | <a id="a25ee3712e8012235fedcd41fdd1b78a3"></a> |
| 2754 | <h2 class="memtitle"><span class="permalink"><a href="#a25ee3712e8012235fedcd41fdd1b78a3">◆ </a></span>VisitQuantizeLayer()</h2> |
| 2755 | |
| 2756 | <div class="memitem"> |
| 2757 | <div class="memproto"> |
| 2758 | <table class="mlabels"> |
| 2759 | <tr> |
| 2760 | <td class="mlabels-left"> |
| 2761 | <table class="memname"> |
| 2762 | <tr> |
| 2763 | <td class="memname">void VisitQuantizeLayer </td> |
| 2764 | <td>(</td> |
| 2765 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2766 | <td class="paramname"><em>layer</em>, </td> |
| 2767 | </tr> |
| 2768 | <tr> |
| 2769 | <td class="paramkey"></td> |
| 2770 | <td></td> |
| 2771 | <td class="paramtype">const char * </td> |
| 2772 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2773 | </tr> |
| 2774 | <tr> |
| 2775 | <td></td> |
| 2776 | <td>)</td> |
| 2777 | <td></td><td></td> |
| 2778 | </tr> |
| 2779 | </table> |
| 2780 | </td> |
| 2781 | <td class="mlabels-right"> |
| 2782 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2783 | </tr> |
| 2784 | </table> |
| 2785 | </div><div class="memdoc"> |
| 2786 | <p>Function a quantize layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2787 | <table class="params"> |
| 2788 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2789 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2790 | </table> |
| 2791 | </dd> |
| 2792 | </dl> |
| 2793 | |
| 2794 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a78ec371d5935104926bca5c5febf6780">ILayerVisitor</a>.</p> |
| 2795 | |
| 2796 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00987">987</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2797 | |
| 2798 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2799 | <div class="fragment"><div class="line"><a name="l00988"></a><span class="lineno"> 988</span> {</div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span> </div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  <span class="keyword">auto</span> fbQuantizeBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Quantize);</div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span>  <span class="keyword">auto</span> fbQuantizeLayer = serializer::CreateQuantizeLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00993"></a><span class="lineno"> 993</span>  fbQuantizeBaseLayer);</div><div class="line"><a name="l00994"></a><span class="lineno"> 994</span>  CreateAnyLayer(fbQuantizeLayer.o, serializer::Layer::Layer_QuantizeLayer);</div><div class="line"><a name="l00995"></a><span class="lineno"> 995</span> }</div></div><!-- fragment --> |
| 2800 | </div> |
| 2801 | </div> |
| 2802 | <a id="ada00d4a9cb133fef352290610f257000"></a> |
| 2803 | <h2 class="memtitle"><span class="permalink"><a href="#ada00d4a9cb133fef352290610f257000">◆ </a></span>VisitReshapeLayer()</h2> |
| 2804 | |
| 2805 | <div class="memitem"> |
| 2806 | <div class="memproto"> |
| 2807 | <table class="mlabels"> |
| 2808 | <tr> |
| 2809 | <td class="mlabels-left"> |
| 2810 | <table class="memname"> |
| 2811 | <tr> |
| 2812 | <td class="memname">void VisitReshapeLayer </td> |
| 2813 | <td>(</td> |
| 2814 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2815 | <td class="paramname"><em>layer</em>, </td> |
| 2816 | </tr> |
| 2817 | <tr> |
| 2818 | <td class="paramkey"></td> |
| 2819 | <td></td> |
| 2820 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_reshape_descriptor.html">armnn::ReshapeDescriptor</a> & </td> |
| 2821 | <td class="paramname"><em>reshapeDescriptor</em>, </td> |
| 2822 | </tr> |
| 2823 | <tr> |
| 2824 | <td class="paramkey"></td> |
| 2825 | <td></td> |
| 2826 | <td class="paramtype">const char * </td> |
| 2827 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2828 | </tr> |
| 2829 | <tr> |
| 2830 | <td></td> |
| 2831 | <td>)</td> |
| 2832 | <td></td><td></td> |
| 2833 | </tr> |
| 2834 | </table> |
| 2835 | </td> |
| 2836 | <td class="mlabels-right"> |
| 2837 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2838 | </tr> |
| 2839 | </table> |
| 2840 | </div><div class="memdoc"> |
| 2841 | <p>Function a reshape layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2842 | <table class="params"> |
| 2843 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2844 | <tr><td class="paramname">reshapeDescriptor</td><td>- Parameters for the reshape operation. </td></tr> |
| 2845 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2846 | </table> |
| 2847 | </dd> |
| 2848 | </dl> |
| 2849 | |
| 2850 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#acb732489554691ba852ca323888093ac">ILayerVisitor</a>.</p> |
| 2851 | |
| 2852 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00825">825</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2853 | |
| 2854 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00774">ReshapeDescriptor::m_TargetShape</a>.</p> |
| 2855 | |
| 2856 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2857 | <div class="fragment"><div class="line"><a name="l00828"></a><span class="lineno"> 828</span> {</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span> </div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  <span class="keyword">auto</span> flatBufferReshapeBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Reshape);</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  std::vector<unsigned int> targetShape;</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i =0; i < reshapeDescriptor.<a class="code" href="structarmnn_1_1_reshape_descriptor.html#a1178f4dafdda81f59c15145ec327f7d9">m_TargetShape</a>.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); i++)</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  {</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  targetShape.push_back(reshapeDescriptor.<a class="code" href="structarmnn_1_1_reshape_descriptor.html#a1178f4dafdda81f59c15145ec327f7d9">m_TargetShape</a>[i]);</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  }</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span> </div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="keyword">auto</span> flatBufferReshapeDesc = serializer::CreateReshapeDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span>  m_flatBufferBuilder.CreateVector(targetShape));</div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span> </div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  <span class="comment">// Create the FlatBuffer ReshapeLayer</span></div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  <span class="keyword">auto</span> flatBufferReshapeLayer = serializer::CreateReshapeLayer(m_flatBufferBuilder, flatBufferReshapeBaseLayer,</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  flatBufferReshapeDesc);</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span> </div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  <span class="comment">// Add the AnyLayer to the FlatBufferLayers</span></div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  CreateAnyLayer(flatBufferReshapeLayer.o, serializer::Layer::Layer_ReshapeLayer);</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span> }</div><div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div> |
| 2858 | <div class="ttc" id="structarmnn_1_1_reshape_descriptor_html_a1178f4dafdda81f59c15145ec327f7d9"><div class="ttname"><a href="structarmnn_1_1_reshape_descriptor.html#a1178f4dafdda81f59c15145ec327f7d9">armnn::ReshapeDescriptor::m_TargetShape</a></div><div class="ttdeci">TensorShape m_TargetShape</div><div class="ttdoc">Target shape value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00774">Descriptors.hpp:774</a></div></div> |
| 2859 | </div><!-- fragment --> |
| 2860 | </div> |
| 2861 | </div> |
| 2862 | <a id="afa243ee90086da1e8270b8391dd8f221"></a> |
| 2863 | <h2 class="memtitle"><span class="permalink"><a href="#afa243ee90086da1e8270b8391dd8f221">◆ </a></span>VisitResizeBilinearLayer()</h2> |
| 2864 | |
| 2865 | <div class="memitem"> |
| 2866 | <div class="memproto"> |
| 2867 | <table class="mlabels"> |
| 2868 | <tr> |
| 2869 | <td class="mlabels-left"> |
| 2870 | <table class="memname"> |
| 2871 | <tr> |
| 2872 | <td class="memname">void VisitResizeBilinearLayer </td> |
| 2873 | <td>(</td> |
| 2874 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2875 | <td class="paramname"><em>layer</em>, </td> |
| 2876 | </tr> |
| 2877 | <tr> |
| 2878 | <td class="paramkey"></td> |
| 2879 | <td></td> |
| 2880 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_resize_bilinear_descriptor.html">armnn::ResizeBilinearDescriptor</a> & </td> |
| 2881 | <td class="paramname"><em>resizeDesc</em>, </td> |
| 2882 | </tr> |
| 2883 | <tr> |
| 2884 | <td class="paramkey"></td> |
| 2885 | <td></td> |
| 2886 | <td class="paramtype">const char * </td> |
| 2887 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2888 | </tr> |
| 2889 | <tr> |
| 2890 | <td></td> |
| 2891 | <td>)</td> |
| 2892 | <td></td><td></td> |
| 2893 | </tr> |
| 2894 | </table> |
| 2895 | </td> |
| 2896 | <td class="mlabels-right"> |
| 2897 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2898 | </tr> |
| 2899 | </table> |
| 2900 | </div><div class="memdoc"> |
| 2901 | <p>Function that a resize bilinear layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2902 | <table class="params"> |
| 2903 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2904 | <tr><td class="paramname">resizeDesc</td><td>- Parameters for the resize operation. </td></tr> |
| 2905 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2906 | </table> |
| 2907 | </dd> |
| 2908 | </dl> |
| 2909 | |
| 2910 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a8d87dab666a8aa6e132fcd93717a3c4b">ILayerVisitor</a>.</p> |
| 2911 | |
| 2912 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00851">851</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2913 | |
| 2914 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00720">ResizeBilinearDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00718">ResizeBilinearDescriptor::m_TargetHeight</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00716">ResizeBilinearDescriptor::m_TargetWidth</a>.</p> |
| 2915 | |
| 2916 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2917 | <div class="fragment"><div class="line"><a name="l00854"></a><span class="lineno"> 854</span> {</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span> </div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_ResizeBilinear);</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span> </div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  CreateResizeBilinearDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  resizeDescriptor.m_TargetWidth,</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  resizeDescriptor.m_TargetHeight,</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(resizeDescriptor.m_DataLayout));</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span> </div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateResizeBilinearLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  flatBufferDescriptor);</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span> </div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_ResizeBilinearLayer);</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span> }</div><div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 2918 | </div><!-- fragment --> |
| 2919 | </div> |
| 2920 | </div> |
| 2921 | <a id="ad7df3f2ae8cbb23bb8651fff4d079718"></a> |
| 2922 | <h2 class="memtitle"><span class="permalink"><a href="#ad7df3f2ae8cbb23bb8651fff4d079718">◆ </a></span>VisitResizeLayer()</h2> |
| 2923 | |
| 2924 | <div class="memitem"> |
| 2925 | <div class="memproto"> |
| 2926 | <table class="mlabels"> |
| 2927 | <tr> |
| 2928 | <td class="mlabels-left"> |
| 2929 | <table class="memname"> |
| 2930 | <tr> |
| 2931 | <td class="memname">void VisitResizeLayer </td> |
| 2932 | <td>(</td> |
| 2933 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2934 | <td class="paramname"><em>layer</em>, </td> |
| 2935 | </tr> |
| 2936 | <tr> |
| 2937 | <td class="paramkey"></td> |
| 2938 | <td></td> |
| 2939 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_resize_descriptor.html">armnn::ResizeDescriptor</a> & </td> |
| 2940 | <td class="paramname"><em>resizeDescriptor</em>, </td> |
| 2941 | </tr> |
| 2942 | <tr> |
| 2943 | <td class="paramkey"></td> |
| 2944 | <td></td> |
| 2945 | <td class="paramtype">const char * </td> |
| 2946 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 2947 | </tr> |
| 2948 | <tr> |
| 2949 | <td></td> |
| 2950 | <td>)</td> |
| 2951 | <td></td><td></td> |
| 2952 | </tr> |
| 2953 | </table> |
| 2954 | </td> |
| 2955 | <td class="mlabels-right"> |
| 2956 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 2957 | </tr> |
| 2958 | </table> |
| 2959 | </div><div class="memdoc"> |
| 2960 | <p>Function that a resize layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 2961 | <table class="params"> |
| 2962 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 2963 | <tr><td class="paramname">resizeDescriptor</td><td>- Parameters for the resize operation. </td></tr> |
| 2964 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 2965 | </table> |
| 2966 | </dd> |
| 2967 | </dl> |
| 2968 | |
| 2969 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a306e22f3cc6baaf7a6f1390f669be42e">ILayerVisitor</a>.</p> |
| 2970 | |
| 2971 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00872">872</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 2972 | |
| 2973 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_serializer_utils_8cpp_source.html#l00167">armnnSerializer::GetFlatBufferResizeMethod()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00751">ResizeDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l00749">ResizeDescriptor::m_Method</a>, <a class="el" href="_descriptors_8hpp_source.html#l00746">ResizeDescriptor::m_TargetHeight</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00744">ResizeDescriptor::m_TargetWidth</a>.</p> |
| 2974 | |
| 2975 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 2976 | <div class="fragment"><div class="line"><a name="l00875"></a><span class="lineno"> 875</span> {</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span> </div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Resize);</div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span> </div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  CreateResizeDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  resizeDescriptor.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a46c3fa15c46fb0d1dcdc24d0ea5cb5cd">m_TargetHeight</a>,</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  resizeDescriptor.<a class="code" href="structarmnn_1_1_resize_descriptor.html#adcf5037208faac36c0788239a073f75c">m_TargetWidth</a>,</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  <a class="code" href="namespacearmnn_serializer.html#a255a85366167a060a9e33ce2378f28a0">GetFlatBufferResizeMethod</a>(resizeDescriptor.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a869254cb56968986a78a79e1d6d4a86b">m_Method</a>),</div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(resizeDescriptor.<a class="code" href="structarmnn_1_1_resize_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span> </div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateResizeLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  flatBufferBaseLayer,</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  flatBufferDescriptor);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span> </div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_ResizeLayer);</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span> }</div><div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a46c3fa15c46fb0d1dcdc24d0ea5cb5cd"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a46c3fa15c46fb0d1dcdc24d0ea5cb5cd">armnn::ResizeDescriptor::m_TargetHeight</a></div><div class="ttdeci">uint32_t m_TargetHeight</div><div class="ttdoc">Target height value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00746">Descriptors.hpp:746</a></div></div> |
| 2977 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::ResizeDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00751">Descriptors.hpp:751</a></div></div> |
| 2978 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_a869254cb56968986a78a79e1d6d4a86b"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#a869254cb56968986a78a79e1d6d4a86b">armnn::ResizeDescriptor::m_Method</a></div><div class="ttdeci">ResizeMethod m_Method</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00749">Descriptors.hpp:749</a></div></div> |
| 2979 | <div class="ttc" id="namespacearmnn_serializer_html_a255a85366167a060a9e33ce2378f28a0"><div class="ttname"><a href="namespacearmnn_serializer.html#a255a85366167a060a9e33ce2378f28a0">armnnSerializer::GetFlatBufferResizeMethod</a></div><div class="ttdeci">armnnSerializer::ResizeMethod GetFlatBufferResizeMethod(armnn::ResizeMethod method)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00167">SerializerUtils.cpp:167</a></div></div> |
| 2980 | <div class="ttc" id="structarmnn_1_1_resize_descriptor_html_adcf5037208faac36c0788239a073f75c"><div class="ttname"><a href="structarmnn_1_1_resize_descriptor.html#adcf5037208faac36c0788239a073f75c">armnn::ResizeDescriptor::m_TargetWidth</a></div><div class="ttdeci">uint32_t m_TargetWidth</div><div class="ttdoc">Target width value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00744">Descriptors.hpp:744</a></div></div> |
| 2981 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 2982 | </div><!-- fragment --> |
| 2983 | </div> |
| 2984 | </div> |
| 2985 | <a id="af9fea44d69144543d711293ab4a61af4"></a> |
| 2986 | <h2 class="memtitle"><span class="permalink"><a href="#af9fea44d69144543d711293ab4a61af4">◆ </a></span>VisitRsqrtLayer()</h2> |
| 2987 | |
| 2988 | <div class="memitem"> |
| 2989 | <div class="memproto"> |
| 2990 | <table class="mlabels"> |
| 2991 | <tr> |
| 2992 | <td class="mlabels-left"> |
| 2993 | <table class="memname"> |
| 2994 | <tr> |
| 2995 | <td class="memname">void VisitRsqrtLayer </td> |
| 2996 | <td>(</td> |
| 2997 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 2998 | <td class="paramname"><em>layer</em>, </td> |
| 2999 | </tr> |
| 3000 | <tr> |
| 3001 | <td class="paramkey"></td> |
| 3002 | <td></td> |
| 3003 | <td class="paramtype">const char * </td> |
| 3004 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3005 | </tr> |
| 3006 | <tr> |
| 3007 | <td></td> |
| 3008 | <td>)</td> |
| 3009 | <td></td><td></td> |
| 3010 | </tr> |
| 3011 | </table> |
| 3012 | </td> |
| 3013 | <td class="mlabels-right"> |
| 3014 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3015 | </tr> |
| 3016 | </table> |
| 3017 | </div><div class="memdoc"> |
| 3018 | <p>Function a Reciprocal of square root layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3019 | <table class="params"> |
| 3020 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3021 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3022 | </table> |
| 3023 | </dd> |
| 3024 | </dl> |
| 3025 | |
| 3026 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a413253dbf325ea0b44559b55242170d1">ILayerVisitor</a>.</p> |
| 3027 | |
| 3028 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00894">894</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3029 | |
| 3030 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3031 | <div class="fragment"><div class="line"><a name="l00895"></a><span class="lineno"> 895</span> {</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span> </div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  <span class="keyword">auto</span> fbRsqrtBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Rsqrt);</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  <span class="keyword">auto</span> fbRsqrtLayer = serializer::CreateRsqrtLayer(m_flatBufferBuilder, fbRsqrtBaseLayer);</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span> </div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  CreateAnyLayer(fbRsqrtLayer.o, serializer::Layer::Layer_RsqrtLayer);</div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span> }</div></div><!-- fragment --> |
| 3032 | </div> |
| 3033 | </div> |
| 3034 | <a id="a8931b9c0199822fe3db2fdbde579a96e"></a> |
| 3035 | <h2 class="memtitle"><span class="permalink"><a href="#a8931b9c0199822fe3db2fdbde579a96e">◆ </a></span>VisitSliceLayer()</h2> |
| 3036 | |
| 3037 | <div class="memitem"> |
| 3038 | <div class="memproto"> |
| 3039 | <table class="mlabels"> |
| 3040 | <tr> |
| 3041 | <td class="mlabels-left"> |
| 3042 | <table class="memname"> |
| 3043 | <tr> |
| 3044 | <td class="memname">void VisitSliceLayer </td> |
| 3045 | <td>(</td> |
| 3046 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3047 | <td class="paramname"><em>layer</em>, </td> |
| 3048 | </tr> |
| 3049 | <tr> |
| 3050 | <td class="paramkey"></td> |
| 3051 | <td></td> |
| 3052 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_slice_descriptor.html">armnn::SliceDescriptor</a> & </td> |
| 3053 | <td class="paramname"><em>sliceDescriptor</em>, </td> |
| 3054 | </tr> |
| 3055 | <tr> |
| 3056 | <td class="paramkey"></td> |
| 3057 | <td></td> |
| 3058 | <td class="paramtype">const char * </td> |
| 3059 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3060 | </tr> |
| 3061 | <tr> |
| 3062 | <td></td> |
| 3063 | <td>)</td> |
| 3064 | <td></td><td></td> |
| 3065 | </tr> |
| 3066 | </table> |
| 3067 | </td> |
| 3068 | <td class="mlabels-right"> |
| 3069 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3070 | </tr> |
| 3071 | </table> |
| 3072 | </div><div class="memdoc"> |
| 3073 | <p>Function that a slice layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3074 | <table class="params"> |
| 3075 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3076 | <tr><td class="paramname">sliceDescriptor</td><td>- SliceDescriptor to configure the slice operation. </td></tr> |
| 3077 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3078 | </table> |
| 3079 | </dd> |
| 3080 | </dl> |
| 3081 | |
| 3082 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aad5c9d5c9cf256ea990097732fd1f108">ILayerVisitor</a>.</p> |
| 3083 | |
| 3084 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00904">904</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3085 | |
| 3086 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00943">SliceDescriptor::m_Begin</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00946">SliceDescriptor::m_Size</a>.</p> |
| 3087 | |
| 3088 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3089 | <div class="fragment"><div class="line"><a name="l00907"></a><span class="lineno"> 907</span> {</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span> </div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  <span class="keyword">auto</span> fbSliceBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Slice);</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  <span class="keyword">auto</span> fbSliceDescriptor = CreateSliceDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  m_flatBufferBuilder.CreateVector(sliceDescriptor.<a class="code" href="structarmnn_1_1_slice_descriptor.html#a4939f00778f08d6c6fec6f74c0a59b7e">m_Begin</a>),</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  m_flatBufferBuilder.CreateVector(sliceDescriptor.<a class="code" href="structarmnn_1_1_slice_descriptor.html#ab52cabf19232290fa6b49828ba957ac0">m_Size</a>));</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span> </div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  <span class="keyword">auto</span> fbSliceLayer = serializer::CreateSliceLayer(m_flatBufferBuilder, fbSliceBaseLayer, fbSliceDescriptor);</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> </div><div class="line"><a name="l00917"></a><span class="lineno"> 917</span>  CreateAnyLayer(fbSliceLayer.o, serializer::Layer::Layer_SliceLayer);</div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span> }</div><div class="ttc" id="structarmnn_1_1_slice_descriptor_html_a4939f00778f08d6c6fec6f74c0a59b7e"><div class="ttname"><a href="structarmnn_1_1_slice_descriptor.html#a4939f00778f08d6c6fec6f74c0a59b7e">armnn::SliceDescriptor::m_Begin</a></div><div class="ttdeci">std::vector< unsigned int > m_Begin</div><div class="ttdoc">Beginning indices of the slice in each dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00943">Descriptors.hpp:943</a></div></div> |
| 3090 | <div class="ttc" id="structarmnn_1_1_slice_descriptor_html_ab52cabf19232290fa6b49828ba957ac0"><div class="ttname"><a href="structarmnn_1_1_slice_descriptor.html#ab52cabf19232290fa6b49828ba957ac0">armnn::SliceDescriptor::m_Size</a></div><div class="ttdeci">std::vector< unsigned int > m_Size</div><div class="ttdoc">Size of the slice in each dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00946">Descriptors.hpp:946</a></div></div> |
| 3091 | </div><!-- fragment --> |
| 3092 | </div> |
| 3093 | </div> |
| 3094 | <a id="a22d44460791b64d4e1d65f8107f69786"></a> |
| 3095 | <h2 class="memtitle"><span class="permalink"><a href="#a22d44460791b64d4e1d65f8107f69786">◆ </a></span>VisitSoftmaxLayer()</h2> |
| 3096 | |
| 3097 | <div class="memitem"> |
| 3098 | <div class="memproto"> |
| 3099 | <table class="mlabels"> |
| 3100 | <tr> |
| 3101 | <td class="mlabels-left"> |
| 3102 | <table class="memname"> |
| 3103 | <tr> |
| 3104 | <td class="memname">void VisitSoftmaxLayer </td> |
| 3105 | <td>(</td> |
| 3106 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3107 | <td class="paramname"><em>layer</em>, </td> |
| 3108 | </tr> |
| 3109 | <tr> |
| 3110 | <td class="paramkey"></td> |
| 3111 | <td></td> |
| 3112 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_softmax_descriptor.html">armnn::SoftmaxDescriptor</a> & </td> |
| 3113 | <td class="paramname"><em>softmaxDescriptor</em>, </td> |
| 3114 | </tr> |
| 3115 | <tr> |
| 3116 | <td class="paramkey"></td> |
| 3117 | <td></td> |
| 3118 | <td class="paramtype">const char * </td> |
| 3119 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3120 | </tr> |
| 3121 | <tr> |
| 3122 | <td></td> |
| 3123 | <td>)</td> |
| 3124 | <td></td><td></td> |
| 3125 | </tr> |
| 3126 | </table> |
| 3127 | </td> |
| 3128 | <td class="mlabels-right"> |
| 3129 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3130 | </tr> |
| 3131 | </table> |
| 3132 | </div><div class="memdoc"> |
| 3133 | <p>Function that a softmax layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3134 | <table class="params"> |
| 3135 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3136 | <tr><td class="paramname">softmaxDescriptor</td><td>- SoftmaxDescriptor to configure the softmax. </td></tr> |
| 3137 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3138 | </table> |
| 3139 | </dd> |
| 3140 | </dl> |
| 3141 | |
| 3142 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ae47c90e3188970462a28d297644133d1">ILayerVisitor</a>.</p> |
| 3143 | |
| 3144 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l00921">921</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3145 | |
| 3146 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00136">SoftmaxDescriptor::m_Beta</a>.</p> |
| 3147 | |
| 3148 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3149 | <div class="fragment"><div class="line"><a name="l00924"></a><span class="lineno"> 924</span> {</div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  boost::ignore_unused(name);</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span> </div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>  <span class="keyword">auto</span> flatBufferSoftmaxBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Softmax);</div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span> </div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  <span class="comment">// Create the FlatBuffer SoftmaxDescriptor</span></div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  <span class="keyword">auto</span> flatBufferSoftmaxDesc =</div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span>  serializer::CreateSoftmaxDescriptor(m_flatBufferBuilder, softmaxDescriptor.<a class="code" href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">m_Beta</a>);</div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span> </div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  <span class="comment">// Create the FlatBuffer SoftmaxLayer</span></div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span>  <span class="keyword">auto</span> flatBufferSoftmaxLayer =</div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span>  serializer::CreateSoftmaxLayer(m_flatBufferBuilder,</div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  flatBufferSoftmaxBaseLayer,</div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  flatBufferSoftmaxDesc);</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span> </div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  CreateAnyLayer(flatBufferSoftmaxLayer.o, serializer::Layer::Layer_SoftmaxLayer);</div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span> }</div><div class="ttc" id="structarmnn_1_1_softmax_descriptor_html_a8275d51ef9a584feb95726ea0522f6e5"><div class="ttname"><a href="structarmnn_1_1_softmax_descriptor.html#a8275d51ef9a584feb95726ea0522f6e5">armnn::SoftmaxDescriptor::m_Beta</a></div><div class="ttdeci">float m_Beta</div><div class="ttdoc">Exponentiation value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00136">Descriptors.hpp:136</a></div></div> |
| 3150 | </div><!-- fragment --> |
| 3151 | </div> |
| 3152 | </div> |
| 3153 | <a id="a4ca05fff57392b368ce229af4721aa19"></a> |
| 3154 | <h2 class="memtitle"><span class="permalink"><a href="#a4ca05fff57392b368ce229af4721aa19">◆ </a></span>VisitSpaceToBatchNdLayer()</h2> |
| 3155 | |
| 3156 | <div class="memitem"> |
| 3157 | <div class="memproto"> |
| 3158 | <table class="mlabels"> |
| 3159 | <tr> |
| 3160 | <td class="mlabels-left"> |
| 3161 | <table class="memname"> |
| 3162 | <tr> |
| 3163 | <td class="memname">void VisitSpaceToBatchNdLayer </td> |
| 3164 | <td>(</td> |
| 3165 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3166 | <td class="paramname"><em>layer</em>, </td> |
| 3167 | </tr> |
| 3168 | <tr> |
| 3169 | <td class="paramkey"></td> |
| 3170 | <td></td> |
| 3171 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_space_to_batch_nd_descriptor.html">armnn::SpaceToBatchNdDescriptor</a> & </td> |
| 3172 | <td class="paramname"><em>spaceToBatchNdDescriptor</em>, </td> |
| 3173 | </tr> |
| 3174 | <tr> |
| 3175 | <td class="paramkey"></td> |
| 3176 | <td></td> |
| 3177 | <td class="paramtype">const char * </td> |
| 3178 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3179 | </tr> |
| 3180 | <tr> |
| 3181 | <td></td> |
| 3182 | <td>)</td> |
| 3183 | <td></td><td></td> |
| 3184 | </tr> |
| 3185 | </table> |
| 3186 | </td> |
| 3187 | <td class="mlabels-right"> |
| 3188 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3189 | </tr> |
| 3190 | </table> |
| 3191 | </div><div class="memdoc"> |
| 3192 | <p>Function a space to batch layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3193 | <table class="params"> |
| 3194 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3195 | <tr><td class="paramname">spaceToBatchNdDescriptor</td><td>- Parameters for the space to batch operation. </td></tr> |
| 3196 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3197 | </table> |
| 3198 | </dd> |
| 3199 | </dl> |
| 3200 | |
| 3201 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#aa8c1ec6712293700fb3874f63f2ec5f0">ILayerVisitor</a>.</p> |
| 3202 | |
| 3203 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01037">1037</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3204 | |
| 3205 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00801">SpaceToBatchNdDescriptor::m_BlockShape</a>, <a class="el" href="_descriptors_8hpp_source.html#l00806">SpaceToBatchNdDescriptor::m_DataLayout</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00804">SpaceToBatchNdDescriptor::m_PadList</a>.</p> |
| 3206 | |
| 3207 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3208 | <div class="fragment"><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span> {</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_SpaceToBatchNd);</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span> </div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>  std::vector<unsigned int> padList;</div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>  padList.reserve(spaceToBatchNdDescriptor.<a class="code" href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a85f98c94e11f65a6b73f831735c040f3">m_PadList</a>.size()*2);</div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>  <span class="keywordflow">for</span> (<span class="keyword">auto</span>& pad : spaceToBatchNdDescriptor.<a class="code" href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a85f98c94e11f65a6b73f831735c040f3">m_PadList</a>)</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>  {</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>  padList.push_back(pad.first);</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>  padList.push_back(pad.second);</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>  }</div><div class="line"><a name="l01053"></a><span class="lineno"> 1053</span> </div><div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>  CreateSpaceToBatchNdDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>  m_flatBufferBuilder.CreateVector(spaceToBatchNdDescriptor.<a class="code" href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a02e143524aefddd40b485fcf7dea6696">m_BlockShape</a>),</div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>  m_flatBufferBuilder.CreateVector(padList),</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(spaceToBatchNdDescriptor.<a class="code" href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span> </div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateSpaceToBatchNdLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  flatBufferBaseLayer,</div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>  flatBufferDescriptor);</div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span> </div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_SpaceToBatchNdLayer);</div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span> }</div><div class="ttc" id="structarmnn_1_1_space_to_batch_nd_descriptor_html_a85f98c94e11f65a6b73f831735c040f3"><div class="ttname"><a href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a85f98c94e11f65a6b73f831735c040f3">armnn::SpaceToBatchNdDescriptor::m_PadList</a></div><div class="ttdeci">std::vector< std::pair< unsigned int, unsigned int > > m_PadList</div><div class="ttdoc">Specifies the padding values for the input dimension: heightPad{top, bottom} widthPad{left, right}. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00804">Descriptors.hpp:804</a></div></div> |
| 3209 | <div class="ttc" id="structarmnn_1_1_space_to_batch_nd_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::SpaceToBatchNdDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00806">Descriptors.hpp:806</a></div></div> |
| 3210 | <div class="ttc" id="structarmnn_1_1_space_to_batch_nd_descriptor_html_a02e143524aefddd40b485fcf7dea6696"><div class="ttname"><a href="structarmnn_1_1_space_to_batch_nd_descriptor.html#a02e143524aefddd40b485fcf7dea6696">armnn::SpaceToBatchNdDescriptor::m_BlockShape</a></div><div class="ttdeci">std::vector< unsigned int > m_BlockShape</div><div class="ttdoc">Block shape value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00801">Descriptors.hpp:801</a></div></div> |
| 3211 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 3212 | </div><!-- fragment --> |
| 3213 | </div> |
| 3214 | </div> |
| 3215 | <a id="aa3c4485dc7e9529e9a03e74ba69bd624"></a> |
| 3216 | <h2 class="memtitle"><span class="permalink"><a href="#aa3c4485dc7e9529e9a03e74ba69bd624">◆ </a></span>VisitSpaceToDepthLayer()</h2> |
| 3217 | |
| 3218 | <div class="memitem"> |
| 3219 | <div class="memproto"> |
| 3220 | <table class="mlabels"> |
| 3221 | <tr> |
| 3222 | <td class="mlabels-left"> |
| 3223 | <table class="memname"> |
| 3224 | <tr> |
| 3225 | <td class="memname">void VisitSpaceToDepthLayer </td> |
| 3226 | <td>(</td> |
| 3227 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3228 | <td class="paramname"><em>layer</em>, </td> |
| 3229 | </tr> |
| 3230 | <tr> |
| 3231 | <td class="paramkey"></td> |
| 3232 | <td></td> |
| 3233 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_space_to_depth_descriptor.html">armnn::SpaceToDepthDescriptor</a> & </td> |
| 3234 | <td class="paramname"><em>spaceToDepthDescriptor</em>, </td> |
| 3235 | </tr> |
| 3236 | <tr> |
| 3237 | <td class="paramkey"></td> |
| 3238 | <td></td> |
| 3239 | <td class="paramtype">const char * </td> |
| 3240 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3241 | </tr> |
| 3242 | <tr> |
| 3243 | <td></td> |
| 3244 | <td>)</td> |
| 3245 | <td></td><td></td> |
| 3246 | </tr> |
| 3247 | </table> |
| 3248 | </td> |
| 3249 | <td class="mlabels-right"> |
| 3250 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3251 | </tr> |
| 3252 | </table> |
| 3253 | </div><div class="memdoc"> |
| 3254 | <p>Function a space to depth layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3255 | <table class="params"> |
| 3256 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3257 | <tr><td class="paramname">spaceToDepthDescriptor</td><td>- Parameters for the space to depth operation. </td></tr> |
| 3258 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3259 | </table> |
| 3260 | </dd> |
| 3261 | </dl> |
| 3262 | |
| 3263 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a7ac3fe15d509443ffbe985370b61b913">ILayerVisitor</a>.</p> |
| 3264 | |
| 3265 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01068">1068</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3266 | |
| 3267 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00827">SpaceToDepthDescriptor::m_BlockSize</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00830">SpaceToDepthDescriptor::m_DataLayout</a>.</p> |
| 3268 | |
| 3269 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3270 | <div class="fragment"><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span> {</div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span> </div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_SpaceToDepth);</div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>  CreateSpaceToDepthDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>  spaceToDepthDescriptor.<a class="code" href="structarmnn_1_1_space_to_depth_descriptor.html#a6c6b8957f1e176867e5fb05b1a1a1486">m_BlockSize</a>,</div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(spaceToDepthDescriptor.<a class="code" href="structarmnn_1_1_space_to_depth_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span> </div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateSpaceToDepthLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>  flatBufferBaseLayer,</div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>  flatBufferDescriptor);</div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span> </div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_SpaceToDepthLayer);</div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span> }</div><div class="ttc" id="structarmnn_1_1_space_to_depth_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_space_to_depth_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::SpaceToDepthDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00830">Descriptors.hpp:830</a></div></div> |
| 3271 | <div class="ttc" id="structarmnn_1_1_space_to_depth_descriptor_html_a6c6b8957f1e176867e5fb05b1a1a1486"><div class="ttname"><a href="structarmnn_1_1_space_to_depth_descriptor.html#a6c6b8957f1e176867e5fb05b1a1a1486">armnn::SpaceToDepthDescriptor::m_BlockSize</a></div><div class="ttdeci">unsigned int m_BlockSize</div><div class="ttdoc">Scalar specifying the input block size. It must be >= 1. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00827">Descriptors.hpp:827</a></div></div> |
| 3272 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 3273 | </div><!-- fragment --> |
| 3274 | </div> |
| 3275 | </div> |
| 3276 | <a id="ab24e753aaf05ae1f1b099ec020bbb0df"></a> |
| 3277 | <h2 class="memtitle"><span class="permalink"><a href="#ab24e753aaf05ae1f1b099ec020bbb0df">◆ </a></span>VisitSplitterLayer()</h2> |
| 3278 | |
| 3279 | <div class="memitem"> |
| 3280 | <div class="memproto"> |
| 3281 | <table class="mlabels"> |
| 3282 | <tr> |
| 3283 | <td class="mlabels-left"> |
| 3284 | <table class="memname"> |
| 3285 | <tr> |
| 3286 | <td class="memname">void VisitSplitterLayer </td> |
| 3287 | <td>(</td> |
| 3288 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3289 | <td class="paramname"><em>layer</em>, </td> |
| 3290 | </tr> |
| 3291 | <tr> |
| 3292 | <td class="paramkey"></td> |
| 3293 | <td></td> |
| 3294 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_views_descriptor.html">armnn::ViewsDescriptor</a> & </td> |
| 3295 | <td class="paramname"><em>splitterDescriptor</em>, </td> |
| 3296 | </tr> |
| 3297 | <tr> |
| 3298 | <td class="paramkey"></td> |
| 3299 | <td></td> |
| 3300 | <td class="paramtype">const char * </td> |
| 3301 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3302 | </tr> |
| 3303 | <tr> |
| 3304 | <td></td> |
| 3305 | <td>)</td> |
| 3306 | <td></td><td></td> |
| 3307 | </tr> |
| 3308 | </table> |
| 3309 | </td> |
| 3310 | <td class="mlabels-right"> |
| 3311 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3312 | </tr> |
| 3313 | </table> |
| 3314 | </div><div class="memdoc"> |
| 3315 | <p>Function that a splitter layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3316 | <table class="params"> |
| 3317 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3318 | <tr><td class="paramname">splitterDescriptor</td><td>- ViewsDescriptor to configure the splitting process. Number of Views must be equal to the number of outputs, and their order must match - e.g. first view corresponds to the first output, second view to the second output, etc.... </td></tr> |
| 3319 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3320 | </table> |
| 3321 | </dd> |
| 3322 | </dl> |
| 3323 | |
| 3324 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a45c613d43c30b3314cafb1be3ef7685c">ILayerVisitor</a>.</p> |
| 3325 | |
| 3326 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01088">1088</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3327 | |
| 3328 | <p class="reference">References <a class="el" href="_descriptors_8cpp_source.html#l00154">OriginsDescriptor::GetConcatAxis()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00184">OriginsDescriptor::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00292">ViewsDescriptor::GetNumDimensions()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00179">OriginsDescriptor::GetNumViews()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00287">ViewsDescriptor::GetNumViews()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00337">ViewsDescriptor::GetOrigins()</a>, <a class="el" href="_descriptors_8cpp_source.html#l00297">ViewsDescriptor::GetViewOrigin()</a>, and <a class="el" href="_descriptors_8cpp_source.html#l00332">ViewsDescriptor::GetViewSizes()</a>.</p> |
| 3329 | |
| 3330 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3331 | <div class="fragment"><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span> {</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span> </div><div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>  <span class="comment">// Create FlatBuffer ViewOrigins</span></div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>  std::vector<flatbuffers::Offset<UintVector>> flatBufferViewOrigins;</div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>  flatBufferViewOrigins.reserve(viewsDescriptor.GetNumViews());</div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span> </div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>  <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vIdx = 0; vIdx < viewsDescriptor.GetNumViews(); ++vIdx)</div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>  {</div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>  std::vector<uint32_t> viewOrigin;</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>  viewOrigin.reserve(viewsDescriptor.GetNumDimensions());</div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span> </div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>  <span class="comment">// Copy vector</span></div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>  <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dIdx = 0; dIdx < viewsDescriptor.GetNumDimensions(); ++dIdx)</div><div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>  {</div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>  viewOrigin.push_back(viewsDescriptor.GetViewOrigin(vIdx)[dIdx]);</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>  }</div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span> </div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>  flatBufferViewOrigins.push_back(CreateUintVector(m_flatBufferBuilder,</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>  m_flatBufferBuilder.CreateVector(viewOrigin)));</div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>  }</div><div class="line"><a name="l01112"></a><span class="lineno"> 1112</span> </div><div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>  <span class="comment">// Create FlatBuffer OriginsDescriptor</span></div><div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>  <span class="keyword">auto</span> flatBufferOriginDescriptor = CreateOriginsDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>  viewsDescriptor.GetOrigins().GetConcatAxis(),</div><div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>  viewsDescriptor.GetOrigins().GetNumViews(),</div><div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>  viewsDescriptor.GetOrigins().GetNumDimensions(),</div><div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>  m_flatBufferBuilder.CreateVector(flatBufferViewOrigins));</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span> </div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>  <span class="comment">// Create FlatBuffer ViewOrigins</span></div><div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>  std::vector<flatbuffers::Offset<UintVector>> flatBufferViewSizes;</div><div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>  flatBufferViewSizes.reserve(viewsDescriptor.GetNumViews());</div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span> </div><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>  <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> vIdx = 0; vIdx < viewsDescriptor.GetNumViews(); ++vIdx)</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>  {</div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>  std::vector<uint32_t> viewSize;</div><div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>  viewSize.reserve(viewsDescriptor.GetNumDimensions());</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span> </div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>  <span class="comment">// Copy vector</span></div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>  <span class="keywordflow">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> dIdx = 0; dIdx < viewsDescriptor.GetNumDimensions(); ++dIdx)</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>  {</div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>  viewSize.push_back(viewsDescriptor.GetViewSizes(vIdx)[dIdx]);</div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>  }</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span> </div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>  flatBufferViewSizes.push_back(CreateUintVector(m_flatBufferBuilder,</div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>  m_flatBufferBuilder.CreateVector(viewSize)));</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>  }</div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span> </div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>  <span class="comment">// Create FlatBuffer ViewsDescriptor</span></div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>  <span class="keyword">auto</span> flatBufferViewsDescriptor = CreateViewsDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>  flatBufferOriginDescriptor,</div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>  m_flatBufferBuilder.CreateVector(flatBufferViewSizes));</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span> </div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>  <span class="comment">// Create FlatBuffer BaseLayer</span></div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Splitter);</div><div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div><div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>  <span class="keyword">auto</span> flatBufferSplitterLayer = serializer::CreateSplitterLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>  flatBufferBaseLayer,</div><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>  flatBufferViewsDescriptor);</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span> </div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>  CreateAnyLayer(flatBufferSplitterLayer.o, serializer::Layer::Layer_SplitterLayer);</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span> }</div></div><!-- fragment --> |
| 3332 | </div> |
| 3333 | </div> |
| 3334 | <a id="aa6835f67d172384fb91ca5e7d0933a00"></a> |
| 3335 | <h2 class="memtitle"><span class="permalink"><a href="#aa6835f67d172384fb91ca5e7d0933a00">◆ </a></span>VisitStackLayer()</h2> |
| 3336 | |
| 3337 | <div class="memitem"> |
| 3338 | <div class="memproto"> |
| 3339 | <table class="mlabels"> |
| 3340 | <tr> |
| 3341 | <td class="mlabels-left"> |
| 3342 | <table class="memname"> |
| 3343 | <tr> |
| 3344 | <td class="memname">void VisitStackLayer </td> |
| 3345 | <td>(</td> |
| 3346 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3347 | <td class="paramname"><em>layer</em>, </td> |
| 3348 | </tr> |
| 3349 | <tr> |
| 3350 | <td class="paramkey"></td> |
| 3351 | <td></td> |
| 3352 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_stack_descriptor.html">armnn::StackDescriptor</a> & </td> |
| 3353 | <td class="paramname"><em>stackDescriptor</em>, </td> |
| 3354 | </tr> |
| 3355 | <tr> |
| 3356 | <td class="paramkey"></td> |
| 3357 | <td></td> |
| 3358 | <td class="paramtype">const char * </td> |
| 3359 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3360 | </tr> |
| 3361 | <tr> |
| 3362 | <td></td> |
| 3363 | <td>)</td> |
| 3364 | <td></td><td></td> |
| 3365 | </tr> |
| 3366 | </table> |
| 3367 | </td> |
| 3368 | <td class="mlabels-right"> |
| 3369 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3370 | </tr> |
| 3371 | </table> |
| 3372 | </div><div class="memdoc"> |
| 3373 | <p>Function a stack layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3374 | <table class="params"> |
| 3375 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3376 | <tr><td class="paramname">stackDescriptor</td><td>- Parameters for the stack operation. </td></tr> |
| 3377 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3378 | </table> |
| 3379 | </dd> |
| 3380 | </dl> |
| 3381 | |
| 3382 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a5c7df9d37959280f4328848ae4b2be37">ILayerVisitor</a>.</p> |
| 3383 | |
| 3384 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01179">1179</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3385 | |
| 3386 | <p class="reference">References <a class="el" href="_tensor_8hpp_source.html#l00043">TensorShape::GetNumDimensions()</a>, <a class="el" href="_descriptors_8hpp_source.html#l00972">StackDescriptor::m_Axis</a>, <a class="el" href="_descriptors_8hpp_source.html#l00976">StackDescriptor::m_InputShape</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00974">StackDescriptor::m_NumInputs</a>.</p> |
| 3387 | |
| 3388 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3389 | <div class="fragment"><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span> {</div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span> </div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>  <span class="keyword">auto</span> stackBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Stack);</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span> </div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>  std::vector<unsigned int> inputShape;</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>  <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i =0; i < stackDescriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.html#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a>.<a class="code" href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">GetNumDimensions</a>(); i++)</div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>  {</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>  inputShape.push_back(stackDescriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.html#a2bea87b470268bb0b73457c3733dbc04">m_InputShape</a>[i]);</div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>  }</div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span> </div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>  <span class="keyword">auto</span> flatBufferStackDescriptor = CreateStackDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>  stackDescriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.html#ab218de7805899c8412d75d1fd1d846d2">m_Axis</a>,</div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>  stackDescriptor.<a class="code" href="structarmnn_1_1_stack_descriptor.html#aed6086070440ceb94129bef06f70173f">m_NumInputs</a>,</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>  m_flatBufferBuilder.CreateVector(inputShape));</div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span> </div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>  <span class="keyword">auto</span> stackLayer = serializer::CreateStackLayer(m_flatBufferBuilder, stackBaseLayer, flatBufferStackDescriptor);</div><div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>  CreateAnyLayer(stackLayer.o, serializer::Layer::Layer_StackLayer);</div><div class="line"><a name="l01200"></a><span class="lineno"> 1200</span> }</div><div class="ttc" id="structarmnn_1_1_stack_descriptor_html_ab218de7805899c8412d75d1fd1d846d2"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.html#ab218de7805899c8412d75d1fd1d846d2">armnn::StackDescriptor::m_Axis</a></div><div class="ttdeci">uint32_t m_Axis</div><div class="ttdoc">0-based axis along which to stack the input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00972">Descriptors.hpp:972</a></div></div> |
| 3390 | <div class="ttc" id="classarmnn_1_1_tensor_shape_html_a157e27d41e9f6b21f0d3c025fa47dc24"><div class="ttname"><a href="classarmnn_1_1_tensor_shape.html#a157e27d41e9f6b21f0d3c025fa47dc24">armnn::TensorShape::GetNumDimensions</a></div><div class="ttdeci">unsigned int GetNumDimensions() const</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_8hpp_source.html#l00043">Tensor.hpp:43</a></div></div> |
| 3391 | <div class="ttc" id="structarmnn_1_1_stack_descriptor_html_a2bea87b470268bb0b73457c3733dbc04"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.html#a2bea87b470268bb0b73457c3733dbc04">armnn::StackDescriptor::m_InputShape</a></div><div class="ttdeci">TensorShape m_InputShape</div><div class="ttdoc">Required shape of all input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00976">Descriptors.hpp:976</a></div></div> |
| 3392 | <div class="ttc" id="structarmnn_1_1_stack_descriptor_html_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stack_descriptor.html#aed6086070440ceb94129bef06f70173f">armnn::StackDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00974">Descriptors.hpp:974</a></div></div> |
| 3393 | </div><!-- fragment --> |
| 3394 | </div> |
| 3395 | </div> |
| 3396 | <a id="afdc56797f18b4ec2b66469bd4553d65b"></a> |
| 3397 | <h2 class="memtitle"><span class="permalink"><a href="#afdc56797f18b4ec2b66469bd4553d65b">◆ </a></span>VisitStandInLayer()</h2> |
| 3398 | |
| 3399 | <div class="memitem"> |
| 3400 | <div class="memproto"> |
| 3401 | <table class="mlabels"> |
| 3402 | <tr> |
| 3403 | <td class="mlabels-left"> |
| 3404 | <table class="memname"> |
| 3405 | <tr> |
| 3406 | <td class="memname">void VisitStandInLayer </td> |
| 3407 | <td>(</td> |
| 3408 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3409 | <td class="paramname"><em>layer</em>, </td> |
| 3410 | </tr> |
| 3411 | <tr> |
| 3412 | <td class="paramkey"></td> |
| 3413 | <td></td> |
| 3414 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_stand_in_descriptor.html">armnn::StandInDescriptor</a> & </td> |
| 3415 | <td class="paramname"><em>standInDescriptor</em>, </td> |
| 3416 | </tr> |
| 3417 | <tr> |
| 3418 | <td class="paramkey"></td> |
| 3419 | <td></td> |
| 3420 | <td class="paramtype">const char * </td> |
| 3421 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3422 | </tr> |
| 3423 | <tr> |
| 3424 | <td></td> |
| 3425 | <td>)</td> |
| 3426 | <td></td><td></td> |
| 3427 | </tr> |
| 3428 | </table> |
| 3429 | </td> |
| 3430 | <td class="mlabels-right"> |
| 3431 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3432 | </tr> |
| 3433 | </table> |
| 3434 | </div><div class="memdoc"> |
| 3435 | <p>Function a StandInLayer should call back to when its Accept(ILaterVisitor&) function is invoked </p><dl class="params"><dt>Parameters</dt><dd> |
| 3436 | <table class="params"> |
| 3437 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3438 | <tr><td class="paramname">standInDescriptor</td><td>- Parameters for the stand-in layer. </td></tr> |
| 3439 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3440 | </table> |
| 3441 | </dd> |
| 3442 | </dl> |
| 3443 | |
| 3444 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a2c97836f7288428fe4f070033d2f0aea">ILayerVisitor</a>.</p> |
| 3445 | |
| 3446 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01202">1202</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3447 | |
| 3448 | <p class="reference">References <a class="el" href="_descriptors_8hpp_source.html#l00996">StandInDescriptor::m_NumInputs</a>, and <a class="el" href="_descriptors_8hpp_source.html#l00998">StandInDescriptor::m_NumOutputs</a>.</p> |
| 3449 | |
| 3450 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3451 | <div class="fragment"><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> {</div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span> </div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span>  <span class="keyword">auto</span> fbDescriptor = serializer::CreateStandInDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>  standInDescriptor.<a class="code" href="structarmnn_1_1_stand_in_descriptor.html#aed6086070440ceb94129bef06f70173f">m_NumInputs</a>,</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>  standInDescriptor.<a class="code" href="structarmnn_1_1_stand_in_descriptor.html#abb8a2d2bb8cc594c26aaa70c820ac5cc">m_NumOutputs</a>);</div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_StandIn);</div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>  <span class="keyword">auto</span> fbLayer = serializer::CreateStandInLayer(m_flatBufferBuilder, fbBaseLayer, fbDescriptor);</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> </div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_StandInLayer);</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span> }</div><div class="ttc" id="structarmnn_1_1_stand_in_descriptor_html_abb8a2d2bb8cc594c26aaa70c820ac5cc"><div class="ttname"><a href="structarmnn_1_1_stand_in_descriptor.html#abb8a2d2bb8cc594c26aaa70c820ac5cc">armnn::StandInDescriptor::m_NumOutputs</a></div><div class="ttdeci">uint32_t m_NumOutputs</div><div class="ttdoc">Number of output tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00998">Descriptors.hpp:998</a></div></div> |
| 3452 | <div class="ttc" id="structarmnn_1_1_stand_in_descriptor_html_aed6086070440ceb94129bef06f70173f"><div class="ttname"><a href="structarmnn_1_1_stand_in_descriptor.html#aed6086070440ceb94129bef06f70173f">armnn::StandInDescriptor::m_NumInputs</a></div><div class="ttdeci">uint32_t m_NumInputs</div><div class="ttdoc">Number of input tensors. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l00996">Descriptors.hpp:996</a></div></div> |
| 3453 | </div><!-- fragment --> |
| 3454 | </div> |
| 3455 | </div> |
| 3456 | <a id="a4f0cb9c392102c5108766a0faa754d92"></a> |
| 3457 | <h2 class="memtitle"><span class="permalink"><a href="#a4f0cb9c392102c5108766a0faa754d92">◆ </a></span>VisitStridedSliceLayer()</h2> |
| 3458 | |
| 3459 | <div class="memitem"> |
| 3460 | <div class="memproto"> |
| 3461 | <table class="mlabels"> |
| 3462 | <tr> |
| 3463 | <td class="mlabels-left"> |
| 3464 | <table class="memname"> |
| 3465 | <tr> |
| 3466 | <td class="memname">void VisitStridedSliceLayer </td> |
| 3467 | <td>(</td> |
| 3468 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3469 | <td class="paramname"><em>layer</em>, </td> |
| 3470 | </tr> |
| 3471 | <tr> |
| 3472 | <td class="paramkey"></td> |
| 3473 | <td></td> |
| 3474 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_strided_slice_descriptor.html">armnn::StridedSliceDescriptor</a> & </td> |
| 3475 | <td class="paramname"><em>stridedSliceDescriptor</em>, </td> |
| 3476 | </tr> |
| 3477 | <tr> |
| 3478 | <td class="paramkey"></td> |
| 3479 | <td></td> |
| 3480 | <td class="paramtype">const char * </td> |
| 3481 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3482 | </tr> |
| 3483 | <tr> |
| 3484 | <td></td> |
| 3485 | <td>)</td> |
| 3486 | <td></td><td></td> |
| 3487 | </tr> |
| 3488 | </table> |
| 3489 | </td> |
| 3490 | <td class="mlabels-right"> |
| 3491 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3492 | </tr> |
| 3493 | </table> |
| 3494 | </div><div class="memdoc"> |
| 3495 | <p>Function a strided slice layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3496 | <table class="params"> |
| 3497 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3498 | <tr><td class="paramname">stridedSliceDescriptor</td><td>- Parameters for the strided slice operation. </td></tr> |
| 3499 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3500 | </table> |
| 3501 | </dd> |
| 3502 | </dl> |
| 3503 | |
| 3504 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ac2f4ca5ada6d8fcf82d7bea2e6a06924">ILayerVisitor</a>.</p> |
| 3505 | |
| 3506 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01218">1218</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3507 | |
| 3508 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_descriptors_8hpp_source.html#l01041">StridedSliceDescriptor::m_Begin</a>, <a class="el" href="_descriptors_8hpp_source.html#l01049">StridedSliceDescriptor::m_BeginMask</a>, <a class="el" href="_descriptors_8hpp_source.html#l01062">StridedSliceDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l01056">StridedSliceDescriptor::m_EllipsisMask</a>, <a class="el" href="_descriptors_8hpp_source.html#l01043">StridedSliceDescriptor::m_End</a>, <a class="el" href="_descriptors_8hpp_source.html#l01052">StridedSliceDescriptor::m_EndMask</a>, <a class="el" href="_descriptors_8hpp_source.html#l01059">StridedSliceDescriptor::m_NewAxisMask</a>, <a class="el" href="_descriptors_8hpp_source.html#l01054">StridedSliceDescriptor::m_ShrinkAxisMask</a>, and <a class="el" href="_descriptors_8hpp_source.html#l01045">StridedSliceDescriptor::m_Stride</a>.</p> |
| 3509 | |
| 3510 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3511 | <div class="fragment"><div class="line"><a name="l01221"></a><span class="lineno"> 1221</span> {</div><div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01223"></a><span class="lineno"> 1223</span> </div><div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>  <span class="keyword">auto</span> flatBufferBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_StridedSlice);</div><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> </div><div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>  <span class="keyword">auto</span> flatBufferDescriptor =</div><div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>  CreateStridedSliceDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01228"></a><span class="lineno"> 1228</span>  m_flatBufferBuilder.CreateVector(stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a118fe06b7c2599da60398ee311ede923">m_Begin</a>),</div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>  m_flatBufferBuilder.CreateVector(stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#aa68194dd6258ab5b04123005a066ea25">m_End</a>),</div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>  m_flatBufferBuilder.CreateVector(stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a0d53caff836b84204adbd1c28752a201">m_Stride</a>),</div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>  stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a61081be1483984e33db452c75d569f51">m_BeginMask</a>,</div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>  stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#ac37e49c0d6e6e54f9d2015d0f11f8ee7">m_EndMask</a>,</div><div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>  stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a6d0384878432cfc9652b7ae8bc59506f">m_ShrinkAxisMask</a>,</div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>  stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#af996d82c47e43a16f4c8faa6c6b3e030">m_EllipsisMask</a>,</div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>  stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a7c91eda2b331d607bae92cd8ebf50bb9">m_NewAxisMask</a>,</div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(stridedSliceDescriptor.<a class="code" href="structarmnn_1_1_strided_slice_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span> </div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>  <span class="keyword">auto</span> flatBufferLayer = serializer::CreateStridedSliceLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>  flatBufferBaseLayer,</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>  flatBufferDescriptor);</div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span> </div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>  CreateAnyLayer(flatBufferLayer.o, serializer::Layer::Layer_StridedSliceLayer);</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span> }</div><div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a0d53caff836b84204adbd1c28752a201"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a0d53caff836b84204adbd1c28752a201">armnn::StridedSliceDescriptor::m_Stride</a></div><div class="ttdeci">std::vector< int > m_Stride</div><div class="ttdoc">Stride values for the input that will be sliced. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01045">Descriptors.hpp:1045</a></div></div> |
| 3512 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a7c91eda2b331d607bae92cd8ebf50bb9"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a7c91eda2b331d607bae92cd8ebf50bb9">armnn::StridedSliceDescriptor::m_NewAxisMask</a></div><div class="ttdeci">int32_t m_NewAxisMask</div><div class="ttdoc">New axis mask value. If set, the begin, end and stride is disregarded and a new 1 dimension is insert...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01059">Descriptors.hpp:1059</a></div></div> |
| 3513 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a118fe06b7c2599da60398ee311ede923"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a118fe06b7c2599da60398ee311ede923">armnn::StridedSliceDescriptor::m_Begin</a></div><div class="ttdeci">std::vector< int > m_Begin</div><div class="ttdoc">Begin values for the input that will be sliced. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01041">Descriptors.hpp:1041</a></div></div> |
| 3514 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_aa68194dd6258ab5b04123005a066ea25"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#aa68194dd6258ab5b04123005a066ea25">armnn::StridedSliceDescriptor::m_End</a></div><div class="ttdeci">std::vector< int > m_End</div><div class="ttdoc">End values for the input that will be sliced. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01043">Descriptors.hpp:1043</a></div></div> |
| 3515 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_af996d82c47e43a16f4c8faa6c6b3e030"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#af996d82c47e43a16f4c8faa6c6b3e030">armnn::StridedSliceDescriptor::m_EllipsisMask</a></div><div class="ttdeci">int32_t m_EllipsisMask</div><div class="ttdoc">Ellipsis mask value. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01056">Descriptors.hpp:1056</a></div></div> |
| 3516 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a61081be1483984e33db452c75d569f51"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a61081be1483984e33db452c75d569f51">armnn::StridedSliceDescriptor::m_BeginMask</a></div><div class="ttdeci">int32_t m_BeginMask</div><div class="ttdoc">Begin mask value. If set, then the begin is disregarded and the fullest range is used for the dimensi...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01049">Descriptors.hpp:1049</a></div></div> |
| 3517 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::StridedSliceDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01062">Descriptors.hpp:1062</a></div></div> |
| 3518 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_a6d0384878432cfc9652b7ae8bc59506f"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#a6d0384878432cfc9652b7ae8bc59506f">armnn::StridedSliceDescriptor::m_ShrinkAxisMask</a></div><div class="ttdeci">int32_t m_ShrinkAxisMask</div><div class="ttdoc">Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01054">Descriptors.hpp:1054</a></div></div> |
| 3519 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 3520 | <div class="ttc" id="structarmnn_1_1_strided_slice_descriptor_html_ac37e49c0d6e6e54f9d2015d0f11f8ee7"><div class="ttname"><a href="structarmnn_1_1_strided_slice_descriptor.html#ac37e49c0d6e6e54f9d2015d0f11f8ee7">armnn::StridedSliceDescriptor::m_EndMask</a></div><div class="ttdeci">int32_t m_EndMask</div><div class="ttdoc">End mask value. If set, then the end is disregarded and the fullest range is used for the dimension...</div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01052">Descriptors.hpp:1052</a></div></div> |
| 3521 | </div><!-- fragment --> |
| 3522 | </div> |
| 3523 | </div> |
| 3524 | <a id="a8f33221ab8f8feb4f2bbd5ddaa5bfa02"></a> |
| 3525 | <h2 class="memtitle"><span class="permalink"><a href="#a8f33221ab8f8feb4f2bbd5ddaa5bfa02">◆ </a></span>VisitSubtractionLayer()</h2> |
| 3526 | |
| 3527 | <div class="memitem"> |
| 3528 | <div class="memproto"> |
| 3529 | <table class="mlabels"> |
| 3530 | <tr> |
| 3531 | <td class="mlabels-left"> |
| 3532 | <table class="memname"> |
| 3533 | <tr> |
| 3534 | <td class="memname">void VisitSubtractionLayer </td> |
| 3535 | <td>(</td> |
| 3536 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3537 | <td class="paramname"><em>layer</em>, </td> |
| 3538 | </tr> |
| 3539 | <tr> |
| 3540 | <td class="paramkey"></td> |
| 3541 | <td></td> |
| 3542 | <td class="paramtype">const char * </td> |
| 3543 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3544 | </tr> |
| 3545 | <tr> |
| 3546 | <td></td> |
| 3547 | <td>)</td> |
| 3548 | <td></td><td></td> |
| 3549 | </tr> |
| 3550 | </table> |
| 3551 | </td> |
| 3552 | <td class="mlabels-right"> |
| 3553 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3554 | </tr> |
| 3555 | </table> |
| 3556 | </div><div class="memdoc"> |
| 3557 | <p>Function a subtraction layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3558 | <table class="params"> |
| 3559 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3560 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3561 | </table> |
| 3562 | </dd> |
| 3563 | </dl> |
| 3564 | |
| 3565 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#ad339435c8d56522efc647da668d47047">ILayerVisitor</a>.</p> |
| 3566 | |
| 3567 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01245">1245</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3568 | |
| 3569 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3570 | <div class="fragment"><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> {</div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span> </div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>  <span class="keyword">auto</span> fbSubtractionBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Subtraction);</div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>  <span class="keyword">auto</span> fbSubtractionLayer = serializer::CreateSubtractionLayer(m_flatBufferBuilder, fbSubtractionBaseLayer);</div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span> </div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>  CreateAnyLayer(fbSubtractionLayer.o, serializer::Layer::Layer_SubtractionLayer);</div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span> }</div></div><!-- fragment --> |
| 3571 | </div> |
| 3572 | </div> |
| 3573 | <a id="a20396d2da2d38ae69bd5bda5d8c1e8dc"></a> |
| 3574 | <h2 class="memtitle"><span class="permalink"><a href="#a20396d2da2d38ae69bd5bda5d8c1e8dc">◆ </a></span>VisitSwitchLayer()</h2> |
| 3575 | |
| 3576 | <div class="memitem"> |
| 3577 | <div class="memproto"> |
| 3578 | <table class="mlabels"> |
| 3579 | <tr> |
| 3580 | <td class="mlabels-left"> |
| 3581 | <table class="memname"> |
| 3582 | <tr> |
| 3583 | <td class="memname">void VisitSwitchLayer </td> |
| 3584 | <td>(</td> |
| 3585 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3586 | <td class="paramname"><em>layer</em>, </td> |
| 3587 | </tr> |
| 3588 | <tr> |
| 3589 | <td class="paramkey"></td> |
| 3590 | <td></td> |
| 3591 | <td class="paramtype">const char * </td> |
| 3592 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3593 | </tr> |
| 3594 | <tr> |
| 3595 | <td></td> |
| 3596 | <td>)</td> |
| 3597 | <td></td><td></td> |
| 3598 | </tr> |
| 3599 | </table> |
| 3600 | </td> |
| 3601 | <td class="mlabels-right"> |
| 3602 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3603 | </tr> |
| 3604 | </table> |
| 3605 | </div><div class="memdoc"> |
| 3606 | <p>Function a switch layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3607 | <table class="params"> |
| 3608 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3609 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3610 | </table> |
| 3611 | </dd> |
| 3612 | </dl> |
| 3613 | |
| 3614 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a6d33c538a0f3f179ec2eeb4dcee2a21e">ILayerVisitor</a>.</p> |
| 3615 | |
| 3616 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01255">1255</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3617 | |
| 3618 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3619 | <div class="fragment"><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span> {</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span> </div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>  <span class="keyword">auto</span> fbSwitchBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Switch);</div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>  <span class="keyword">auto</span> fbSwitchLayer = serializer::CreateSwitchLayer(m_flatBufferBuilder, fbSwitchBaseLayer);</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span> </div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>  CreateAnyLayer(fbSwitchLayer.o, serializer::Layer::Layer_SwitchLayer);</div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> }</div></div><!-- fragment --> |
| 3620 | </div> |
| 3621 | </div> |
| 3622 | <a id="aa46bee20f6017ada3c3a46e1bdf23011"></a> |
| 3623 | <h2 class="memtitle"><span class="permalink"><a href="#aa46bee20f6017ada3c3a46e1bdf23011">◆ </a></span>VisitTransposeConvolution2dLayer()</h2> |
| 3624 | |
| 3625 | <div class="memitem"> |
| 3626 | <div class="memproto"> |
| 3627 | <table class="mlabels"> |
| 3628 | <tr> |
| 3629 | <td class="mlabels-left"> |
| 3630 | <table class="memname"> |
| 3631 | <tr> |
| 3632 | <td class="memname">void VisitTransposeConvolution2dLayer </td> |
| 3633 | <td>(</td> |
| 3634 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_i_connectable_layer.html">armnn::IConnectableLayer</a> * </td> |
| 3635 | <td class="paramname"><em>layer</em>, </td> |
| 3636 | </tr> |
| 3637 | <tr> |
| 3638 | <td class="paramkey"></td> |
| 3639 | <td></td> |
| 3640 | <td class="paramtype">const <a class="el" href="structarmnn_1_1_transpose_convolution2d_descriptor.html">armnn::TransposeConvolution2dDescriptor</a> & </td> |
| 3641 | <td class="paramname"><em>descriptor</em>, </td> |
| 3642 | </tr> |
| 3643 | <tr> |
| 3644 | <td class="paramkey"></td> |
| 3645 | <td></td> |
| 3646 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> & </td> |
| 3647 | <td class="paramname"><em>weights</em>, </td> |
| 3648 | </tr> |
| 3649 | <tr> |
| 3650 | <td class="paramkey"></td> |
| 3651 | <td></td> |
| 3652 | <td class="paramtype">const <a class="el" href="classarmnn_1_1_optional.html">armnn::Optional</a>< <a class="el" href="classarmnn_1_1_const_tensor.html">armnn::ConstTensor</a> > & </td> |
| 3653 | <td class="paramname"><em>biases</em>, </td> |
| 3654 | </tr> |
| 3655 | <tr> |
| 3656 | <td class="paramkey"></td> |
| 3657 | <td></td> |
| 3658 | <td class="paramtype">const char * </td> |
| 3659 | <td class="paramname"><em>name</em> = <code>nullptr</code> </td> |
| 3660 | </tr> |
| 3661 | <tr> |
| 3662 | <td></td> |
| 3663 | <td>)</td> |
| 3664 | <td></td><td></td> |
| 3665 | </tr> |
| 3666 | </table> |
| 3667 | </td> |
| 3668 | <td class="mlabels-right"> |
| 3669 | <span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td> |
| 3670 | </tr> |
| 3671 | </table> |
| 3672 | </div><div class="memdoc"> |
| 3673 | <p>Function that a 2D transpose convolution layer should call back to when its Accept(ILayerVisitor&) function is invoked. </p><dl class="params"><dt>Parameters</dt><dd> |
| 3674 | <table class="params"> |
| 3675 | <tr><td class="paramname">layer</td><td>- pointer to the layer which is calling back to this visit function. </td></tr> |
| 3676 | <tr><td class="paramname">descriptor</td><td>- Description of the 2D transpose convolution layer. </td></tr> |
| 3677 | <tr><td class="paramname">weights</td><td>- Tensor for the weights data. </td></tr> |
| 3678 | <tr><td class="paramname">biases</td><td>- Optional tensor for the bias data. </td></tr> |
| 3679 | <tr><td class="paramname">name</td><td>- Optional name for the layer. </td></tr> |
| 3680 | </table> |
| 3681 | </dd> |
| 3682 | </dl> |
| 3683 | |
| 3684 | <p>Implements <a class="el" href="classarmnn_1_1_i_layer_visitor.html#a58bb3bc96c089a4d0b954be81f1899c6">ILayerVisitor</a>.</p> |
| 3685 | |
| 3686 | <p class="definition">Definition at line <a class="el" href="_serializer_8cpp_source.html#l01265">1265</a> of file <a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a>.</p> |
| 3687 | |
| 3688 | <p class="reference">References <a class="el" href="_serializer_utils_8cpp_source.html#l00070">armnnSerializer::GetFlatBufferDataLayout()</a>, <a class="el" href="_optional_8hpp_source.html#l00053">OptionalBase::has_value()</a>, <a class="el" href="_descriptors_8hpp_source.html#l01117">TransposeConvolution2dDescriptor::m_BiasEnabled</a>, <a class="el" href="_descriptors_8hpp_source.html#l01119">TransposeConvolution2dDescriptor::m_DataLayout</a>, <a class="el" href="_descriptors_8hpp_source.html#l01111">TransposeConvolution2dDescriptor::m_PadBottom</a>, <a class="el" href="_descriptors_8hpp_source.html#l01105">TransposeConvolution2dDescriptor::m_PadLeft</a>, <a class="el" href="_descriptors_8hpp_source.html#l01107">TransposeConvolution2dDescriptor::m_PadRight</a>, <a class="el" href="_descriptors_8hpp_source.html#l01109">TransposeConvolution2dDescriptor::m_PadTop</a>, <a class="el" href="_descriptors_8hpp_source.html#l01113">TransposeConvolution2dDescriptor::m_StrideX</a>, <a class="el" href="_descriptors_8hpp_source.html#l01115">TransposeConvolution2dDescriptor::m_StrideY</a>, and <a class="el" href="_optional_8hpp_source.html#l00146">OptionalReferenceSwitch< IsReference, T >::value()</a>.</p> |
| 3689 | |
| 3690 | <p class="reference">Referenced by <a class="el" href="_serializer_8hpp_source.html#l00042">SerializerVisitor::GetSerializedLayers()</a>.</p> |
| 3691 | <div class="fragment"><div class="line"><a name="l01271"></a><span class="lineno"> 1271</span> {</div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>  boost::ignore_unused(name);</div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span> </div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>  <span class="keyword">auto</span> fbBaseLayer = CreateLayerBase(layer, serializer::LayerType::LayerType_Convolution2d);</div><div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>  <span class="keyword">auto</span> fbDescriptor = CreateTransposeConvolution2dDescriptor(m_flatBufferBuilder,</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">m_PadLeft</a>,</div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">m_PadRight</a>,</div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">m_PadTop</a>,</div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">m_PadBottom</a>,</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">m_StrideX</a>,</div><div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">m_StrideY</a>,</div><div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>  descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">m_BiasEnabled</a>,</div><div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>  <a class="code" href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">GetFlatBufferDataLayout</a>(descriptor.<a class="code" href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">m_DataLayout</a>));</div><div class="line"><a name="l01284"></a><span class="lineno"> 1284</span> </div><div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>  <span class="comment">// weights & biases</span></div><div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>  <span class="keyword">auto</span> fbWeightsConstTensorInfo = CreateConstTensorInfo(weights);</div><div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>  flatbuffers::Offset<serializer::ConstTensor> fbBiasesConstTensorInfo;</div><div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>  <span class="keywordflow">if</span> (biases.<a class="code" href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">has_value</a>())</div><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>  {</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>  fbBiasesConstTensorInfo = CreateConstTensorInfo(biases.<a class="code" href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">value</a>());</div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>  }</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span> </div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>  <span class="keyword">auto</span> fbLayer = CreateTransposeConvolution2dLayer(m_flatBufferBuilder,</div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>  fbBaseLayer,</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>  fbDescriptor,</div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>  fbWeightsConstTensorInfo,</div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>  fbBiasesConstTensorInfo);</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span> </div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>  CreateAnyLayer(fbLayer.o, serializer::Layer::Layer_TransposeConvolution2dLayer);</div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span> }</div><div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_aa9e49717ebdb741e8c767741647fc618"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aa9e49717ebdb741e8c767741647fc618">armnn::TransposeConvolution2dDescriptor::m_PadBottom</a></div><div class="ttdeci">uint32_t m_PadBottom</div><div class="ttdoc">Padding bottom value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01111">Descriptors.hpp:1111</a></div></div> |
| 3692 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_a56b51f56cef50cdfa554258eecdab046"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a56b51f56cef50cdfa554258eecdab046">armnn::TransposeConvolution2dDescriptor::m_PadTop</a></div><div class="ttdeci">uint32_t m_PadTop</div><div class="ttdoc">Padding top value in the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01109">Descriptors.hpp:1109</a></div></div> |
| 3693 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_a6089e1ca91914015777ea780a513131a"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a6089e1ca91914015777ea780a513131a">armnn::TransposeConvolution2dDescriptor::m_DataLayout</a></div><div class="ttdeci">DataLayout m_DataLayout</div><div class="ttdoc">The data layout to be used (NCHW, NHWC). </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01119">Descriptors.hpp:1119</a></div></div> |
| 3694 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_ac1fe174bbadfb39a2b636940c2e647c8"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac1fe174bbadfb39a2b636940c2e647c8">armnn::TransposeConvolution2dDescriptor::m_StrideY</a></div><div class="ttdeci">uint32_t m_StrideY</div><div class="ttdoc">Stride value when proceeding through input for the height dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01115">Descriptors.hpp:1115</a></div></div> |
| 3695 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_a002bc30e590d78cbb4f4d12171055ca7"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#a002bc30e590d78cbb4f4d12171055ca7">armnn::TransposeConvolution2dDescriptor::m_PadRight</a></div><div class="ttdeci">uint32_t m_PadRight</div><div class="ttdoc">Padding right value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01107">Descriptors.hpp:1107</a></div></div> |
| 3696 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_ac18546ebbebbb32fe0a03baa9bf2c600"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#ac18546ebbebbb32fe0a03baa9bf2c600">armnn::TransposeConvolution2dDescriptor::m_PadLeft</a></div><div class="ttdeci">uint32_t m_PadLeft</div><div class="ttdoc">Padding left value in the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01105">Descriptors.hpp:1105</a></div></div> |
| 3697 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_afe6a3377c4531315354def9023c8fdda"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#afe6a3377c4531315354def9023c8fdda">armnn::TransposeConvolution2dDescriptor::m_StrideX</a></div><div class="ttdeci">uint32_t m_StrideX</div><div class="ttdoc">Stride value when proceeding through input for the width dimension. </div><div class="ttdef"><b>Definition:</b> <a href="_descriptors_8hpp_source.html#l01113">Descriptors.hpp:1113</a></div></div> |
| 3698 | <div class="ttc" id="structarmnn_1_1_transpose_convolution2d_descriptor_html_aea202e14d8874cefd9a0f778022b7e25"><div class="ttname"><a href="structarmnn_1_1_transpose_convolution2d_descriptor.html#aea202e14d8874cefd9a0f778022b7e25">armnn::TransposeConvolution2dDescriptor::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#l01117">Descriptors.hpp:1117</a></div></div> |
| 3699 | <div class="ttc" id="namespacearmnn_serializer_html_a6a38e099993f10c9262e0b5f2bff4fcd"><div class="ttname"><a href="namespacearmnn_serializer.html#a6a38e099993f10c9262e0b5f2bff4fcd">armnnSerializer::GetFlatBufferDataLayout</a></div><div class="ttdeci">armnnSerializer::DataLayout GetFlatBufferDataLayout(armnn::DataLayout dataLayout)</div><div class="ttdef"><b>Definition:</b> <a href="_serializer_utils_8cpp_source.html#l00070">SerializerUtils.cpp:70</a></div></div> |
| 3700 | <div class="ttc" id="classarmnn_1_1_optional_base_html_a86b749ce2c4bc627fa8a1fcfaf0e314f"><div class="ttname"><a href="classarmnn_1_1_optional_base.html#a86b749ce2c4bc627fa8a1fcfaf0e314f">armnn::OptionalBase::has_value</a></div><div class="ttdeci">bool has_value() const noexcept</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00053">Optional.hpp:53</a></div></div> |
| 3701 | <div class="ttc" id="classarmnn_1_1_optional_reference_switch_html_a77c7d528ac063d870b8c8426ec81c1c3"><div class="ttname"><a href="classarmnn_1_1_optional_reference_switch.html#a77c7d528ac063d870b8c8426ec81c1c3">armnn::OptionalReferenceSwitch::value</a></div><div class="ttdeci">const T & value() const</div><div class="ttdef"><b>Definition:</b> <a href="_optional_8hpp_source.html#l00146">Optional.hpp:146</a></div></div> |
| 3702 | </div><!-- fragment --> |
| 3703 | </div> |
| 3704 | </div> |
| 3705 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 3706 | <li>src/armnnSerializer/<a class="el" href="_serializer_8hpp_source.html">Serializer.hpp</a></li> |
| 3707 | <li>src/armnnSerializer/<a class="el" href="_serializer_8cpp_source.html">Serializer.cpp</a></li> |
| 3708 | </ul> |
| 3709 | </div><!-- contents --> |
| 3710 | </div><!-- doc-content --> |
| 3711 | <!-- start footer part --> |
| 3712 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 3713 | <ul> |
| 3714 | <li class="navelem"><a class="el" href="namespacearmnn_serializer.html">armnnSerializer</a></li><li class="navelem"><a class="el" href="classarmnn_serializer_1_1_serializer_visitor.html">SerializerVisitor</a></li> |
| 3715 | <li class="footer">Generated on Fri Mar 13 2020 16:07:06 for ArmNN by |
| 3716 | <a href="http://www.doxygen.org/index.html"> |
| 3717 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 3718 | </ul> |
| 3719 | </div> |
| 3720 | </body> |
| 3721 | </html> |