Searched refs:scaled_input (Results 1 – 7 of 7) sorted by relevance
/external/XNNPACK/src/xnnpack/ |
D | requantization.h | 48 float scaled_input = (float) input * scale; in xnn_qs8_requantize_fp32() local 49 scaled_input = math_max_f32(scaled_input, min_less_zero_point); in xnn_qs8_requantize_fp32() 50 scaled_input = math_min_f32(scaled_input, max_less_zero_point); in xnn_qs8_requantize_fp32() 52 const int32_t output = (int32_t) lrintf(scaled_input) + (int32_t) zero_point; in xnn_qs8_requantize_fp32() 69 float scaled_input = (float) input * scale; in xnn_qu8_requantize_fp32() local 70 scaled_input = math_max_f32(scaled_input, min_less_zero_point); in xnn_qu8_requantize_fp32() 71 scaled_input = math_min_f32(scaled_input, max_less_zero_point); in xnn_qu8_requantize_fp32() 73 const int32_t output = (int32_t) lrintf(scaled_input) + (int32_t) zero_point; in xnn_qu8_requantize_fp32()
|
/external/XNNPACK/test/ |
D | vcvt-microkernel-tester.h | 182 float scaled_input = input[i] * scale(); in Test() local 183 scaled_input = std::min<float>(scaled_input, float(qmax() - output_zero_point())); in Test() 184 scaled_input = std::max<float>(scaled_input, float(qmin() - output_zero_point())); in Test() 185 output_ref[i] = int8_t(std::lrintf(scaled_input) + long(output_zero_point())); in Test() 225 float scaled_input = input[i] * scale(); in Test() local 226 scaled_input = std::min<float>(scaled_input, float(qmax() - output_zero_point())); in Test() 227 scaled_input = std::max<float>(scaled_input, float(qmin() - output_zero_point())); in Test() 228 output_ref[i] = uint8_t(std::lrintf(scaled_input) + long(output_zero_point())); in Test()
|
D | convert-operator-tester.h | 252 float scaled_input = input[i * input_stride() + c] * inv_scale; in TestF32toQS8() local 253 scaled_input = std::min<float>(scaled_input, float(qmax() - zero_point())); in TestF32toQS8() 254 scaled_input = std::max<float>(scaled_input, float(qmin() - zero_point())); in TestF32toQS8() 255 output_ref[i * channels() + c] = int8_t(std::lrintf(scaled_input) + long(zero_point())); in TestF32toQS8() 317 float scaled_input = input[i * input_stride() + c] * inv_scale; in TestF32toQU8() local 318 scaled_input = std::min<float>(scaled_input, float(qmax() - zero_point())); in TestF32toQU8() 319 scaled_input = std::max<float>(scaled_input, float(qmin() - zero_point())); in TestF32toQU8() 320 output_ref[i * channels() + c] = uint8_t(std::lrintf(scaled_input) + long(zero_point())); in TestF32toQU8()
|
/external/tensorflow/tensorflow/lite/kernels/internal/reference/ |
D | add.h | 187 F0 scaled_input = F0::FromRaw( 189 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled);
|
D | reference_ops.h | 310 F0 scaled_input = F0::FromRaw( in Sub16() local 312 F0 result = SaturatingSub(input_ready_scaled, scaled_input); in Sub16() 323 F0 scaled_input = F0::FromRaw( in Sub16() local 325 F0 result = SaturatingSub(scaled_input, input_ready_scaled); in Sub16()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/ |
D | legalize_tf.cc | 3060 auto scaled_input = rewriter.create<MulOp>(loc, operand, half); in matchAndRewrite() local 3061 auto tanh_op = rewriter.create<TanhOp>(loc, scaled_input); in matchAndRewrite()
|
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/ |
D | optimized_ops.h | 1798 F0 scaled_input = F0::FromRaw( in Add() local 1800 F0 result = gemmlowp::SaturatingAdd(scaled_input, input_ready_scaled); in Add()
|