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.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/armnn/Tensor.hpp b/include/armnn/Tensor.hpp
index 503c161570..160ccca79c 100644
--- a/include/armnn/Tensor.hpp
+++ b/include/armnn/Tensor.hpp
@@ -80,7 +80,11 @@ public:
int32_t GetQuantizationOffset() const { return m_Quantization.m_Offset; }
void SetQuantizationScale(float scale) { m_Quantization.m_Scale = scale; }
void SetQuantizationOffset(int32_t offset) { m_Quantization.m_Offset = offset; }
- bool IsQuantized() const { return m_DataType == DataType::QuantisedAsymm8; }
+ bool IsQuantized() const { return m_DataType == DataType::QuantisedAsymm8 ||
+ m_DataType == DataType::QuantisedSymm16; }
+
+ /// Check that the types are the same and, if quantize, that the quantization parameters are the same.
+ bool IsTypeSpaceMatch(const TensorInfo& other) const;
unsigned int GetNumBytes() const;