Searched refs:half_range (Results 1 – 8 of 8) sorted by relevance
71 xla::XlaOp half_range; in Compile() local74 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()
58 half_range = (type_range + 1) / 260 half_range = 0.061 np_ans = ((inputs.astype(np.float32) + half_range) *
146 const float half_range = in DequantizeTensor() local161 ((input_tensor.template cast<float>() + half_range) * scale_factor) + in DequantizeTensor()195 const float half_range = in DequantizeSlice() local209 ((input.template cast<float>() + half_range) * scale_factor) + in DequantizeSlice()
45 float half_range = in ComputeDequantizeMinCombinedUsingEigen() local57 half_range) * in ComputeDequantizeMinCombinedUsingEigen()
100 float half_range = in GenerateLargeSizeMinCombinedOutput() local115 static_cast<bfloat16>(input(h, w) + half_range) * scale_factor + in GenerateLargeSizeMinCombinedOutput()130 float half_range = in GenerateMinCombinedOutput() local144 static_cast<bfloat16>(i + half_range) * scale_factor + range.min; in GenerateMinCombinedOutput()
87 float half_range =147 builder, static_cast<bfloat16>(half_range));
218 const float half_range = std::max(std::abs(quant_params->min[channel_idx]), in GetSymmetricScalesFromMaxMin() local220 scales->at(channel_idx) = half_range / kMaxQuantizedValue; in GetSymmetricScalesFromMaxMin()316 const float half_range = in SymmetricPerChannelQuantization() local319 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()
749 int half_range = 1 << (size - 1); in decode_dct() local750 if (dct_diff < half_range) in decode_dct()751 dct_diff = (dct_diff + 1) - (2 * half_range); in decode_dct()