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/src/ITile.h | |
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/src/ITile.h')
-rw-r--r-- | compute_kernel_writer/src/ITile.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/compute_kernel_writer/src/ITile.h b/compute_kernel_writer/src/ITile.h index bed4996607..a54fd9b794 100644 --- a/compute_kernel_writer/src/ITile.h +++ b/compute_kernel_writer/src/ITile.h @@ -66,19 +66,13 @@ public: * * @return the name of the tile */ - std::string name() const - { - return _basename; - } + virtual const std::string &name() const = 0; /** Method to get the tile info * * @return the @ref TileInfo */ - TileInfo info() const - { - return _info; - } + virtual const TileInfo &info() const = 0; /** Method to know whether the tile is assignable or not. * For example, a constant tile is not assignable. @@ -86,10 +80,6 @@ public: * @return true if the tile is assignable */ virtual bool is_assignable() const = 0; - -protected: - TileInfo _info{ DataType::Unknown }; // Tile info - std::string _basename{ "" }; // Tile name }; /** Interface to provide support for scalar access for a Tile. |