aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/QuantizationInfo.h
diff options
context:
space:
mode:
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