diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2018-03-15 17:58:20 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 2d9de0a3fa6ad858e70040124f362799a962bb6a (patch) | |
tree | 0a055c5100438a929b3b04945821665d2fef8751 /arm_compute/core/Size2D.h | |
parent | ed99f411d52949720a4d64d91664cd71e46b79d5 (diff) | |
download | ComputeLibrary-2d9de0a3fa6ad858e70040124f362799a962bb6a.tar.gz |
COMPMID-1009 Support 4x4 output tile for Winograd Filter Transform on OpenCL.
Change-Id: I68c6453e0f192de659582404f109a89616b9fbb9
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/124811
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'arm_compute/core/Size2D.h')
-rw-r--r-- | arm_compute/core/Size2D.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arm_compute/core/Size2D.h b/arm_compute/core/Size2D.h index 3840771cd1..37c4ebd041 100644 --- a/arm_compute/core/Size2D.h +++ b/arm_compute/core/Size2D.h @@ -24,6 +24,7 @@ #ifndef __ARM_COMPUTE_SIZE2D_H__ #define __ARM_COMPUTE_SIZE2D_H__ +#include "support/ToolchainSupport.h" #include <cstddef> #include <utility> @@ -54,6 +55,21 @@ public: return (width * height); } + bool operator==(const Size2D &other) const + { + return (width == other.width) && (height == other.height); + } + + bool operator!=(const Size2D &other) const + { + return !(*this == other); + } + + std::string to_string() const + { + return support::cpp11::to_string(width) + std::string("x") + support::cpp11::to_string(height); + } + public: size_t width = {}; /**< Width of the image region or rectangle */ size_t height = {}; /**< Height of the image region or rectangle */ |