diff options
Diffstat (limited to 'tests/validation/Helpers.h')
-rw-r--r-- | tests/validation/Helpers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/validation/Helpers.h b/tests/validation/Helpers.h index 3227a98b05..b481b52443 100644 --- a/tests/validation/Helpers.h +++ b/tests/validation/Helpers.h @@ -262,6 +262,14 @@ void zeros(SimpleTensor<T> &in, const Coordinates &anchor, const TensorShape &sh */ std::pair<int, int> get_quantized_bounds(const QuantizationInfo &quant_info, float min, float max); +/** Helper function to compute asymmetric quantized signed min and max bounds + * + * @param[in] quant_info Quantization info to be used for conversion + * @param[in] min Floating point minimum value to be quantized + * @param[in] max Floating point maximum value to be quantized + */ +std::pair<int, int> get_quantized_qasymm8_signed_bounds(const QuantizationInfo &quant_info, float min, float max); + /** Helper function to compute symmetric quantized min and max bounds * * @param[in] quant_info Quantization info to be used for conversion |