<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Compute Library
-  <span id="projectnumber">18.03</span>
+  <span id="projectnumber">18.05</span>
</div>
</td>
</tr>
<div class="title">Scale.cpp</div> </div>
</div><!--header-->
<div class="contents">
-<a href="benchmark_2_c_l_2_scale_8cpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017 ARM Limited.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * of this software and associated documentation files (the "Software"), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * deal in the Software without restriction, including without limitation the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * sell copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="_tensor_shape_8h.xhtml">arm_compute/core/TensorShape.h</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="arm__compute_2core_2_types_8h.xhtml">arm_compute/core/Types.h</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="_c_l_tensor_8h.xhtml">arm_compute/runtime/CL/CLTensor.h</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="_c_l_tensor_allocator_8h.xhtml">arm_compute/runtime/CL/CLTensorAllocator.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="_c_l_scale_8h.xhtml">arm_compute/runtime/CL/functions/CLScale.h</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="_c_l_accessor_8h.xhtml">tests/CL/CLAccessor.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "<a class="code" href="benchmark_2fixtures_2_scale_fixture_8h.xhtml">tests/benchmark/fixtures/ScaleFixture.h</a>"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "<a class="code" href="_border_mode_dataset_8h.xhtml">tests/datasets/BorderModeDataset.h</a>"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "<a class="code" href="_sampling_policy_dataset_8h.xhtml">tests/datasets/SamplingPolicyDataset.h</a>"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_shape_datasets_8h.xhtml">tests/datasets/ShapeDatasets.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="tests_2framework_2_macros_8h.xhtml">tests/framework/Macros.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="_datasets_8h.xhtml">tests/framework/datasets/Datasets.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="_type_printer_8h.xhtml">utils/TypePrinter.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span><a class="code" href="namespacearm__compute.xhtml">arm_compute</a></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">namespace </span>test</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>benchmark</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">namespace</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">const</span> <span class="keyword">auto</span> interpolation_types = <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"InterpolationPolicy"</span>, { <a class="code" href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9a7f5ccbc3d30c2cd3fd04d567946cbde2">InterpolationPolicy::NEAREST_NEIGHBOR</a>, <a class="code" href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9aad6fddf718ad19b063e02fdd7e8e3e65">InterpolationPolicy::BILINEAR</a> });</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> } <span class="comment">// namespace</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b"> 49</a></span> <span class="keyword">using</span> <a class="code" href="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture.xhtml">CLScaleFixture</a> = <a class="code" href="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture.xhtml">ScaleFixture<CLTensor, CLScale, CLAccessor></a>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#acd09bed517e43d28823e69494f259835">TEST_SUITE</a>(CL)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#acd09bed517e43d28823e69494f259835">TEST_SUITE</a>(Scale)</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a785883955ec28a4da99cfb87d75dfa8e">REGISTER_FIXTURE_DATA_TEST_CASE</a>(RunSmall, <a class="code" href="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture.xhtml">CLScaleFixture</a>, framework::<a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cf">DatasetMode</a>::PRECOMMIT, <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(datasets::SmallImageShapes(), framework::dataset::<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">make</a>("<a class="code" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>", { <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">DataType::F16</a>, <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a> })),</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  interpolation_types),</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="classarm__compute_1_1test_1_1datasets_1_1_border_modes.xhtml">datasets::BorderModes</a>()),</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="classarm__compute_1_1test_1_1datasets_1_1_sampling_policies.xhtml">datasets::SamplingPolicies</a>()));</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a785883955ec28a4da99cfb87d75dfa8e">REGISTER_FIXTURE_DATA_TEST_CASE</a>(RunLarge, <a class="code" href="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture.xhtml">CLScaleFixture</a>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfad791cd54143e331164a2b216451a5dd3">framework::DatasetMode::NIGHTLY</a>, <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="classarm__compute_1_1test_1_1datasets_1_1_large_image_shapes.xhtml">datasets::LargeImageShapes</a>(), <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"DataType"</span>, { <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">DataType::F16</a>, <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a> })),</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  interpolation_types),</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="classarm__compute_1_1test_1_1datasets_1_1_border_modes.xhtml">datasets::BorderModes</a>()),</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="classarm__compute_1_1test_1_1datasets_1_1_sampling_policies.xhtml">datasets::SamplingPolicies</a>()));</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#a603cb7f45efd81606e51686da9aeebd9">TEST_SUITE_END</a>() <span class="comment">// Scale</span></div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#a603cb7f45efd81606e51686da9aeebd9">TEST_SUITE_END</a>() <span class="comment">// CL</span></div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> } <span class="comment">// namespace benchmark</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> } <span class="comment">// namespace test</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> } <span class="comment">// namespace arm_compute</span></div><div class="ttc" id="_shape_datasets_8h_xhtml"><div class="ttname"><a href="_shape_datasets_8h.xhtml">ShapeDatasets.h</a></div></div>
-<div class="ttc" id="_c_l_tensor_8h_xhtml"><div class="ttname"><a href="_c_l_tensor_8h.xhtml">CLTensor.h</a></div></div>
+<a href="benchmark_2_c_l_2_scale_8cpp.xhtml">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017-2018 ARM Limited.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * of this software and associated documentation files (the "Software"), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * deal in the Software without restriction, including without limitation the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * sell copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "<a class="code" href="_tensor_shape_8h.xhtml">arm_compute/core/TensorShape.h</a>"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="arm__compute_2core_2_types_8h.xhtml">arm_compute/core/Types.h</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "<a class="code" href="_c_l_tensor_8h.xhtml">arm_compute/runtime/CL/CLTensor.h</a>"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "<a class="code" href="_c_l_tensor_allocator_8h.xhtml">arm_compute/runtime/CL/CLTensorAllocator.h</a>"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "<a class="code" href="_c_l_scale_8h.xhtml">arm_compute/runtime/CL/functions/CLScale.h</a>"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include "<a class="code" href="_c_l_accessor_8h.xhtml">tests/CL/CLAccessor.h</a>"</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include "tests/benchmark/fixtures/ScaleFixture.h"</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include "tests/datasets/BorderModeDataset.h"</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include "tests/datasets/SamplingPolicyDataset.h"</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "tests/datasets/ShapeDatasets.h"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include "<a class="code" href="tests_2framework_2_macros_8h.xhtml">tests/framework/Macros.h</a>"</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="preprocessor">#include "<a class="code" href="_datasets_8h.xhtml">tests/framework/datasets/Datasets.h</a>"</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="utils_2_type_printer_8h.xhtml">utils/TypePrinter.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> </div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span><a class="code" href="namespacearm__compute.xhtml">arm_compute</a></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">namespace </span>test</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">namespace </span>benchmark</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> {</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">namespace</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> {</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">const</span> <span class="keyword">auto</span> interpolation_types = <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"InterpolationPolicy"</span>, { <a class="code" href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9a7f5ccbc3d30c2cd3fd04d567946cbde2">InterpolationPolicy::NEAREST_NEIGHBOR</a>, <a class="code" href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9aad6fddf718ad19b063e02fdd7e8e3e65">InterpolationPolicy::BILINEAR</a> });</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> } <span class="comment">// namespace</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b"> 49</a></span> <span class="keyword">using</span> <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b">CLScaleFixture</a> = ScaleFixture<CLTensor, CLScale, CLAccessor>;</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> </div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#acd09bed517e43d28823e69494f259835">TEST_SUITE</a>(CL)</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#acd09bed517e43d28823e69494f259835">TEST_SUITE</a>(Scale)</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a544fd26c293d1af74453a3957473072c">REGISTER_FIXTURE_DATA_TEST_CASE</a>(RunSmall, <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b">CLScaleFixture</a>, framework::<a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cf">DatasetMode</a>::PRECOMMIT, <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(datasets::SmallImageShapes(), framework::dataset::<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">make</a>("<a class="code" href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">DataType</a>", { <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">DataType::F16</a>, <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a> })),</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"DataLayout"</span>, { <a class="code" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a> })),</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  interpolation_types),</div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  datasets::BorderModes()),</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  datasets::SamplingPolicies()));</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a544fd26c293d1af74453a3957473072c">REGISTER_FIXTURE_DATA_TEST_CASE</a>(RunLarge, <a class="code" href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b">CLScaleFixture</a>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfad791cd54143e331164a2b216451a5dd3">framework::DatasetMode::NIGHTLY</a>, <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(<a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">combine</a>(datasets::LargeImageShapes(), <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"DataType"</span>, { <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">DataType::F16</a>, <a class="code" href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">DataType::F32</a> })),</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a352791fb808d42a82ad70df5efa3508b">framework::dataset::make</a>(<span class="stringliteral">"DataLayout"</span>, { <a class="code" href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">DataLayout::NCHW</a> })),</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  interpolation_types),</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  datasets::BorderModes()),</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  datasets::SamplingPolicies()));</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#a603cb7f45efd81606e51686da9aeebd9">TEST_SUITE_END</a>() <span class="comment">// Scale</span></div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <a class="code" href="tests_2framework_2_macros_8h.xhtml#a603cb7f45efd81606e51686da9aeebd9">TEST_SUITE_END</a>() <span class="comment">// CL</span></div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> } <span class="comment">// namespace benchmark</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> } <span class="comment">// namespace test</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> } <span class="comment">// namespace arm_compute</span></div><div class="ttc" id="_c_l_tensor_8h_xhtml"><div class="ttname"><a href="_c_l_tensor_8h.xhtml">CLTensor.h</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a44ad4ef5a76e6aa6fb3e3fa079a54fda">arm_compute::Format::F32</a></div><div class="ttdoc">1 channel, 1 F32 per channel </div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a966a9c417ce5e94dca08d9b5e745c0c9aad6fddf718ad19b063e02fdd7e8e3e65"><div class="ttname"><a href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9aad6fddf718ad19b063e02fdd7e8e3e65">arm_compute::InterpolationPolicy::BILINEAR</a></div><div class="ttdoc">Output values are defined by bilinear interpolation between the pixels. </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< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&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#l00141">ContainerDataset.h:141</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< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&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#l00160">ContainerDataset.h:160</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a966a9c417ce5e94dca08d9b5e745c0c9a7f5ccbc3d30c2cd3fd04d567946cbde2"><div class="ttname"><a href="namespacearm__compute.xhtml#a966a9c417ce5e94dca08d9b5e745c0c9a7f5ccbc3d30c2cd3fd04d567946cbde2">arm_compute::InterpolationPolicy::NEAREST_NEIGHBOR</a></div><div class="ttdoc">Output values are defined to match the source pixel whose center is nearest to the sample position...</div></div>
+<div class="ttc" id="namespacearm__compute_1_1test_1_1benchmark_xhtml_aa3b2039094c0b6ad71ddcc7cbee9033b"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1benchmark.xhtml#aa3b2039094c0b6ad71ddcc7cbee9033b">arm_compute::test::benchmark::CLScaleFixture</a></div><div class="ttdeci">ScaleFixture< CLTensor, CLScale, CLAccessor > CLScaleFixture</div><div class="ttdef"><b>Definition:</b> <a href="benchmark_2_c_l_2_scale_8cpp_source.xhtml#l00049">Scale.cpp:49</a></div></div>
<div class="ttc" id="_c_l_accessor_8h_xhtml"><div class="ttname"><a href="_c_l_accessor_8h.xhtml">CLAccessor.h</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml"><div class="ttname"><a href="namespacearm__compute.xhtml">arm_compute</a></div><div class="ttdoc">This file contains all available output stages for GEMMLowp on OpenCL. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00001">00_introduction.dox:1</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94"><div class="ttname"><a href="namespacearm__compute.xhtml#ab4e88c89b3b7ea1735996cc4def22d58a56d8353718e6fdc78b8d69078a2cdb94">arm_compute::Format::F16</a></div><div class="ttdoc">1 channel, 1 F16 per channel </div></div>
<div class="ttc" id="tests_2framework_2_macros_8h_xhtml_acd09bed517e43d28823e69494f259835"><div class="ttname"><a href="tests_2framework_2_macros_8h.xhtml#acd09bed517e43d28823e69494f259835">TEST_SUITE</a></div><div class="ttdeci">#define TEST_SUITE(SUITE_NAME)</div><div class="ttdef"><b>Definition:</b> <a href="tests_2framework_2_macros_8h_source.xhtml#l00034">Macros.h:34</a></div></div>
<div class="ttc" id="_c_l_tensor_allocator_8h_xhtml"><div class="ttname"><a href="_c_l_tensor_allocator_8h.xhtml">CLTensorAllocator.h</a></div></div>
-<div class="ttc" id="benchmark_2fixtures_2_scale_fixture_8h_xhtml"><div class="ttname"><a href="benchmark_2fixtures_2_scale_fixture_8h.xhtml">ScaleFixture.h</a></div></div>
-<div class="ttc" id="classarm__compute_1_1test_1_1datasets_1_1_large_image_shapes_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1datasets_1_1_large_image_shapes.xhtml">arm_compute::test::datasets::LargeImageShapes</a></div><div class="ttdoc">Data set containing 2D tensor shapes relative to an image size. </div><div class="ttdef"><b>Definition:</b> <a href="_shape_datasets_8h_source.xhtml#l00511">ShapeDatasets.h:511</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_xhtml_a7edf31944a6144ffd493d2f9a7bfb5cf"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cf">arm_compute::test::framework::DatasetMode</a></div><div class="ttdeci">DatasetMode</div><div class="ttdoc">Possible dataset modes. </div><div class="ttdef"><b>Definition:</b> <a href="_dataset_modes_8h_source.xhtml#l00040">DatasetModes.h:40</a></div></div>
-<div class="ttc" id="namespacearm__compute_1_1test_1_1benchmark_xhtml_a785883955ec28a4da99cfb87d75dfa8e"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a785883955ec28a4da99cfb87d75dfa8e">arm_compute::test::benchmark::REGISTER_FIXTURE_DATA_TEST_CASE</a></div><div class="ttdeci">REGISTER_FIXTURE_DATA_TEST_CASE(RunSmall, CLDepthConcatenateLayerFixture, framework::DatasetMode::PRECOMMIT, framework::dataset::combine(datasets::Small2DShapes(), data_types))</div></div>
<div class="ttc" id="_datasets_8h_xhtml"><div class="ttname"><a href="_datasets_8h.xhtml">Datasets.h</a></div></div>
-<div class="ttc" id="_type_printer_8h_xhtml"><div class="ttname"><a href="_type_printer_8h.xhtml">TypePrinter.h</a></div></div>
+<div class="ttc" id="utils_2_type_printer_8h_xhtml"><div class="ttname"><a href="utils_2_type_printer_8h.xhtml">TypePrinter.h</a></div></div>
<div class="ttc" id="_c_l_scale_8h_xhtml"><div class="ttname"><a href="_c_l_scale_8h.xhtml">CLScale.h</a></div></div>
-<div class="ttc" id="classarm__compute_1_1test_1_1datasets_1_1_sampling_policies_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1datasets_1_1_sampling_policies.xhtml">arm_compute::test::datasets::SamplingPolicies</a></div><div class="ttdef"><b>Definition:</b> <a href="_sampling_policy_dataset_8h_source.xhtml#l00035">SamplingPolicyDataset.h:35</a></div></div>
-<div class="ttc" id="classarm__compute_1_1test_1_1datasets_1_1_border_modes_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1datasets_1_1_border_modes.xhtml">arm_compute::test::datasets::BorderModes</a></div><div class="ttdef"><b>Definition:</b> <a href="_border_mode_dataset_8h_source.xhtml#l00045">BorderModeDataset.h:45</a></div></div>
+<div class="ttc" id="namespacearm__compute_1_1test_1_1benchmark_xhtml_a544fd26c293d1af74453a3957473072c"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1benchmark.xhtml#a544fd26c293d1af74453a3957473072c">arm_compute::test::benchmark::REGISTER_FIXTURE_DATA_TEST_CASE</a></div><div class="ttdeci">REGISTER_FIXTURE_DATA_TEST_CASE(MobileNetBatchNormalizationLayer, CLBatchNormalizationLayerFixture, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(datasets::MobileNetBatchNormalizationLayerDataset(), combine(framework::dataset::make("UseGamma",{false, true}), framework::dataset::make("UseBeta",{false, true}))), framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::BOUNDED_RELU, 6.f))), data_types), framework::dataset::make("DataLayout",{DataLayout::NCHW, DataLayout::NHWC})), framework::dataset::make("Batches", 1)))</div></div>
<div class="ttc" id="tests_2framework_2_macros_8h_xhtml"><div class="ttname"><a href="tests_2framework_2_macros_8h.xhtml">Macros.h</a></div></div>
-<div class="ttc" id="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1benchmark_1_1_scale_fixture.xhtml">arm_compute::test::benchmark::ScaleFixture</a></div><div class="ttdef"><b>Definition:</b> <a href="benchmark_2fixtures_2_scale_fixture_8h_source.xhtml#l00040">ScaleFixture.h:40</a></div></div>
-<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_1_1dataset_xhtml_a6f4fa4bb0583f29e77138fb1e7d77411"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">arm_compute::test::framework::dataset::combine</a></div><div class="ttdeci">CartesianProductDataset< T, U > combine(T &&dataset1, U &&dataset2)</div><div class="ttdoc">Helper function to create a CartesianProductDataset. </div><div class="ttdef"><b>Definition:</b> <a href="_cartesian_product_dataset_8h_source.xhtml#l00157">CartesianProductDataset.h:157</a></div></div>
-<div class="ttc" id="_border_mode_dataset_8h_xhtml"><div class="ttname"><a href="_border_mode_dataset_8h.xhtml">BorderModeDataset.h</a></div></div>
+<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_1_1dataset_xhtml_a6f4fa4bb0583f29e77138fb1e7d77411"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework_1_1dataset.xhtml#a6f4fa4bb0583f29e77138fb1e7d77411">arm_compute::test::framework::dataset::combine</a></div><div class="ttdeci">CartesianProductDataset< T, U > combine(T &&dataset1, U &&dataset2)</div><div class="ttdoc">Helper function to create a CartesianProductDataset. </div><div class="ttdef"><b>Definition:</b> <a href="_cartesian_product_dataset_8h_source.xhtml#l00180">CartesianProductDataset.h:180</a></div></div>
+<div class="ttc" id="namespacearm__compute_xhtml_ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f"><div class="ttname"><a href="namespacearm__compute.xhtml#ad1d5cce2d9e9a5d61c243e5c989112e0a6b99f356fe3b30a2a850b5ea897c289f">arm_compute::DataLayout::NCHW</a></div><div class="ttdoc">Num samples, channels, height, width. </div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_xhtml_a7edf31944a6144ffd493d2f9a7bfb5cfad791cd54143e331164a2b216451a5dd3"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfad791cd54143e331164a2b216451a5dd3">arm_compute::test::framework::DatasetMode::NIGHTLY</a></div></div>
-<div class="ttc" id="_sampling_policy_dataset_8h_xhtml"><div class="ttname"><a href="_sampling_policy_dataset_8h.xhtml">SamplingPolicyDataset.h</a></div></div>
<div class="ttc" id="arm__compute_2core_2_types_8h_xhtml"><div class="ttname"><a href="arm__compute_2core_2_types_8h.xhtml">Types.h</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_ad8ed01ff3ff33333d8e19db4d2818bb6"><div class="ttname"><a href="namespacearm__compute.xhtml#ad8ed01ff3ff33333d8e19db4d2818bb6">arm_compute::DataType</a></div><div class="ttdeci">DataType</div><div class="ttdoc">Available data types. </div><div class="ttdef"><b>Definition:</b> <a href="arm__compute_2core_2_types_8h_source.xhtml#l00072">Types.h:72</a></div></div>
<div class="ttc" id="_tensor_shape_8h_xhtml"><div class="ttname"><a href="_tensor_shape_8h.xhtml">TensorShape.h</a></div></div>
<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_4f2df8950dc650bf7cf9176fae02facc.xhtml">benchmark</a></li><li class="navelem"><a class="el" href="dir_4da487531dc5bdc76b523c9e82b781b1.xhtml">CL</a></li><li class="navelem"><a class="el" href="benchmark_2_c_l_2_scale_8cpp.xhtml">Scale.cpp</a></li>
- <li class="footer">Generated on Fri Mar 2 2018 12:37:53 for Compute Library by
+ <li class="footer">Generated on Wed May 23 2018 11:36:37 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>