aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/Tensor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnn/Tensor.hpp')
-rw-r--r--include/armnn/Tensor.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/armnn/Tensor.hpp b/include/armnn/Tensor.hpp
index 8814d89174..95898743bc 100644
--- a/include/armnn/Tensor.hpp
+++ b/include/armnn/Tensor.hpp
@@ -229,6 +229,11 @@ private:
, m_Offset(EmptyOptional())
, m_QuantizationDim(EmptyOptional()) {}
+ Quantization(const Quantization& other)
+ : m_Scales(other.m_Scales)
+ , m_Offset(other.m_Offset)
+ , m_QuantizationDim(other.m_QuantizationDim) {}
+
bool operator==(const Quantization& other) const
{
return ((m_Scales == other.m_Scales) && (m_Offset == other.m_Offset) &&
@@ -237,7 +242,7 @@ private:
Quantization& operator=(const Quantization& other)
{
- if(!(*this == other))
+ if(this != &other)
{
m_Scales = other.m_Scales;
m_Offset = other.m_Offset;