MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_quantized_bounds

Function get_quantized_bounds

tests/validation/Helpers.cpp:307–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307std::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
316std::pair<int, int> get_quantized_qasymm8_signed_bounds(const QuantizationInfo &quant_info, float min, float max)
317{

Callers 9

fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85
fillMethod · 0.85

Calls 2

quantize_qasymm8Function · 0.50
uniformMethod · 0.45

Tested by

no test coverage detected