From 0250fa6c2a0bdbf88c1264f32ad0a1a4e3fec3f3 Mon Sep 17 00:00:00 2001 From: Viet-Hoa Do Date: Mon, 24 Jul 2023 15:47:34 +0100 Subject: 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 Change-Id: Ief06f670332cb339bd31b94a31b4bec186e1f1b8 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9966 Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- compute_kernel_writer/src/ITile.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'compute_kernel_writer/src/ITile.h') 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. -- cgit v1.2.1