blob: 4544590e0847ed05a6254ec5197ce4255783f525 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.15-->
<!-- Remember to use version doxygen 1.8.15 +-->
<!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.15"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: tests/validation/UNIT/WindowIterator.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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</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>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.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;">
<img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">20.02.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_window_iterator_8cpp.xhtml','');});
/* @license-end */
</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="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">WindowIterator.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_window_iterator_8h_source.xhtml">arm_compute/core/WindowIterator.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tests_2_utils_8h_source.xhtml">tests/Utils.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_asserts_8h_source.xhtml">tests/framework/Asserts.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tests_2framework_2_macros_8h_source.xhtml">tests/framework/Macros.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_datasets_8h_source.xhtml">tests/framework/datasets/Datasets.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_validation_8h_source.xhtml">tests/validation/Validation.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="utils_2_type_printer_8h_source.xhtml">utils/TypePrinter.h</a>&quot;</code><br />
<code>#include &lt;stdexcept&gt;</code><br />
</div>
<p><a href="_window_iterator_8cpp_source.xhtml">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5bc92afd1e1c0d903d64367b86b1fd0f"><td class="memTemplParams" colspan="2">template&lt;typename Dim , typename... Dims&gt; </td></tr>
<tr class="memitem:a5bc92afd1e1c0d903d64367b86b1fd0f"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_window.xhtml">Window</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a> (Dim &amp;&amp;dim0, Dims &amp;&amp;... dims)</td></tr>
<tr class="separator:a5bc92afd1e1c0d903d64367b86b1fd0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8619d01d562aa6c1f6e47dee70ca18f3"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a8619d01d562aa6c1f6e47dee70ca18f3"><td class="memTemplItemLeft" align="right" valign="top">std::vector&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a> (std::initializer_list&lt; T &gt; list_objs)</td></tr>
<tr class="separator:a8619d01d562aa6c1f6e47dee70ca18f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd2ef152b1743c15de3f67238d0eac43"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_window_iterator_8cpp.xhtml#acd2ef152b1743c15de3f67238d0eac43">DATA_TEST_CASE</a> (WholeWindow, framework::DatasetMode::ALL, zip(framework::dataset::make(&quot;Window&quot;, { create_window(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(0, 1)), <a class="el" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 5, 2), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 5)), <a class="el" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(4, 16, 4), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 13, 5), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 3, 2)) }), framework::dataset::make(&quot;Expected&quot;, { create_vector({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(0, 0) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 3), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 3), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 4), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 4) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1) }) })), window, expected)</td></tr>
<tr class="separator:acd2ef152b1743c15de3f67238d0eac43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73168adf798e300ad06a0341c1c9bd59"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_window_iterator_8cpp.xhtml#a73168adf798e300ad06a0341c1c9bd59">DATA_TEST_CASE</a> (PartialWindow2D, framework::DatasetMode::ALL, zip(zip(zip(combine(framework::dataset::make(&quot;Window&quot;, create_window(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(4, 20, 4), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 32, 5), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 2, 1))), framework::dataset::make(&quot;Start&quot;, { 0, 1, 3, 2, 4 })), framework::dataset::make(&quot;End&quot;, { 0, 2, 5, 8, 7 })), framework::dataset::make(&quot;RowSize&quot;, { create_vector({ 4 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 4, 8, 8 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8, 16, 16, 16, 16, 4 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 16, 16, 16, 16 }), })), framework::dataset::make(&quot;Expected&quot;, { create_vector({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 13, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1) }) })), window, start, end, expected_row_size, expected)</td></tr>
<tr class="separator:a73168adf798e300ad06a0341c1c9bd59"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a8619d01d562aa6c1f6e47dee70ca18f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8619d01d562aa6c1f6e47dee70ca18f3">&#9670;&nbsp;</a></span>create_vector()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::vector&lt;T&gt; create_vector </td>
<td>(</td>
<td class="paramtype">std::initializer_list&lt; T &gt;&#160;</td>
<td class="paramname"><em>list_objs</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_window_iterator_8cpp_source.xhtml#l00054">54</a> of file <a class="el" href="_window_iterator_8cpp_source.xhtml">WindowIterator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;{</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; std::vector&lt;T&gt; vec_objs;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> it : list_objs)</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; {</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; vec_objs.push_back(it);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordflow">return</span> vec_objs;</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a5bc92afd1e1c0d903d64367b86b1fd0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bc92afd1e1c0d903d64367b86b1fd0f">&#9670;&nbsp;</a></span>create_window()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarm__compute_1_1_window.xhtml">Window</a> create_window </td>
<td>(</td>
<td class="paramtype">Dim &amp;&amp;&#160;</td>
<td class="paramname"><em>dim0</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">Dims &amp;&amp;...&#160;</td>
<td class="paramname"><em>dims</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_window_iterator_8cpp_source.xhtml#l00042">42</a> of file <a class="el" href="_window_iterator_8cpp_source.xhtml">WindowIterator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;{</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="classarm__compute_1_1_window.xhtml">Window</a> win;</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keyword">const</span> std::array &lt; Dim, 1 + <span class="keyword">sizeof</span>...(Dims) &gt; dimensions{ { dim0, std::forward&lt;Dims&gt;(dims)... } };</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordflow">for</span>(<span class="keywordtype">size_t</span> i = 0; i &lt; dimensions.size(); i++)</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; {</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; win.<a class="code" href="classarm__compute_1_1_window.xhtml#acd3d2bba51cb84d34dd7656ad2375a6e">set</a>(i, dimensions[i]);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; }</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordflow">return</span> win;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_window_xhtml_acd3d2bba51cb84d34dd7656ad2375a6e"><div class="ttname"><a href="classarm__compute_1_1_window.xhtml#acd3d2bba51cb84d34dd7656ad2375a6e">arm_compute::Window::set</a></div><div class="ttdeci">void set(size_t dimension, const Dimension &amp;dim)</div><div class="ttdoc">Set the values of a given dimension.</div><div class="ttdef"><b>Definition:</b> <a href="_window_8inl_source.xhtml#l00049">Window.inl:49</a></div></div>
<div class="ttc" id="classarm__compute_1_1_window_xhtml"><div class="ttname"><a href="classarm__compute_1_1_window.xhtml">arm_compute::Window</a></div><div class="ttdoc">Describe a multidimensional execution window.</div><div class="ttdef"><b>Definition:</b> <a href="_window_8h_source.xhtml#l00039">Window.h:39</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_window_8inl_source.xhtml#l00049">Window::set()</a>.</p>
<p class="reference">Referenced by <a class="el" href="_window_iterator_8cpp_source.xhtml#l00064">DATA_TEST_CASE()</a>.</p>
</div>
</div>
<a id="acd2ef152b1743c15de3f67238d0eac43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd2ef152b1743c15de3f67238d0eac43">&#9670;&nbsp;</a></span>DATA_TEST_CASE() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DATA_TEST_CASE </td>
<td>(</td>
<td class="paramtype">WholeWindow&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">framework::DatasetMode::ALL&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">zip(framework::dataset::make(&quot;Window&quot;, { create_window(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(0, 1)), <a class="el" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 5, 2), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 5)), <a class="el" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(4, 16, 4), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 13, 5), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 3, 2)) }), framework::dataset::make(&quot;Expected&quot;, { create_vector({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(0, 0) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 3), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 3), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 4), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 4) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1) }) }))&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">window&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">expected&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_window_iterator_8cpp_source.xhtml#l00064">64</a> of file <a class="el" href="_window_iterator_8cpp_source.xhtml">WindowIterator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; { <a class="code" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(0, 1)),</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 5, 2), <a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 5)),</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a>(<a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(4, 16, 4), <a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 13, 5), <a class="code" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 3, 2))</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; }),</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">&quot;Expected&quot;</span>, { <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(0, 0) }),</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 3), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 3), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(1, 4), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(3, 4) }),</div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1) })</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; })),</div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; window, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>)</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;{</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">int</span> row_size = 0;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <a class="code" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> window_shape = window.shape();</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> start_offset = <a class="code" href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">index2coords</a>(window_shape, 0);</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> end_offset = <a class="code" href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">index2coords</a>(window_shape, window.num_iterations_total() - 1);</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; <span class="keyword">auto</span> window_iterator = <a class="code" href="namespacearm__compute.xhtml#aaf5f536bf7ec25ff83b912badcf61405">create_window_iterator</a>(window, start_offset, end_offset, [&amp;](<span class="keyword">const</span> <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp; <span class="keywordtype">id</span>)</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(row_size, (window[0].end() - window[0].start()), framework::LogLevel::ERRORS);</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="_asserts_8h.xhtml#a83bf33add9b97f6897b7b3db2766dd27">ARM_COMPUTE_ASSERT</a>(i &lt; <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>.size());</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> expected_coords = <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>[i++];</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="comment">//Set number of dimensions to the maximum (To match the number of dimensions used by the id passed to the lambda function)</span></div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; expected_coords.set_num_dimensions(Coordinates::num_max_dimensions);</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(<span class="keywordtype">id</span>, expected_coords, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; });</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; window_iterator.iterate_3D([&amp;](<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> end)</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; {</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(window[0].start(), start, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(window[0].end(), end, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <a class="code" href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a>(end &gt; start, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; row_size = end - start;</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; });</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(i, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>.size(), framework::LogLevel::ERRORS);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarm__compute_1_1_tensor_shape.xhtml">arm_compute::TensorShape</a></div><div class="ttdoc">Shape of a tensor.</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_shape_8h_source.xhtml#l00039">TensorShape.h:39</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad34f2150f1c9f8a3ecb7298162124e5d"><div class="ttname"><a href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">arm_compute::index2coords</a></div><div class="ttdeci">Coordinates index2coords(const TensorShape &amp;shape, int index)</div><div class="ttdoc">Convert a linear index into n-dimensional coordinates.</div><div class="ttdef"><b>Definition:</b> <a href="_helpers_8inl_source.xhtml#l00290">Helpers.inl:290</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_aa6e67bddae371a5731f6d4002e787299"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">arm_compute::test::validation::expected</a></div><div class="ttdeci">expected</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_batch_normalization_layer_8cpp_source.xhtml#l00197">BatchNormalizationLayer.cpp:197</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_aaf5f536bf7ec25ff83b912badcf61405"><div class="ttname"><a href="namespacearm__compute.xhtml#aaf5f536bf7ec25ff83b912badcf61405">arm_compute::create_window_iterator</a></div><div class="ttdeci">WindowIterator&lt; L &gt; create_window_iterator(const Window &amp;w, const Coordinates &amp;start, const Coordinates &amp;end, L &amp;&amp;lambda_function)</div><div class="ttdoc">Create a WindowIterator object.</div><div class="ttdef"><b>Definition:</b> <a href="_window_iterator_8h_source.xhtml#l00326">WindowIterator.h:326</a></div></div>
<div class="ttc" id="classarm__compute_1_1_window_1_1_dimension_xhtml"><div class="ttname"><a href="classarm__compute_1_1_window_1_1_dimension.xhtml">arm_compute::Window::Dimension</a></div><div class="ttdoc">Describe one of the image's dimensions with a start, end and step.</div><div class="ttdef"><b>Definition:</b> <a href="_window_8h_source.xhtml#l00075">Window.h:75</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_1_1dataset_xhtml_a352791fb808d42a82ad70df5efa3508b"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">arm_compute::test::framework::dataset::make</a></div><div class="ttdeci">std::enable_if&lt; is_container&lt; T &gt;::value, ContainerDataset&lt; T &gt; &gt;::type make(std::string name, T &amp;&amp;values)</div><div class="ttdoc">Helper function to create a ContainerDataset.</div><div class="ttdef"><b>Definition:</b> <a href="_container_dataset_8h_source.xhtml#l00161">ContainerDataset.h:161</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_ac057d80e0c27881ee453299d98a878f4"><div class="ttname"><a href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a></div><div class="ttdeci">#define ARM_COMPUTE_EXPECT_EQUAL(X, Y, LEVEL)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00104">Asserts.h:104</a></div></div>
<div class="ttc" id="classarm__compute_1_1_coordinates_xhtml"><div class="ttname"><a href="classarm__compute_1_1_coordinates.xhtml">arm_compute::Coordinates</a></div><div class="ttdoc">Coordinates of an item.</div><div class="ttdef"><b>Definition:</b> <a href="_coordinates_8h_source.xhtml#l00037">Coordinates.h:37</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_a83bf33add9b97f6897b7b3db2766dd27"><div class="ttname"><a href="_asserts_8h.xhtml#a83bf33add9b97f6897b7b3db2766dd27">ARM_COMPUTE_ASSERT</a></div><div class="ttdeci">#define ARM_COMPUTE_ASSERT(X)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00110">Asserts.h:110</a></div></div>
<div class="ttc" id="_window_iterator_8cpp_xhtml_a8619d01d562aa6c1f6e47dee70ca18f3"><div class="ttname"><a href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a></div><div class="ttdeci">std::vector&lt; T &gt; create_vector(std::initializer_list&lt; T &gt; list_objs)</div><div class="ttdef"><b>Definition:</b> <a href="_window_iterator_8cpp_source.xhtml#l00054">WindowIterator.cpp:54</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_adc60af942e951dc93e22b97b41809b51"><div class="ttname"><a href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a></div><div class="ttdeci">#define ARM_COMPUTE_EXPECT(X, LEVEL)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00124">Asserts.h:124</a></div></div>
<div class="ttc" id="_window_iterator_8cpp_xhtml_a5bc92afd1e1c0d903d64367b86b1fd0f"><div class="ttname"><a href="_window_iterator_8cpp.xhtml#a5bc92afd1e1c0d903d64367b86b1fd0f">create_window</a></div><div class="ttdeci">Window create_window(Dim &amp;&amp;dim0, Dims &amp;&amp;... dims)</div><div class="ttdef"><b>Definition:</b> <a href="_window_iterator_8cpp_source.xhtml#l00042">WindowIterator.cpp:42</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="_window_iterator_8cpp_source.xhtml#l00042">create_window()</a>.</p>
</div>
</div>
<a id="a73168adf798e300ad06a0341c1c9bd59"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73168adf798e300ad06a0341c1c9bd59">&#9670;&nbsp;</a></span>DATA_TEST_CASE() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">DATA_TEST_CASE </td>
<td>(</td>
<td class="paramtype">PartialWindow2D&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">framework::DatasetMode::ALL&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">zip(zip(zip(combine(framework::dataset::make(&quot;Window&quot;, create_window(<a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(4, 20, 4), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(3, 32, 5), <a class="el" href="classarm__compute_1_1_window_1_1_dimension.xhtml">Window::Dimension</a>(1, 2, 1))), framework::dataset::make(&quot;Start&quot;, { 0, 1, 3, 2, 4 })), framework::dataset::make(&quot;End&quot;, { 0, 2, 5, 8, 7 })), framework::dataset::make(&quot;RowSize&quot;,{ create_vector({ 4 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 4, 8, 8 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8, 16, 16, 16, 16, 4 }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 16, 16, 16, 16 }),})), framework::dataset::make(&quot;Expected&quot;, { create_vector({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 13, 1) }), <a class="el" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="el" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1) }) }))&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">window&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">start&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">end&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">expected_row_size&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">expected&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="_window_iterator_8cpp_source.xhtml#l00098">98</a> of file <a class="el" href="_window_iterator_8cpp_source.xhtml">WindowIterator.cpp</a>.</p>
<div class="fragment"><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; { 0, 1, 3, 2, 4 })),</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">&quot;End&quot;</span>, { 0, 2, 5, 8, 7 })),</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">&quot;RowSize&quot;</span>,</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;{</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 4 }),</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8 }),</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 4, 8, 8 }),</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 8, 8, 16, 16, 16, 16, 4 }),</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ 16, 16, 16, 16 }),</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;})),</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">&quot;Expected&quot;</span>, { <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 3, 1) }), <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1) }), <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1) }), <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 3, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 13, 1) }), <a class="code" href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a>({ <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(4, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(8, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(12, 8, 1), <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a>(16, 8, 1) }) })),</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;window, start, end, expected_row_size, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>)</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;{</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = 0;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordtype">int</span> row_size = 0;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="classarm__compute_1_1_tensor_shape.xhtml">TensorShape</a> window_shape = window.shape();</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> start_offset = <a class="code" href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">index2coords</a>(window_shape, start);</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> end_offset = <a class="code" href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">index2coords</a>(window_shape, end);</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">auto</span> window_iterator = <a class="code" href="namespacearm__compute.xhtml#aaf5f536bf7ec25ff83b912badcf61405">create_window_iterator</a>(window, start_offset, end_offset, [&amp;](<span class="keyword">const</span> <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> &amp; <span class="keywordtype">id</span>)</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; {</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="_asserts_8h.xhtml#a83bf33add9b97f6897b7b3db2766dd27">ARM_COMPUTE_ASSERT</a>(i &lt; <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>.size());</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(expected_row_size[i], row_size, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <a class="code" href="classarm__compute_1_1_coordinates.xhtml">Coordinates</a> expected_coords = <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>[i++];</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="comment">//Set number of dimensions to the maximum (To match the number of dimensions used by the id passed to the lambda function)</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; expected_coords.<a class="code" href="classarm__compute_1_1_dimensions.xhtml#a810a78f0b7cc0270f38d4136e023ea3b">set_num_dimensions</a>(Coordinates::num_max_dimensions);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(<span class="keywordtype">id</span>, expected_coords, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; });</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; window_iterator.iterate_3D([&amp;](<span class="keywordtype">int</span> start, <span class="keywordtype">int</span> end)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a>(start &gt;= window[0].start(), framework::LogLevel::ERRORS);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a>(end &lt;= window[0].end(), framework::LogLevel::ERRORS);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <a class="code" href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a>(end &gt; start, framework::LogLevel::ERRORS);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; row_size = end - start;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; });</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <a class="code" href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a>(i, <a class="code" href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">expected</a>.size(), framework::LogLevel::ERRORS);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_tensor_shape_xhtml"><div class="ttname"><a href="classarm__compute_1_1_tensor_shape.xhtml">arm_compute::TensorShape</a></div><div class="ttdoc">Shape of a tensor.</div><div class="ttdef"><b>Definition:</b> <a href="_tensor_shape_8h_source.xhtml#l00039">TensorShape.h:39</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad34f2150f1c9f8a3ecb7298162124e5d"><div class="ttname"><a href="namespacearm__compute.xhtml#ad34f2150f1c9f8a3ecb7298162124e5d">arm_compute::index2coords</a></div><div class="ttdeci">Coordinates index2coords(const TensorShape &amp;shape, int index)</div><div class="ttdoc">Convert a linear index into n-dimensional coordinates.</div><div class="ttdef"><b>Definition:</b> <a href="_helpers_8inl_source.xhtml#l00290">Helpers.inl:290</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1validation_xhtml_aa6e67bddae371a5731f6d4002e787299"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1validation.xhtml#aa6e67bddae371a5731f6d4002e787299">arm_compute::test::validation::expected</a></div><div class="ttdeci">expected</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_2_batch_normalization_layer_8cpp_source.xhtml#l00197">BatchNormalizationLayer.cpp:197</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_aaf5f536bf7ec25ff83b912badcf61405"><div class="ttname"><a href="namespacearm__compute.xhtml#aaf5f536bf7ec25ff83b912badcf61405">arm_compute::create_window_iterator</a></div><div class="ttdeci">WindowIterator&lt; L &gt; create_window_iterator(const Window &amp;w, const Coordinates &amp;start, const Coordinates &amp;end, L &amp;&amp;lambda_function)</div><div class="ttdoc">Create a WindowIterator object.</div><div class="ttdef"><b>Definition:</b> <a href="_window_iterator_8h_source.xhtml#l00326">WindowIterator.h:326</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_1_1dataset_xhtml_a352791fb808d42a82ad70df5efa3508b"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">arm_compute::test::framework::dataset::make</a></div><div class="ttdeci">std::enable_if&lt; is_container&lt; T &gt;::value, ContainerDataset&lt; T &gt; &gt;::type make(std::string name, T &amp;&amp;values)</div><div class="ttdoc">Helper function to create a ContainerDataset.</div><div class="ttdef"><b>Definition:</b> <a href="_container_dataset_8h_source.xhtml#l00161">ContainerDataset.h:161</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_ac057d80e0c27881ee453299d98a878f4"><div class="ttname"><a href="_asserts_8h.xhtml#ac057d80e0c27881ee453299d98a878f4">ARM_COMPUTE_EXPECT_EQUAL</a></div><div class="ttdeci">#define ARM_COMPUTE_EXPECT_EQUAL(X, Y, LEVEL)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00104">Asserts.h:104</a></div></div>
<div class="ttc" id="classarm__compute_1_1_coordinates_xhtml"><div class="ttname"><a href="classarm__compute_1_1_coordinates.xhtml">arm_compute::Coordinates</a></div><div class="ttdoc">Coordinates of an item.</div><div class="ttdef"><b>Definition:</b> <a href="_coordinates_8h_source.xhtml#l00037">Coordinates.h:37</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_a83bf33add9b97f6897b7b3db2766dd27"><div class="ttname"><a href="_asserts_8h.xhtml#a83bf33add9b97f6897b7b3db2766dd27">ARM_COMPUTE_ASSERT</a></div><div class="ttdeci">#define ARM_COMPUTE_ASSERT(X)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00110">Asserts.h:110</a></div></div>
<div class="ttc" id="_window_iterator_8cpp_xhtml_a8619d01d562aa6c1f6e47dee70ca18f3"><div class="ttname"><a href="_window_iterator_8cpp.xhtml#a8619d01d562aa6c1f6e47dee70ca18f3">create_vector</a></div><div class="ttdeci">std::vector&lt; T &gt; create_vector(std::initializer_list&lt; T &gt; list_objs)</div><div class="ttdef"><b>Definition:</b> <a href="_window_iterator_8cpp_source.xhtml#l00054">WindowIterator.cpp:54</a></div></div>
<div class="ttc" id="_asserts_8h_xhtml_adc60af942e951dc93e22b97b41809b51"><div class="ttname"><a href="_asserts_8h.xhtml#adc60af942e951dc93e22b97b41809b51">ARM_COMPUTE_EXPECT</a></div><div class="ttdeci">#define ARM_COMPUTE_EXPECT(X, LEVEL)</div><div class="ttdef"><b>Definition:</b> <a href="_asserts_8h_source.xhtml#l00124">Asserts.h:124</a></div></div>
<div class="ttc" id="classarm__compute_1_1_dimensions_xhtml_a810a78f0b7cc0270f38d4136e023ea3b"><div class="ttname"><a href="classarm__compute_1_1_dimensions.xhtml#a810a78f0b7cc0270f38d4136e023ea3b">arm_compute::Dimensions::set_num_dimensions</a></div><div class="ttdeci">void set_num_dimensions(size_t num_dimensions)</div><div class="ttdoc">Set number of dimensions.</div><div class="ttdef"><b>Definition:</b> <a href="_dimensions_8h_source.xhtml#l00128">Dimensions.h:128</a></div></div>
</div><!-- fragment -->
</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_59425e443f801f1f2fd8bbe4959a3ccf.xhtml">tests</a></li><li class="navelem"><a class="el" href="dir_e7c7b16542faa38cb4655ff1750d3604.xhtml">validation</a></li><li class="navelem"><a class="el" href="dir_0c108762cda89b68d4571cbbabdf46df.xhtml">UNIT</a></li><li class="navelem"><a class="el" href="_window_iterator_8cpp.xhtml">WindowIterator.cpp</a></li>
<li class="footer">Generated on Thu Mar 5 2020 16:07:08 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
</ul>
</div>
</body>
</html>