Home
last modified time | relevance | path

Searched refs:nudged_min (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h43 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/
Dquantization_util.cc321 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()
Dquantization_util.h263 float* nudged_min, float* nudged_max,
269 void FakeQuantizeArray(const float nudged_scale, const float nudged_min,
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc29 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/
Dresolve_constant_fake_quant.cc130 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/
Dreference_ops.h2896 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()