Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Ddequantize_op.cc71 xla::XlaOp half_range; in Compile() local
74 half_range = in Compile()
81 half_range = ScalarLike(output, 0.0f); in Compile()
86 output = xla::Add(xla::Mul(xla::Add(output, half_range), scale), min_range); in Compile()
/external/tensorflow/tensorflow/python/ops/
Ddequantize_op_test.py58 half_range = (type_range + 1) / 2
60 half_range = 0.0
61 np_ans = ((inputs.astype(np.float32) + half_range) *
/external/tensorflow/tensorflow/core/kernels/
Ddequantize_op.cc146 const float half_range = in DequantizeTensor() local
161 ((input_tensor.template cast<float>() + half_range) * scale_factor) + in DequantizeTensor()
195 const float half_range = in DequantizeSlice() local
209 ((input.template cast<float>() + half_range) * scale_factor) + in DequantizeSlice()
Ddequantize_op_test.cc45 float half_range = in ComputeDequantizeMinCombinedUsingEigen() local
57 half_range) * in ComputeDequantizeMinCombinedUsingEigen()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dquantize_test.cc100 float half_range = in GenerateLargeSizeMinCombinedOutput() local
115 static_cast<bfloat16>(input(h, w) + half_range) * scale_factor + in GenerateLargeSizeMinCombinedOutput()
130 float half_range = in GenerateMinCombinedOutput() local
144 static_cast<bfloat16>(i + half_range) * scale_factor + range.min; in GenerateMinCombinedOutput()
Dquantize.h87 float half_range =
147 builder, static_cast<bfloat16>(half_range));
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc218 const float half_range = std::max(std::abs(quant_params->min[channel_idx]), in GetSymmetricScalesFromMaxMin() local
220 scales->at(channel_idx) = half_range / kMaxQuantizedValue; in GetSymmetricScalesFromMaxMin()
316 const float half_range = in SymmetricPerChannelQuantization() local
319 output_scales->at(channel_idx) = half_range / half_scale; in SymmetricPerChannelQuantization()
320 if (half_range == 0) { in SymmetricPerChannelQuantization()
323 scale_invs[channel_idx] = half_scale / half_range; in SymmetricPerChannelQuantization()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_bitstream.c749 int half_range = 1 << (size - 1); in decode_dct() local
750 if (dct_diff < half_range) in decode_dct()
751 dct_diff = (dct_diff + 1) - (2 * half_range); in decode_dct()