| 305 | } |
| 306 | |
| 307 | std::pair<int, int> get_quantized_bounds(const QuantizationInfo &quant_info, float min, float max) |
| 308 | { |
| 309 | ARM_COMPUTE_ERROR_ON_MSG(min > max, "min must be lower equal than max"); |
| 310 | |
| 311 | const int min_bound = quantize_qasymm8(min, quant_info.uniform()); |
| 312 | const int max_bound = quantize_qasymm8(max, quant_info.uniform()); |
| 313 | return std::pair<int, int>{min_bound, max_bound}; |
| 314 | } |
| 315 | |
| 316 | std::pair<int, int> get_quantized_qasymm8_signed_bounds(const QuantizationInfo &quant_info, float min, float max) |
| 317 | { |