Searched refs:qparams (Results 1 – 3 of 3) sorted by relevance
115 QuantizationParams qparams; in Run() local117 output_array, quantized_data_type, &qparams); in Run()129 const float scale = qparams.scale; in Run()130 const float nudged_min = (quantized_min - qparams.zero_point) * scale; in Run()131 const float nudged_max = (quantized_max - qparams.zero_point) * scale; in Run()
37 const auto& qparams = array->GetQuantizationParams(); in DequantizeBuffer() local39 new_data[i] = qparams.scale * (old_data[i] - qparams.zero_point); in DequantizeBuffer()60 auto& qparams = *array->quantization_params; in ClearArrayQuantizationParams() local61 const double new_std_value = 1. / qparams.scale; in ClearArrayQuantizationParams()62 const double new_mean_value = qparams.zero_point; in ClearArrayQuantizationParams()
133 void Quantize(const QuantizationParams& qparams, const std::vector<float>& src, in Quantize() argument138 const float transformed_val = qparams.zero_point + real_val / qparams.scale; in Quantize()144 void Dequantize(const QuantizationParams& qparams, in Dequantize() argument149 (*dst)[i] = qparams.scale * (quantized_val - qparams.zero_point); in Dequantize()