Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dquantized_batch_norm_op.cc57 QuantizedToFloat(input_flat(input_index), input_min, input_max); in ReferenceBatchNorm()
59 QuantizedToFloat(mean_flat(channel), mean_min, mean_max); in ReferenceBatchNorm()
61 QuantizedToFloat(var_flat(channel), var_min, var_max); in ReferenceBatchNorm()
63 QuantizedToFloat(beta_flat(channel), beta_min, beta_max); in ReferenceBatchNorm()
65 QuantizedToFloat(gamma_flat(channel), gamma_min, gamma_max); in ReferenceBatchNorm()
124 QuantizedToFloat(mean_flat(channel), mean_min, mean_max); in FixedPointBatchNorm()
126 QuantizedToFloat(var_flat(channel), var_min, var_max); in FixedPointBatchNorm()
128 QuantizedToFloat(beta_flat(channel), beta_min, beta_max); in FixedPointBatchNorm()
130 QuantizedToFloat(gamma_flat(channel), gamma_min, gamma_max); in FixedPointBatchNorm()
Dquantized_add_op.cc71 QuantizedToFloat<quint8>(0, full_input_min, full_input_max); in ScalarAddition()
73 QuantizedToFloat<quint8>(1, full_input_min, full_input_max); in ScalarAddition()
128 QuantizedToFloat<quint8>(0, full_input_min, full_input_max); in ScalarAddition()
130 QuantizedToFloat<quint8>(1, full_input_min, full_input_max); in ScalarAddition()
179 const float x_0_float = QuantizedToFloat<quint8>(0, min_x, max_x); in VectorAddition()
180 const float x_1_float = QuantizedToFloat<quint8>(1, min_x, max_x); in VectorAddition()
187 const float y_0_float = QuantizedToFloat<quint8>(0, min_y, max_y); in VectorAddition()
188 const float y_1_float = QuantizedToFloat<quint8>(1, min_y, max_y); in VectorAddition()
248 const float x_0_float = QuantizedToFloat<quint8>(0, min_x, max_x); in VectorAddition()
249 const float x_1_float = QuantizedToFloat<quint8>(1, min_x, max_x); in VectorAddition()
[all …]
Dquantization_utils_test.cc43 QuantizedToFloat(values_quantized[value_index], input_min, input_max), in TestRequantizeMany()
85 QuantizedToFloat(values_quantized[value_index], input_min, input_max), in TestRequantizeMany8To32Bit()
420 float expected = QuantizedToFloat<T>(input_array(i), f_min, f_max); in TestQuantizedToFloatInPlaceUsingEigen()
458 EXPECT_LT(fabsf(0.0f - QuantizedToFloat<quint8>(0, 0.0f, 1.0f)), 1 / 255.0f); in TestQuantizedToFloat()
459 EXPECT_LT(fabsf(0.0f - QuantizedToFloat<quint8>(0, 0.0f, 2.0f)), 1 / 255.0f); in TestQuantizedToFloat()
460 EXPECT_LT(fabsf(0.5f - QuantizedToFloat<quint8>(127, 0.0f, 1.0f)), in TestQuantizedToFloat()
462 EXPECT_LT(fabsf(1.0f - QuantizedToFloat<quint8>(127, 0.0f, 2.0f)), in TestQuantizedToFloat()
464 EXPECT_LT(fabsf(1.0f - QuantizedToFloat<quint8>(255, 0.0f, 1.0f)), in TestQuantizedToFloat()
466 EXPECT_LT(fabsf(2.0f - QuantizedToFloat<quint8>(255, 0.0f, 2.0f)), in TestQuantizedToFloat()
468 EXPECT_LT(fabsf(1.0f - QuantizedToFloat<quint8>(0, 1.0f, 256.0f)), in TestQuantizedToFloat()
[all …]
Dquantized_resize_bilinear_op_test.cc85 const float top_left = QuantizedToFloat<T>(in_top_left, min, max); in ComputeLerpReference()
86 const float top_right = QuantizedToFloat<T>(in_top_right, min, max); in ComputeLerpReference()
87 const float bottom_left = QuantizedToFloat<T>(in_bottom_left, min, max); in ComputeLerpReference()
88 const float bottom_right = QuantizedToFloat<T>(in_bottom_right, min, max); in ComputeLerpReference()
167 const float ref_val = QuantizedToFloat<T>(ref_qval, min, max); in CheckTensorValue()
168 const float val = QuantizedToFloat<T>(qval, min, max); in CheckTensorValue()
264 QuantizedToFloat<qint32>(outputs.at(0).flat<qint32>()(i), MIN, MAX); in TestResizeBilinearOneDim()
267 expected_val = QuantizedToFloat<qint32>( in TestResizeBilinearOneDim()
270 const float image_val0 = QuantizedToFloat<qint32>( in TestResizeBilinearOneDim()
272 const float image_val1 = QuantizedToFloat<qint32>( in TestResizeBilinearOneDim()
Drequantization_range_op.cc64 QuantizedToFloat(used_min_quantized, input_min_float, input_max_float)); in Compute()
66 QuantizedToFloat(used_max_quantized, input_min_float, input_max_float); in Compute()
Dquantize_down_and_shrink_range.cc68 std::min(0.0f, QuantizedToFloat(actual_min_quantized, input_min_float, in Compute()
70 const float actual_max_float = QuantizedToFloat( in Compute()
Dquantization_utils.h91 float QuantizedToFloat(T input, float range_min, float range_max) { in QuantizedToFloat() function
229 const float input_float = QuantizedToFloat<T1>(input, min_input, max_input); in RequantizeInNewRange()
240 QuantizedToFloat<T1>(input[index], min_input, max_input); in RequantizeManyInNewRange()
297 const float code_0_float = QuantizedToFloat<quint8>(0, min_input, max_input); in RequantizeManyInNewRange8To32BitReference()
298 const float code_1_float = QuantizedToFloat<quint8>(1, min_input, max_input); in RequantizeManyInNewRange8To32BitReference()
602 const float code_0_float = QuantizedToFloat<quint8>(0, min_input, max_input);
603 const float code_1_float = QuantizedToFloat<quint8>(1, min_input, max_input);
794 flat_result(i) = QuantizedToFloat<T>(flat_input(i), min, max); in QuantizedTensorToFloatInPlace()
Dquantized_resize_bilinear_op.cc105 const float top_left = QuantizedToFloat<T>(in_top_left, min, max); in ComputeLerpReference()
106 const float top_right = QuantizedToFloat<T>(in_top_right, min, max); in ComputeLerpReference()
107 const float bottom_left = QuantizedToFloat<T>(in_bottom_left, min, max); in ComputeLerpReference()
108 const float bottom_right = QuantizedToFloat<T>(in_bottom_right, min, max); in ComputeLerpReference()