blob: a8d09b52fbf151f9889aebab0315409b74262c36 [file] [log] [blame]
Nikhil Raj38b600d2024-02-15 15:02:19 +00001<!-- HTML header for doxygen 1.8.17-->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<meta http-equiv="X-UA-Compatible" content="IE=9"/>
7<meta name="generator" content="Doxygen 1.8.17"/>
8<meta name="viewport" content="width=device-width, initial-scale=1"/>
9<title>Arm NN: src/backends/cl/ClLayerSupport.cpp File Reference</title>
10<link href="tabs.css" rel="stylesheet" type="text/css"/>
11<script type="text/javascript" src="jquery.js"></script>
12<script type="text/javascript" src="dynsections.js"></script>
13<link href="navtree.css" rel="stylesheet" type="text/css"/>
14<script type="text/javascript" src="resize.js"></script>
15<script type="text/javascript" src="navtreedata.js"></script>
16<script type="text/javascript" src="navtree.js"></script>
17<link href="search/search.css" rel="stylesheet" type="text/css"/>
18<script type="text/javascript" src="search/searchdata.js"></script>
19<script type="text/javascript" src="search/search.js"></script>
20<script type="text/x-mathjax-config">
21 MathJax.Hub.Config({
22 extensions: ["tex2jax.js"],
23 jax: ["input/TeX","output/HTML-CSS"],
24});
25</script>
26<script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
27<link href="doxygen.css" rel="stylesheet" type="text/css" />
28<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
29</head>
30<body>
31<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
32<div id="titlearea">
33<table cellspacing="0" cellpadding="0">
34 <tbody>
35 <tr style="height: 56px;">
36 <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 15rem; margin-top: .5rem; margin-left 13px"/>
37 <td id="projectalign" style="padding-left: 0.9em;">
38 <div id="projectname">
39 &#160;<span id="projectnumber">24.02</span>
40 </div>
41 </td>
42 </tr>
43 </tbody>
44</table>
45</div>
46<!-- end header part -->
47<!-- Generated by Doxygen 1.8.17 -->
48<script type="text/javascript">
49/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
50var searchBox = new SearchBox("searchBox", "search",false,'Search');
51/* @license-end */
52</script>
53<script type="text/javascript" src="menudata.js"></script>
54<script type="text/javascript" src="menu.js"></script>
55<script type="text/javascript">
56/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
57$(function() {
58 initMenu('',true,false,'search.php','Search');
59 $(document).ready(function() { init_search(); });
60});
61/* @license-end */</script>
62<div id="main-nav"></div>
63</div><!-- top -->
64<div id="side-nav" class="ui-resizable side-nav-resizable">
65 <div id="nav-tree">
66 <div id="nav-tree-contents">
67 <div id="nav-sync" class="sync"></div>
68 </div>
69 </div>
70 <div id="splitbar" style="-moz-user-select:none;"
71 class="ui-resizable-handle">
72 </div>
73</div>
74<script type="text/javascript">
75/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
76$(document).ready(function(){initNavTree('_cl_layer_support_8cpp.html',''); initResizable(); });
77/* @license-end */
78</script>
79<div id="doc-content">
80<!-- window showing the filter options -->
81<div id="MSearchSelectWindow"
82 onmouseover="return searchBox.OnSearchSelectShow()"
83 onmouseout="return searchBox.OnSearchSelectHide()"
84 onkeydown="return searchBox.OnSearchSelectKey(event)">
85</div>
86
87<!-- iframe showing the search results (closed by default) -->
88<div id="MSearchResultsWindow">
89<iframe src="javascript:void(0)" frameborder="0"
90 name="MSearchResults" id="MSearchResults">
91</iframe>
92</div>
93
94<div class="header">
95 <div class="summary">
96<a href="#namespaces">Namespaces</a> &#124;
97<a href="#define-members">Macros</a> </div>
98 <div class="headertitle">
99<div class="title">ClLayerSupport.cpp File Reference</div> </div>
100</div><!--header-->
101<div class="contents">
102<div class="textblock"><code>#include &quot;<a class="el" href="_cl_layer_support_8hpp_source.html">ClLayerSupport.hpp</a>&quot;</code><br />
103<code>#include &quot;<a class="el" href="_cl_backend_id_8hpp_source.html">ClBackendId.hpp</a>&quot;</code><br />
104<code>#include &quot;<a class="el" href="_cl_backend_model_context_8hpp_source.html">ClBackendModelContext.hpp</a>&quot;</code><br />
105<code>#include &lt;<a class="el" href="_backend_registry_8hpp_source.html">armnn/BackendRegistry.hpp</a>&gt;</code><br />
106<code>#include &lt;<a class="el" href="_internal_types_8hpp_source.html">InternalTypes.hpp</a>&gt;</code><br />
107<code>#include &lt;<a class="el" href="_layer_support_common_8hpp_source.html">LayerSupportCommon.hpp</a>&gt;</code><br />
108<code>#include &lt;<a class="el" href="_ignore_unused_8hpp_source.html">armnn/utility/IgnoreUnused.hpp</a>&gt;</code><br />
109<code>#include &lt;<a class="el" href="_polymorphic_downcast_8hpp_source.html">armnn/utility/PolymorphicDowncast.hpp</a>&gt;</code><br />
110<code>#include &lt;<a class="el" href="_arm_compute_utils_8hpp_source.html">aclCommon/ArmComputeUtils.hpp</a>&gt;</code><br />
111<code>#include &lt;<a class="el" href="_arm_compute_tensor_utils_8hpp_source.html">aclCommon/ArmComputeTensorUtils.hpp</a>&gt;</code><br />
112<code>#include &quot;<a class="el" href="_cl_abs_workload_8hpp_source.html">workloads/ClAbsWorkload.hpp</a>&quot;</code><br />
113<code>#include &quot;<a class="el" href="_cl_addition_workload_8hpp_source.html">workloads/ClAdditionWorkload.hpp</a>&quot;</code><br />
114<code>#include &quot;<a class="el" href="_cl_activation_workload_8hpp_source.html">workloads/ClActivationWorkload.hpp</a>&quot;</code><br />
115<code>#include &quot;<a class="el" href="_cl_arg_min_max_workload_8hpp_source.html">workloads/ClArgMinMaxWorkload.hpp</a>&quot;</code><br />
116<code>#include &quot;<a class="el" href="_cl_batch_mat_mul_workload_8hpp_source.html">workloads/ClBatchMatMulWorkload.hpp</a>&quot;</code><br />
117<code>#include &quot;<a class="el" href="_cl_batch_normalization_float_workload_8hpp_source.html">workloads/ClBatchNormalizationFloatWorkload.hpp</a>&quot;</code><br />
118<code>#include &quot;<a class="el" href="_cl_batch_to_space_nd_workload_8hpp_source.html">workloads/ClBatchToSpaceNdWorkload.hpp</a>&quot;</code><br />
119<code>#include &quot;<a class="el" href="_cl_cast_workload_8hpp_source.html">workloads/ClCastWorkload.hpp</a>&quot;</code><br />
120<code>#include &quot;<a class="el" href="_cl_channel_shuffle_workload_8hpp_source.html">workloads/ClChannelShuffleWorkload.hpp</a>&quot;</code><br />
121<code>#include &quot;<a class="el" href="_cl_comparison_workload_8hpp_source.html">workloads/ClComparisonWorkload.hpp</a>&quot;</code><br />
122<code>#include &quot;<a class="el" href="_cl_constant_workload_8hpp_source.html">workloads/ClConstantWorkload.hpp</a>&quot;</code><br />
123<code>#include &quot;<a class="el" href="_cl_convert_fp16_to_fp32_workload_8hpp_source.html">workloads/ClConvertFp16ToFp32Workload.hpp</a>&quot;</code><br />
124<code>#include &quot;<a class="el" href="_cl_convert_fp32_to_fp16_workload_8hpp_source.html">workloads/ClConvertFp32ToFp16Workload.hpp</a>&quot;</code><br />
125<code>#include &quot;<a class="el" href="_cl_convolution2d_workload_8hpp_source.html">workloads/ClConvolution2dWorkload.hpp</a>&quot;</code><br />
126<code>#include &quot;<a class="el" href="_cl_convolution3d_workload_8hpp_source.html">workloads/ClConvolution3dWorkload.hpp</a>&quot;</code><br />
127<code>#include &quot;<a class="el" href="_cl_depth_to_space_workload_8hpp_source.html">workloads/ClDepthToSpaceWorkload.hpp</a>&quot;</code><br />
128<code>#include &quot;<a class="el" href="_cl_depthwise_convolution_workload_8hpp_source.html">workloads/ClDepthwiseConvolutionWorkload.hpp</a>&quot;</code><br />
129<code>#include &quot;<a class="el" href="_cl_dequantize_workload_8hpp_source.html">workloads/ClDequantizeWorkload.hpp</a>&quot;</code><br />
130<code>#include &quot;<a class="el" href="_cl_division_workload_8hpp_source.html">workloads/ClDivisionWorkload.hpp</a>&quot;</code><br />
131<code>#include &quot;<a class="el" href="_cl_elementwise_binary_workload_8hpp_source.html">workloads/ClElementwiseBinaryWorkload.hpp</a>&quot;</code><br />
132<code>#include &quot;<a class="el" href="_cl_exp_workload_8hpp_source.html">workloads/ClExpWorkload.hpp</a>&quot;</code><br />
133<code>#include &quot;<a class="el" href="_cl_fill_workload_8hpp_source.html">workloads/ClFillWorkload.hpp</a>&quot;</code><br />
134<code>#include &quot;<a class="el" href="_cl_floor_float_workload_8hpp_source.html">workloads/ClFloorFloatWorkload.hpp</a>&quot;</code><br />
135<code>#include &quot;<a class="el" href="_cl_fully_connected_workload_8hpp_source.html">workloads/ClFullyConnectedWorkload.hpp</a>&quot;</code><br />
136<code>#include &quot;<a class="el" href="_cl_gather_workload_8hpp_source.html">workloads/ClGatherWorkload.hpp</a>&quot;</code><br />
137<code>#include &quot;<a class="el" href="_cl_gather_nd_workload_8hpp_source.html">workloads/ClGatherNdWorkload.hpp</a>&quot;</code><br />
138<code>#include &quot;<a class="el" href="_cl_instance_normalization_workload_8hpp_source.html">workloads/ClInstanceNormalizationWorkload.hpp</a>&quot;</code><br />
139<code>#include &quot;<a class="el" href="_cl_l2_normalization_float_workload_8hpp_source.html">workloads/ClL2NormalizationFloatWorkload.hpp</a>&quot;</code><br />
140<code>#include &quot;<a class="el" href="_cl_log_workload_8hpp_source.html">workloads/ClLogWorkload.hpp</a>&quot;</code><br />
141<code>#include &quot;<a class="el" href="_cl_log_softmax_workload_8hpp_source.html">workloads/ClLogSoftmaxWorkload.hpp</a>&quot;</code><br />
142<code>#include &quot;<a class="el" href="_cl_logical_and_workload_8hpp_source.html">workloads/ClLogicalAndWorkload.hpp</a>&quot;</code><br />
143<code>#include &quot;<a class="el" href="_cl_logical_not_workload_8hpp_source.html">workloads/ClLogicalNotWorkload.hpp</a>&quot;</code><br />
144<code>#include &quot;<a class="el" href="_cl_logical_or_workload_8hpp_source.html">workloads/ClLogicalOrWorkload.hpp</a>&quot;</code><br />
145<code>#include &quot;<a class="el" href="_cl_lstm_float_workload_8hpp_source.html">workloads/ClLstmFloatWorkload.hpp</a>&quot;</code><br />
146<code>#include &quot;<a class="el" href="_cl_maximum_workload_8hpp_source.html">workloads/ClMaximumWorkload.hpp</a>&quot;</code><br />
147<code>#include &quot;<a class="el" href="_cl_mean_workload_8hpp_source.html">workloads/ClMeanWorkload.hpp</a>&quot;</code><br />
148<code>#include &quot;<a class="el" href="_cl_concat_workload_8hpp_source.html">workloads/ClConcatWorkload.hpp</a>&quot;</code><br />
149<code>#include &quot;<a class="el" href="_cl_minimum_workload_8hpp_source.html">workloads/ClMinimumWorkload.hpp</a>&quot;</code><br />
150<code>#include &quot;<a class="el" href="_cl_multiplication_workload_8hpp_source.html">workloads/ClMultiplicationWorkload.hpp</a>&quot;</code><br />
151<code>#include &quot;<a class="el" href="_cl_neg_workload_8hpp_source.html">workloads/ClNegWorkload.hpp</a>&quot;</code><br />
152<code>#include &quot;<a class="el" href="_cl_normalization_float_workload_8hpp_source.html">workloads/ClNormalizationFloatWorkload.hpp</a>&quot;</code><br />
153<code>#include &quot;<a class="el" href="_cl_pad_workload_8hpp_source.html">workloads/ClPadWorkload.hpp</a>&quot;</code><br />
154<code>#include &quot;<a class="el" href="_cl_permute_workload_8hpp_source.html">workloads/ClPermuteWorkload.hpp</a>&quot;</code><br />
155<code>#include &quot;<a class="el" href="_cl_pooling2d_workload_8hpp_source.html">workloads/ClPooling2dWorkload.hpp</a>&quot;</code><br />
156<code>#include &quot;<a class="el" href="_cl_pooling3d_workload_8hpp_source.html">workloads/ClPooling3dWorkload.hpp</a>&quot;</code><br />
157<code>#include &quot;<a class="el" href="_cl_prelu_workload_8hpp_source.html">workloads/ClPreluWorkload.hpp</a>&quot;</code><br />
158<code>#include &quot;<a class="el" href="_cl_q_lstm_workload_8hpp_source.html">workloads/ClQLstmWorkload.hpp</a>&quot;</code><br />
159<code>#include &quot;<a class="el" href="_cl_quantized_lstm_workload_8hpp_source.html">workloads/ClQuantizedLstmWorkload.hpp</a>&quot;</code><br />
160<code>#include &quot;<a class="el" href="_cl_quantize_workload_8hpp_source.html">workloads/ClQuantizeWorkload.hpp</a>&quot;</code><br />
161<code>#include &quot;<a class="el" href="_cl_reduce_workload_8hpp_source.html">workloads/ClReduceWorkload.hpp</a>&quot;</code><br />
162<code>#include &quot;<a class="el" href="_cl_reshape_workload_8hpp_source.html">workloads/ClReshapeWorkload.hpp</a>&quot;</code><br />
163<code>#include &quot;<a class="el" href="_cl_resize_workload_8hpp_source.html">workloads/ClResizeWorkload.hpp</a>&quot;</code><br />
164<code>#include &quot;<a class="el" href="_cl_reverse_v2_workload_8hpp_source.html">workloads/ClReverseV2Workload.hpp</a>&quot;</code><br />
165<code>#include &quot;<a class="el" href="_cl_rsqrt_workload_8hpp_source.html">workloads/ClRsqrtWorkload.hpp</a>&quot;</code><br />
166<code>#include &quot;<a class="el" href="_cl_sin_workload_8hpp_source.html">workloads/ClSinWorkload.hpp</a>&quot;</code><br />
167<code>#include &quot;<a class="el" href="_cl_slice_workload_8hpp_source.html">workloads/ClSliceWorkload.hpp</a>&quot;</code><br />
168<code>#include &quot;<a class="el" href="_cl_softmax_workload_8hpp_source.html">workloads/ClSoftmaxWorkload.hpp</a>&quot;</code><br />
169<code>#include &quot;<a class="el" href="_cl_space_to_batch_nd_workload_8hpp_source.html">workloads/ClSpaceToBatchNdWorkload.hpp</a>&quot;</code><br />
170<code>#include &quot;<a class="el" href="_cl_space_to_depth_workload_8hpp_source.html">workloads/ClSpaceToDepthWorkload.hpp</a>&quot;</code><br />
171<code>#include &quot;<a class="el" href="_cl_splitter_workload_8hpp_source.html">workloads/ClSplitterWorkload.hpp</a>&quot;</code><br />
172<code>#include &quot;<a class="el" href="_cl_sqrt_workload_8hpp_source.html">workloads/ClSqrtWorkload.hpp</a>&quot;</code><br />
173<code>#include &quot;<a class="el" href="_cl_stack_workload_8hpp_source.html">workloads/ClStackWorkload.hpp</a>&quot;</code><br />
174<code>#include &quot;<a class="el" href="_cl_strided_slice_workload_8hpp_source.html">workloads/ClStridedSliceWorkload.hpp</a>&quot;</code><br />
175<code>#include &quot;<a class="el" href="_cl_subtraction_workload_8hpp_source.html">workloads/ClSubtractionWorkload.hpp</a>&quot;</code><br />
176<code>#include &quot;<a class="el" href="_cl_tile_workload_8hpp_source.html">workloads/ClTileWorkload.hpp</a>&quot;</code><br />
177<code>#include &quot;<a class="el" href="_cl_transpose_convolution2d_workload_8hpp_source.html">workloads/ClTransposeConvolution2dWorkload.hpp</a>&quot;</code><br />
178<code>#include &quot;<a class="el" href="_cl_transpose_workload_8hpp_source.html">workloads/ClTransposeWorkload.hpp</a>&quot;</code><br />
179<code>#include &quot;<a class="el" href="_cl_unidirectional_sequence_lstm_float_workload_8hpp_source.html">workloads/ClUnidirectionalSequenceLstmFloatWorkload.hpp</a>&quot;</code><br />
180</div><div class="textblock"><div class="dynheader">
181Include dependency graph for ClLayerSupport.cpp:</div>
182<div class="dyncontent">
183<div class="center"><iframe scrolling="no" frameborder="0" src="_cl_layer_support_8cpp__incl.svg" width="18068" height="1095"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
184</div>
185</div>
186</div>
187<p><a href="_cl_layer_support_8cpp_source.html">Go to the source code of this file.</a></p>
188<table class="memberdecls">
189<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
190Namespaces</h2></td></tr>
191<tr class="memitem:namespacearmnn"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearmnn.html">armnn</a></td></tr>
192<tr class="memdesc:namespacearmnn"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copyright (c) 2021 ARM Limited and Contributors. <br /></td></tr>
193<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
194</table><table class="memberdecls">
195<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
196Macros</h2></td></tr>
197<tr class="memitem:a5cced62cc843be3b7f0614fc73d2c93b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_cl_layer_support_8cpp.html#a5cced62cc843be3b7f0614fc73d2c93b">FORWARD_CL_LAYER_SUPPORT_FUNC</a>(expr)&#160;&#160;&#160;(expr)</td></tr>
198<tr class="separator:a5cced62cc843be3b7f0614fc73d2c93b"><td class="memSeparator" colspan="2">&#160;</td></tr>
199<tr class="memitem:af0383f6bb43d6d5df6f3265367b6ebf9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_cl_layer_support_8cpp.html#af0383f6bb43d6d5df6f3265367b6ebf9">FORWARD_WORKLOAD_VALIDATE_FUNC</a>(func, reasonIfUnsupported, ...)&#160;&#160;&#160;return IsWorkloadSupported(func, reasonIfUnsupported, __VA_ARGS__);</td></tr>
200<tr class="separator:af0383f6bb43d6d5df6f3265367b6ebf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
201</table>
202<h2 class="groupheader">Macro Definition Documentation</h2>
203<a id="a5cced62cc843be3b7f0614fc73d2c93b"></a>
204<h2 class="memtitle"><span class="permalink"><a href="#a5cced62cc843be3b7f0614fc73d2c93b">&#9670;&nbsp;</a></span>FORWARD_CL_LAYER_SUPPORT_FUNC</h2>
205
206<div class="memitem">
207<div class="memproto">
208 <table class="memname">
209 <tr>
210 <td class="memname">#define FORWARD_CL_LAYER_SUPPORT_FUNC</td>
211 <td>(</td>
212 <td class="paramtype">&#160;</td>
213 <td class="paramname">expr</td><td>)</td>
214 <td>&#160;&#160;&#160;(expr)</td>
215 </tr>
216 </table>
217</div><div class="memdoc">
218
219<p class="definition">Definition at line <a class="el" href="_cl_layer_support_8cpp_source.html#l00133">133</a> of file <a class="el" href="_cl_layer_support_8cpp_source.html">ClLayerSupport.cpp</a>.</p>
220
221</div>
222</div>
223<a id="af0383f6bb43d6d5df6f3265367b6ebf9"></a>
224<h2 class="memtitle"><span class="permalink"><a href="#af0383f6bb43d6d5df6f3265367b6ebf9">&#9670;&nbsp;</a></span>FORWARD_WORKLOAD_VALIDATE_FUNC</h2>
225
226<div class="memitem">
227<div class="memproto">
228 <table class="memname">
229 <tr>
230 <td class="memname">#define FORWARD_WORKLOAD_VALIDATE_FUNC</td>
231 <td>(</td>
232 <td class="paramtype">&#160;</td>
233 <td class="paramname">func, </td>
234 </tr>
235 <tr>
236 <td class="paramkey"></td>
237 <td></td>
238 <td class="paramtype">&#160;</td>
239 <td class="paramname">reasonIfUnsupported, </td>
240 </tr>
241 <tr>
242 <td class="paramkey"></td>
243 <td></td>
244 <td class="paramtype">&#160;</td>
245 <td class="paramname"><em>...</em>&#160;</td>
246 </tr>
247 <tr>
248 <td></td>
249 <td>)</td>
250 <td></td><td>&#160;&#160;&#160;return IsWorkloadSupported(func, reasonIfUnsupported, __VA_ARGS__);</td>
251 </tr>
252 </table>
253</div><div class="memdoc">
254
255<p class="definition">Definition at line <a class="el" href="_cl_layer_support_8cpp_source.html#l00151">151</a> of file <a class="el" href="_cl_layer_support_8cpp_source.html">ClLayerSupport.cpp</a>.</p>
256
257</div>
258</div>
259</div><!-- contents -->
260</div><!-- doc-content -->
261<!-- start footer part -->
262<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
263 <ul>
264 <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.html">backends</a></li><li class="navelem"><a class="el" href="dir_1ad86c6d39ab715a831555571b9e98a5.html">cl</a></li><li class="navelem"><a class="el" href="_cl_layer_support_8cpp.html">ClLayerSupport.cpp</a></li>
265 <li class="footer">Generated on Wed Feb 14 2024 16:36:19 for Arm NN by
266 <a href="http://www.doxygen.org/index.html">
267 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
268 </ul>
269</div>
270</body>
271</html>