From eed841c6df92b8d8e3137af260d1f5faf6167159 Mon Sep 17 00:00:00 2001 From: Daniil Efremov Date: Thu, 9 Nov 2017 19:05:25 +0700 Subject: COMPMID-661: Add QAsymm8 for Reshape (#29) Change-Id: I7a4126f96aa7ef7ed768ebe5b4e2b1f84228f8e6 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/95060 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- arm_compute/core/Types.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'arm_compute/core/Types.h') diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h index eaff8fb709..6e7eb3c829 100644 --- a/arm_compute/core/Types.h +++ b/arm_compute/core/Types.h @@ -104,6 +104,16 @@ struct QuantizationInfo { } + bool operator==(const QuantizationInfo &other) + { + return scale == other.scale && offset == other.offset; + } + + bool operator!=(const QuantizationInfo &other) + { + return !(*this == other); + } + float scale; /**< scale */ int offset; /**< offset */ -- cgit v1.2.1