Home
last modified time | relevance | path

Searched refs:qparams (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_fake_quant.cc115 QuantizationParams qparams; in Run() local
117 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()
Ddequantize.cc37 const auto& qparams = array->GetQuantizationParams(); in DequantizeBuffer() local
39 new_data[i] = qparams.scale * (old_data[i] - qparams.zero_point); in DequantizeBuffer()
60 auto& qparams = *array->quantization_params; in ClearArrayQuantizationParams() local
61 const double new_std_value = 1. / qparams.scale; in ClearArrayQuantizationParams()
62 const double new_mean_value = qparams.zero_point; in ClearArrayQuantizationParams()
/external/gemmlowp/doc/
Dquantization_example.cc133 void Quantize(const QuantizationParams& qparams, const std::vector<float>& src, in Quantize() argument
138 const float transformed_val = qparams.zero_point + real_val / qparams.scale; in Quantize()
144 void Dequantize(const QuantizationParams& qparams, in Dequantize() argument
149 (*dst)[i] = qparams.scale * (quantized_val - qparams.zero_point); in Dequantize()