Home
last modified time | relevance | path

Searched refs:qmin_double (Results 1 – 4 of 4) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.h35 const double qmin_double = qmin; in ChooseQuantizationParams() local
54 const double scale = (rmax - rmin) / (qmax_double - qmin_double); in ChooseQuantizationParams()
64 const double zero_point_from_min = qmin_double - rmin / scale; in ChooseQuantizationParams()
67 std::abs(qmin_double) + std::abs(rmin / scale); in ChooseQuantizationParams()
82 if (zero_point_double < qmin_double) { in ChooseQuantizationParams()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.cc78 const double qmin_double = kMinScale; in PortableAsymmetricQuantizeFloats() local
88 const double scale = (rmax - rmin) / (qmax_double - qmin_double); in PortableAsymmetricQuantizeFloats()
89 const double zero_point_from_min = qmin_double - rmin / scale; in PortableAsymmetricQuantizeFloats()
92 std::abs(qmin_double) + std::abs(rmin / scale); in PortableAsymmetricQuantizeFloats()
100 if (zero_point_double < qmin_double) { in PortableAsymmetricQuantizeFloats()
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.h501 const float qmin_double = qmin; in QuantizationParams() local
517 scale = (f_max - f_min) / (qmax_double - qmin_double); in QuantizationParams()
527 const float zero_point_from_min = qmin_double - f_min / scale; in QuantizationParams()
531 std::abs(qmin_double) + std::abs(f_min / scale); in QuantizationParams()
548 if (zero_point_double < qmin_double) { in QuantizationParams()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.cc2206 const double qmin_double = kMinScale; in NeonAsymmetricQuantizeFloats() local
2212 const double scale = (rmax - rmin) / (qmax_double - qmin_double); in NeonAsymmetricQuantizeFloats()
2213 const double zero_point_from_min = qmin_double - rmin / scale; in NeonAsymmetricQuantizeFloats()
2216 std::abs(qmin_double) + std::abs(rmin / scale); in NeonAsymmetricQuantizeFloats()
2224 if (zero_point_double < qmin_double) { in NeonAsymmetricQuantizeFloats()