Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op.cc57 const float inv_scale = 1.0 / scale; in ComputeSpansCore() local
58 const float inv_translate = -inv_scale * translate; in ComputeSpansCore()
62 const float kernel_scale = antialias ? std::max(inv_scale, 1.0f) : 1.0f; in ComputeSpansCore()
84 const float sample_f = col_f * inv_scale + inv_translate; in ComputeSpansCore()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc75 xla::XlaOp inv_scale = xla::Div(one, input_scale); in Quantize() local
81 xla::Floor(xla::Add(xla::Mul(clamped_shifted, inv_scale), half)); in Quantize()
/external/mesa3d/src/imgui/
Dimgui_widgets.cpp5315 const float inv_scale = (scale_min == scale_max) ? 0.0f : (1.0f / (scale_max - scale_min)); in PlotEx() local
5319 …ImVec2 tp0 = ImVec2( t0, 1.0f - ImSaturate((v0 - scale_min) * inv_scale) ); … in PlotEx()
5320 …float histogram_zero_line_t = (scale_min * scale_max < 0.0f) ? (-scale_min * inv_scale) : (scale_m… in PlotEx()
5331 const ImVec2 tp1 = ImVec2( t1, 1.0f - ImSaturate((v1 - scale_min) * inv_scale) ); in PlotEx()