Searched refs:FloatToQuantized (Results 1 – 7 of 7) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
D | quantization_utils_test.cc | 42 expected_values.push_back(FloatToQuantized<quint8>( in TestRequantizeMany() 84 expected_values.push_back(FloatToQuantized<qint32>( in TestRequantizeMany8To32Bit() 135 values_quantized.push_back(FloatToQuantized<qint32>(v, r[0], r[1])); in TestRequantizeManyInNewRange32To8Bit() 166 qint32 low = FloatToQuantized<qint32>(out_min, in_min, in_max); in TestRequantizeManyInNewRange32To8Bit() 167 qint32 high = FloatToQuantized<qint32>(out_max, in_min, in_max); in TestRequantizeManyInNewRange32To8Bit() 193 values_quantized.push_back(FloatToQuantized<quint8>(v, r[0], r[1])); in TestRequantizeManyInNewRange8To32Bit() 241 FloatToQuantized<InputType>(v, input_min, input_max)); in TestRequantizeManyInNewRangeEigenVsNonEigen() 293 FloatToQuantized<InputType>(v, input_min, input_max)); in TimeRequantizeManyInNewRange() 366 int32 expected = FloatToQuantized<T>(input_array(i), f_min, f_max); in TestFloatToQuantizedInPlaceUsingEigen() 434 EXPECT_EQ(quint8(0), FloatToQuantized<quint8>(0.0f, 0.0f, 1.0f)); in TestFloatToQuantized() [all …]
|
D | quantized_activation_ops.cc | 40 const T min_as_quantized = FloatToQuantized<T>(0.0f, min_input, max_input); in Compute() 73 const T min_as_quantized = FloatToQuantized<T>(0.0f, min_input, max_input); in Compute() 74 const T max_as_quantized = FloatToQuantized<T>(6.0f, min_input, max_input); in Compute()
|
D | quantized_batch_norm_op.cc | 82 FloatToQuantized<T2>(output_value, *output_min, *output_max); in ReferenceBatchNorm() 139 FloatToQuantized<T2>(scale_value, *output_min, *output_max); in FixedPointBatchNorm() 141 FloatToQuantized<T2>(offset_value, *output_min, *output_max); in FixedPointBatchNorm() 145 FloatToQuantized<T2>(1.0f, *output_min, *output_max); in FixedPointBatchNorm()
|
D | quantization_utils.h | 73 T FloatToQuantized(float input, float range_min, float range_max) { in FloatToQuantized() function 230 return FloatToQuantized<T2>(input_float, min_new, max_new); in RequantizeInNewRange() 241 output[index] = FloatToQuantized<T2>(input_float, min_output, max_output); in RequantizeManyInNewRange() 758 flat_result(i) = FloatToQuantized<T>(flat_input(i), min, max); in FloatTensorToQuantizedInPlace() 830 FloatToQuantized<T3>(0.0f, *output_min, *output_max); in QuantizedAddUsingEigen() 876 FloatToQuantized<T3>(0.0f, *output_min, *output_max); in QuantizedAdd()
|
D | quantized_resize_bilinear_op_test.cc | 46 FloatToQuantized<T>(static_cast<float>(i) / ratio, min, max); in BuildTensor() 92 return FloatToQuantized<T>(out, min, max); in ComputeLerpReference() 250 FloatToQuantized<qint32>(static_cast<float>(i), MIN, MAX); in TestResizeBilinearOneDim()
|
D | quantized_resize_bilinear_op.cc | 112 return FloatToQuantized<T>(out, min, max); in ComputeLerpReference()
|
/external/tensorflow/tensorflow/core/kernels/hexagon/ |
D | hexagon_graph_execution_test.cc | 182 quint8_vec->at(i) = FloatToQuantized<quint8>(float_vec[i], -1.0f, 1.0f); in QuantizeImage()
|