Searched refs:nudged_min (Results 1 – 6 of 6) sorted by relevance
/external/tensorflow/tensorflow/core/kernels/ |
D | fake_quant_ops_functor.h | 43 float* nudged_min, float* nudged_max, float* scale) { in Nudge() argument 59 *nudged_min = (quant_min_float - nudged_zero_point) * (*scale); in Nudge() 87 float nudged_min, nudged_max, nudged_scale; in operator() local 88 Nudge(min, max, quant_min, quant_max, &nudged_min, &nudged_max, in operator() 92 auto clamped = inputs.cwiseMin(nudged_max).cwiseMax(nudged_min); in operator() 93 auto clamped_shifted = clamped - nudged_min; in operator() 96 nudged_min; in operator() 112 float nudged_min, nudged_max, nudged_scale; in operator() local 113 Nudge(min, max, quant_min, quant_max, &nudged_min, &nudged_max, in operator() 117 (inputs >= nudged_min && inputs <= nudged_max) in operator() [all …]
|
/external/tensorflow/tensorflow/lite/kernels/internal/ |
D | quantization_util.cc | 321 float* nudged_min, float* nudged_max, in NudgeQuantizationRange() argument 336 *nudged_min = (quant_min_float - nudged_zero_point) * (*nudged_scale); in NudgeQuantizationRange() 340 void FakeQuantizeArray(const float nudged_scale, const float nudged_min, in FakeQuantizeArray() argument 348 const float clamped = std::min(nudged_max, std::max(nudged_min, src_val)); in FakeQuantizeArray() 349 const float clamped_shifted = clamped - nudged_min; in FakeQuantizeArray() 352 nudged_min; in FakeQuantizeArray()
|
D | quantization_util.h | 263 float* nudged_min, float* nudged_max, 269 void FakeQuantizeArray(const float nudged_scale, const float nudged_min,
|
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | fake_quantize_ops.cc | 29 const float quant_max, float* nudged_min, float* nudged_max, in CpuNudge() argument 43 *nudged_min = (quant_min - nudged_zero_point) * (*scale); in CpuNudge() 51 xla::XlaOp* nudged_min, xla::XlaOp* nudged_max, in XlaNudge() argument 65 *nudged_min = xla::Mul(xla::Sub(quant_min, nudged_zero_point), *scale); in XlaNudge()
|
/external/tensorflow/tensorflow/lite/toco/graph_transformations/ |
D | resolve_constant_fake_quant.cc | 130 const float nudged_min = (quantized_min - qparams.zero_point) * scale; in Run() local 132 tflite::FakeQuantizeArray(scale, nudged_min, nudged_max, in Run()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | reference_ops.h | 2896 float nudged_min, nudged_max, nudged_scale; in FakeQuant() local 2897 NudgeQuantizationRange(rmin, rmax, quant_min, quant_max, &nudged_min, in FakeQuant() 2900 FakeQuantizeArray(nudged_scale, nudged_min, nudged_max, input_data, in FakeQuant()
|