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.cc77 const double qmin_double = kMinScale; in PortableAsymmetricQuantizeFloats() local
88 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.h701 const float qmin_double = qmin; in QuantizationParams() local
717 scale = (f_max - f_min) / (qmax_double - qmin_double); in QuantizationParams()
727 const float zero_point_from_min = qmin_double - f_min / scale; in QuantizationParams()
731 std::abs(qmin_double) + std::abs(f_min / scale); in QuantizationParams()
748 if (zero_point_double < qmin_double) { in QuantizationParams()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.cc2366 const double qmin_double = kMinScale; in NeonAsymmetricQuantizeFloats() local
2374 const double scale = (rmax - rmin) / (qmax_double - qmin_double); in NeonAsymmetricQuantizeFloats()
2375 const double zero_point_from_min = qmin_double - rmin / scale; in NeonAsymmetricQuantizeFloats()
2378 std::abs(qmin_double) + std::abs(rmin / scale); in NeonAsymmetricQuantizeFloats()
2386 if (zero_point_double <= qmin_double) { in NeonAsymmetricQuantizeFloats()