aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/QuantizationInfo.h
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-08-22 11:44:04 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-08-23 13:13:08 +0000
commit29a01c90fc372d31188ab7157b45b32ce24fa9b3 (patch)
tree419b7abc22c56fde8dece4c80c328a209c041d94 /arm_compute/core/QuantizationInfo.h
parentfb0fdcdaec57e6f8e1b96f924411921cc0ba6d94 (diff)
downloadComputeLibrary-29a01c90fc372d31188ab7157b45b32ce24fa9b3.tar.gz
COMPMID-2417: NEDequantizationLayer support for QASYMM8_PER_CHANNEL
Change-Id: I1ef4ce8610e11e81702b0b7f0f7c437fed49833e Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/1795 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute/core/QuantizationInfo.h')
-rw-r--r--arm_compute/core/QuantizationInfo.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arm_compute/core/QuantizationInfo.h b/arm_compute/core/QuantizationInfo.h
index 79afca0714..1517d48381 100644
--- a/arm_compute/core/QuantizationInfo.h
+++ b/arm_compute/core/QuantizationInfo.h
@@ -103,6 +103,17 @@ public:
: _scale(scale), _offset()
{
}
+ /** Construct quantization info.
+ *
+ * @note Used for asymmetric per channel quantization
+ *
+ * @param[in] scale Scale.
+ * @param[in] offset Offset.
+ */
+ QuantizationInfo(std::vector<float> scale, std::vector<int32_t> offset)
+ : _scale(scale), _offset(offset)
+ {
+ }
/** Scale vector accessor
*
* @return A reference to quantization scale metadata