Home
last modified time | relevance | path

Searched refs:quantized_min (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dresolve_constant_fake_quant.cc118 float quantized_min, quantized_max; in Run() local
119 GetBoundsForQuantizedDataType(quantized_data_type, &quantized_min, in Run()
122 quantized_min++; in Run()
130 const float nudged_min = (quantized_min - qparams.zero_point) * scale; in Run()
Dquantization_util.cc244 double quantized_min, quantized_max; in IsArrayQuantizedRangeSubset() local
245 CHECK(GetQuantizedDataTypeNumericalRange(quantized_data_type, &quantized_min, in IsArrayQuantizedRangeSubset()
253 (quantized_min - quantization_params.zero_point) * in IsArrayQuantizedRangeSubset()
Dquantize.cc469 double quantized_min, quantized_max; in FixMinMaxPostQuantization() local
470 if (!GetQuantizedDataTypeNumericalRange(quantized_data_type, &quantized_min, in FixMinMaxPostQuantization()
477 double min = (quantized_min - quantization_params.zero_point) * in FixMinMaxPostQuantization()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dprelu.h66 const int32_t quantized_min = std::numeric_limits<T>::min(); in BroadcastPrelu4DSlow() local
69 std::min(quantized_max, std::max(quantized_min, output_value)); in BroadcastPrelu4DSlow()
82 const int32_t quantized_min = std::numeric_limits<T>::min(); in Prelu() local
103 std::min(quantized_max, std::max(quantized_min, output_value)); in Prelu()
Dleaky_relu.h44 static const int32_t quantized_min = std::numeric_limits<T>::min(); in QuantizeLeakyRelu() local
61 std::min(quantized_max, std::max(quantized_min, unclamped_output)); in QuantizeLeakyRelu()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/
Dleaky_relu.h33 const int32_t quantized_min = std::numeric_limits<int16>::min(); in QuantizeLeakyRelu() local
49 const __m256i clamp_min_v = _mm256_set1_epi32(quantized_min); in QuantizeLeakyRelu()
105 std::min(quantized_max, std::max(quantized_min, unclamped_output)); in QuantizeLeakyRelu()
/external/tensorflow/tensorflow/python/ops/
Dquantized_conv_ops_test.py87 def _QuantizedOutputToFloat(self, quantized, quantized_min, quantized_max): argument
91 quantized_range = ((quantized_max - quantized_min) * range_adjust)
94 result = np.array([(quantized_min +
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_common.cc2521 int64_t quantized_min = input_qtype.getStorageTypeMin(); in convertFusedActivation() local
2524 int64_t clamp_min = std::max(quantized_0, quantized_min); in convertFusedActivation()
2536 int64_t quantized_min = input_qtype.getStorageTypeMin(); in convertFusedActivation() local
2542 int64_t clamp_min = std::max(quantized_n1, quantized_min); in convertFusedActivation()