Home
last modified time | relevance | path

Searched refs:clamped_shifted (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dfake_quant_ops_functor.h93 auto clamped_shifted = clamped - nudged_min; in operator() local
95 (clamped_shifted * inv_nudged_scale + 0.5f).floor() * nudged_scale + in operator()
144 const auto clamped_shifted = clamped - nudged_min; in operator() local
145 outputs.device(d) = (clamped_shifted / nudged_scale_repl + 0.5f).floor() * in operator()
217 const auto clamped_shifted = clamped - nudged_min; in operator() local
220 (clamped_shifted / nudged_scale + 0.5f).floor() * nudged_scale + in operator()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc349 const float clamped_shifted = clamped - nudged_min; in FakeQuantizeArray() local
351 TfLiteRound(clamped_shifted * inv_nudged_scale) * nudged_scale + in FakeQuantizeArray()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc79 xla::XlaOp clamped_shifted = xla::Sub(clamped, nudged_input_min); in Quantize() local
81 xla::Floor(xla::Add(xla::Mul(clamped_shifted, inv_scale), half)); in Quantize()