diff options
author | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-07-24 15:47:34 +0100 |
---|---|---|
committer | Viet-Hoa Do <viet-hoa.do@arm.com> | 2023-07-25 10:08:05 +0000 |
commit | 0250fa6c2a0bdbf88c1264f32ad0a1a4e3fec3f3 (patch) | |
tree | f5772b7df56c30f8ce8bd7fc182ba803c44b1691 /compute_kernel_writer/validation | |
parent | 25d26f4d86042e0ca52ac1bef4039b187f77b5b3 (diff) | |
download | ComputeLibrary-0250fa6c2a0bdbf88c1264f32ad0a1a4e3fec3f3.tar.gz |
Use CLTile for both variable and constant tiles
* It's easier to reuse CLTile for other things for example
tensor component if it can represent both variable
and constant tiles.
Partially resolves: COMPMID-6391
Signed-off-by: Viet-Hoa Do <viet-hoa.do@arm.com>
Change-Id: Ief06f670332cb339bd31b94a31b4bec186e1f1b8
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9966
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'compute_kernel_writer/validation')
-rw-r--r-- | compute_kernel_writer/validation/tests/CLConstantTileTest.hpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/compute_kernel_writer/validation/tests/CLConstantTileTest.hpp b/compute_kernel_writer/validation/tests/CLConstantTileTest.hpp index 23a75c4ca9..f10ad10146 100644 --- a/compute_kernel_writer/validation/tests/CLConstantTileTest.hpp +++ b/compute_kernel_writer/validation/tests/CLConstantTileTest.hpp @@ -22,13 +22,13 @@ * SOFTWARE. */ -#ifndef COMPUTE_KERNEL_WRITER_TESTS_CLCONSTANTTILETEST_HPP -#define COMPUTE_KERNEL_WRITER_TESTS_CLCONSTANTTILETEST_HPP +#ifndef CKW_TESTS_CLCONSTANTTILETEST_HPP +#define CKW_TESTS_CLCONSTANTTILETEST_HPP #include "common/Common.h" #include "src/Helpers.h" -#include "src/cl/CLConstantTile.h" #include "src/cl/CLHelpers.h" +#include "src/cl/CLTile.h" #include <random> #include <string> @@ -55,10 +55,10 @@ public: int32_t test_idx = 0; for(const auto &test : _values) { - const CLConstantTile tile(test, DataType::Fp16); - const auto vars = tile.all(); - const int32_t num_vars = vars.size(); - const int32_t width = tile.info().width(); + const CLTile tile(test, DataType::Fp16); + const auto vars = tile.all(); + const int32_t num_vars = vars.size(); + const int32_t width = tile.info().width(); for(int32_t y = 0; y < num_vars; ++y) { @@ -136,7 +136,7 @@ public: } } - const CLConstantTile tile(container, dt); + const CLTile tile(container, dt); const TileVariable var = tile.scalar(y_coord, x_coord); @@ -214,7 +214,7 @@ public: } } - const CLConstantTile tile(container, dt); + const CLTile tile(container, dt); const TileVariable var = tile.scalar(y_coord, x_coord); @@ -260,9 +260,9 @@ public: for(const auto &test : _values) { - const CLConstantTile tile(test, dt); - const int32_t width = tile.info().width(); - const int32_t height = tile.info().height(); + const CLTile tile(test, dt); + const int32_t width = tile.info().width(); + const int32_t height = tile.info().height(); for(int32_t row = 0; row < height; ++row) { @@ -326,8 +326,8 @@ public: { for(auto &subwidth : _subwidths) { - const CLConstantTile tile(test, dt); - const int32_t height = tile.info().height(); + const CLTile tile(test, dt); + const int32_t height = tile.info().height(); for(int32_t row = 0; row < height; ++row) { @@ -368,4 +368,4 @@ private: } // namespace ckw -#endif /* COMPUTE_KERNEL_WRITER_TESTS_CLCONSTANTTILETEST_HPP */ +#endif // CKW_TESTS_CLCONSTANTTILETEST_HPP |