blob: 8ff1b0e6d2116fae96c979537f805f3c2ca01778 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: src/backends/cl/ClLayerSupport.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">ArmNN
&#160;<span id="projectnumber">NotReleased</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_cl_layer_support_8cpp.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> </div>
<div class="headertitle">
<div class="title">ClLayerSupport.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_cl_layer_support_8hpp_source.html">ClLayerSupport.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_backend_id_8hpp_source.html">ClBackendId.hpp</a>&quot;</code><br />
<code>#include &lt;<a class="el" href="_descriptors_8hpp_source.html">armnn/Descriptors.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_backend_registry_8hpp_source.html">armnn/BackendRegistry.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_internal_types_8hpp_source.html">InternalTypes.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_layer_support_common_8hpp_source.html">LayerSupportCommon.hpp</a>&gt;</code><br />
<code>#include &lt;boost/core/ignore_unused.hpp&gt;</code><br />
<code>#include &lt;<a class="el" href="_arm_compute_utils_8hpp_source.html">aclCommon/ArmComputeUtils.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_arm_compute_tensor_utils_8hpp_source.html">aclCommon/ArmComputeTensorUtils.hpp</a>&gt;</code><br />
<code>#include &quot;<a class="el" href="_cl_abs_workload_8hpp_source.html">workloads/ClAbsWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_addition_workload_8hpp_source.html">workloads/ClAdditionWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_activation_workload_8hpp_source.html">workloads/ClActivationWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_arg_min_max_workload_8hpp_source.html">workloads/ClArgMinMaxWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_batch_normalization_float_workload_8hpp_source.html">workloads/ClBatchNormalizationFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_batch_to_space_nd_workload_8hpp_source.html">workloads/ClBatchToSpaceNdWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_convert_fp16_to_fp32_workload_8hpp_source.html">workloads/ClConvertFp16ToFp32Workload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_convert_fp32_to_fp16_workload_8hpp_source.html">workloads/ClConvertFp32ToFp16Workload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_convolution2d_workload_8hpp_source.html">workloads/ClConvolution2dWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_depth_to_space_workload_8hpp_source.html">workloads/ClDepthToSpaceWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_depthwise_convolution_workload_8hpp_source.html">workloads/ClDepthwiseConvolutionWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_dequantize_workload_8hpp_source.html">workloads/ClDequantizeWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_division_float_workload_8hpp_source.html">workloads/ClDivisionFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_floor_float_workload_8hpp_source.html">workloads/ClFloorFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_fully_connected_workload_8hpp_source.html">workloads/ClFullyConnectedWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_greater_workload_8hpp_source.html">workloads/ClGreaterWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_instance_normalization_workload_8hpp_source.html">workloads/ClInstanceNormalizationWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_l2_normalization_float_workload_8hpp_source.html">workloads/ClL2NormalizationFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_lstm_float_workload_8hpp_source.html">workloads/ClLstmFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_maximum_workload_8hpp_source.html">workloads/ClMaximumWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_mean_workload_8hpp_source.html">workloads/ClMeanWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_concat_workload_8hpp_source.html">workloads/ClConcatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_minimum_workload_8hpp_source.html">workloads/ClMinimumWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_multiplication_workload_8hpp_source.html">workloads/ClMultiplicationWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_normalization_float_workload_8hpp_source.html">workloads/ClNormalizationFloatWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_pad_workload_8hpp_source.html">workloads/ClPadWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_permute_workload_8hpp_source.html">workloads/ClPermuteWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_pooling2d_workload_8hpp_source.html">workloads/ClPooling2dWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_prelu_workload_8hpp_source.html">workloads/ClPreluWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_reshape_workload_8hpp_source.html">workloads/ClReshapeWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_resize_workload_8hpp_source.html">workloads/ClResizeWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_rsqrt_workload_8hpp_source.html">workloads/ClRsqrtWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_quantized_lstm_workload_8hpp_source.html">workloads/ClQuantizedLstmWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_quantize_workload_8hpp_source.html">workloads/ClQuantizeWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_slice_workload_8hpp_source.html">workloads/ClSliceWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_softmax_base_workload_8hpp_source.html">workloads/ClSoftmaxBaseWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_space_to_batch_nd_workload_8hpp_source.html">workloads/ClSpaceToBatchNdWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_space_to_depth_workload_8hpp_source.html">workloads/ClSpaceToDepthWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_splitter_workload_8hpp_source.html">workloads/ClSplitterWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_stack_workload_8hpp_source.html">workloads/ClStackWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_strided_slice_workload_8hpp_source.html">workloads/ClStridedSliceWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_subtraction_workload_8hpp_source.html">workloads/ClSubtractionWorkload.hpp</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_cl_transpose_convolution2d_workload_8hpp_source.html">workloads/ClTransposeConvolution2dWorkload.hpp</a>&quot;</code><br />
</div>
<p><a href="_cl_layer_support_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<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>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<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>
<tr class="separator:a5cced62cc843be3b7f0614fc73d2c93b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<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>
<tr class="separator:af0383f6bb43d6d5df6f3265367b6ebf9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a5cced62cc843be3b7f0614fc73d2c93b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cced62cc843be3b7f0614fc73d2c93b">&#9670;&nbsp;</a></span>FORWARD_CL_LAYER_SUPPORT_FUNC</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FORWARD_CL_LAYER_SUPPORT_FUNC</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">expr</td><td>)</td>
<td>&#160;&#160;&#160;(expr)</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_layer_support_8cpp_source.html#l00108">108</a> of file <a class="el" href="_cl_layer_support_8cpp_source.html">ClLayerSupport.cpp</a>.</p>
</div>
</div>
<a id="af0383f6bb43d6d5df6f3265367b6ebf9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0383f6bb43d6d5df6f3265367b6ebf9">&#9670;&nbsp;</a></span>FORWARD_WORKLOAD_VALIDATE_FUNC</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define FORWARD_WORKLOAD_VALIDATE_FUNC</td>
<td>(</td>
<td class="paramtype">&#160;</td>
<td class="paramname">func, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname">reasonIfUnsupported, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">&#160;</td>
<td class="paramname"><em>...</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td>&#160;&#160;&#160;return IsWorkloadSupported(func, reasonIfUnsupported, __VA_ARGS__);</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_cl_layer_support_8cpp_source.html#l00126">126</a> of file <a class="el" href="_cl_layer_support_8cpp_source.html">ClLayerSupport.cpp</a>.</p>
<p class="reference">Referenced by <a class="el" href="_cl_layer_support_8cpp_source.html#l00160">ClLayerSupport::IsActivationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00172">ClLayerSupport::IsAdditionSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00184">ClLayerSupport::IsArgMinMaxSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00197">ClLayerSupport::IsBatchNormalizationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00217">ClLayerSupport::IsBatchToSpaceNdSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00229">ClLayerSupport::IsComparisonSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00247">ClLayerSupport::IsConcatSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00297">ClLayerSupport::IsConvertFp16ToFp32Supported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00307">ClLayerSupport::IsConvertFp32ToFp16Supported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00317">ClLayerSupport::IsConvolution2dSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00343">ClLayerSupport::IsDepthToSpaceSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00355">ClLayerSupport::IsDepthwiseConvolutionSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00333">ClLayerSupport::IsDequantizeSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00371">ClLayerSupport::IsDilatedDepthwiseConvolutionSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00388">ClLayerSupport::IsDivisionSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00400">ClLayerSupport::IsElementwiseUnarySupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00423">ClLayerSupport::IsFloorSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00433">ClLayerSupport::IsFullyConnectedSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00464">ClLayerSupport::IsInstanceNormalizationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00476">ClLayerSupport::IsL2NormalizationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00488">ClLayerSupport::IsLstmSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00512">ClLayerSupport::IsMaximumSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00524">ClLayerSupport::IsMeanSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00544">ClLayerSupport::IsMinimumSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00556">ClLayerSupport::IsMultiplicationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00568">ClLayerSupport::IsNormalizationSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00582">ClLayerSupport::IsPadSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00594">ClLayerSupport::IsPermuteSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00602">ClLayerSupport::IsPooling2dSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00610">ClLayerSupport::IsPreluSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00618">ClLayerSupport::IsQuantizedLstmSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00636">ClLayerSupport::IsQuantizeSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00646">ClLayerSupport::IsReshapeSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00655">ClLayerSupport::IsResizeSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00686">ClLayerSupport::IsSliceSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00694">ClLayerSupport::IsSoftmaxSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00702">ClLayerSupport::IsSpaceToBatchNdSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00714">ClLayerSupport::IsSpaceToDepthSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00737">ClLayerSupport::IsSplitterSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00770">ClLayerSupport::IsStackSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00782">ClLayerSupport::IsStridedSliceSupported()</a>, <a class="el" href="_cl_layer_support_8cpp_source.html#l00794">ClLayerSupport::IsSubtractionSupported()</a>, and <a class="el" href="_cl_layer_support_8cpp_source.html#l00806">ClLayerSupport::IsTransposeConvolution2dSupported()</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<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>
<li class="footer">Generated on Fri Mar 13 2020 16:07:00 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>