aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Types.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/core/Types.h')
-rw-r--r--arm_compute/core/Types.h10
1 files changed, 10 insertions, 0 deletions
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 */