/external/XNNPACK/eval/ |
D | f32-qs8-cvt.cc | 38 …const uint32_t max_input = float_as_uint32((float) (std::numeric_limits<int8_t>::max() - zero_poin… in TEST() local 39 for (uint32_t n = 0; n < max_input; n += kBlockSize) { in TEST() 41 inputs[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in TEST() 70 …const uint32_t max_input = float_as_uint32((float) (zero_point - std::numeric_limits<int8_t>::min(… in TEST() local 71 for (uint32_t n = 0; n < max_input; n += kBlockSize) { in TEST() 73 inputs[i] = uint32_as_float(UINT32_C(0x80000000) | std::min<uint32_t>(n + i, max_input)); in TEST() 103 const uint32_t max_input = UINT32_C(0x7F800000); in TEST() local 104 for (uint32_t n = min_input; n < max_input; n += kBlockSize) { in TEST() 106 inputs[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in TEST() 131 const uint32_t max_input = UINT32_C(0x7F800000); in TEST() local [all …]
|
D | f32-qu8-cvt.cc | 38 …const uint32_t max_input = float_as_uint32((float) (std::numeric_limits<uint8_t>::max() - zero_poi… in TEST() local 39 for (uint32_t n = 0; n < max_input; n += kBlockSize) { in TEST() 41 inputs[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in TEST() 70 const uint32_t max_input = float_as_uint32((float) zero_point); in TEST() local 71 for (uint32_t n = 0; n < max_input; n += kBlockSize) { in TEST() 73 inputs[i] = uint32_as_float(UINT32_C(0x80000000) | std::min<uint32_t>(n + i, max_input)); in TEST() 103 const uint32_t max_input = UINT32_C(0x7F800000); in TEST() local 104 for (uint32_t n = min_input; n < max_input; n += kBlockSize) { in TEST() 106 inputs[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in TEST() 131 const uint32_t max_input = UINT32_C(0x7F800000); in TEST() local [all …]
|
D | f16-exp-ulp.cc | 66 const uint16_t max_input = UINT16_C(0x498F); in ExpError() local 112 for (uint16_t n = 0; n < max_input; n += block_size) { in ExpError() 114 x[i] = std::min<uint16_t>(n + i, max_input); in ExpError()
|
D | f32-extexp-ulp.cc | 69 const uint32_t max_input = 0x44317217; in ExtExpError() local 117 for (uint32_t n = 0; n < max_input; n += block_size) { in ExtExpError() 119 x[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in ExtExpError()
|
D | f32-sqrt-ulp.cc | 64 const uint32_t max_input = 0x41800000; in SqrtError() local 92 for (uint32_t n = min_input; n < max_input; n += block_size) { in SqrtError() 94 x[i] = uint32_as_float(std::min<uint32_t>(n + i, max_input)); in SqrtError()
|
/external/libvpx/vpx_dsp/x86/ |
D | highbd_idct4x4_add_sse2.c | 105 __m128i max_input, min_input; in vpx_highbd_idct4x4_16_add_sse2() local 107 max_input = _mm_max_epi16(io_short[0], io_short[1]); in vpx_highbd_idct4x4_16_add_sse2() 109 max_input = _mm_max_epi16(max_input, _mm_srli_si128(max_input, 8)); in vpx_highbd_idct4x4_16_add_sse2() 111 max_input = _mm_max_epi16(max_input, _mm_srli_si128(max_input, 4)); in vpx_highbd_idct4x4_16_add_sse2() 113 max_input = _mm_max_epi16(max_input, _mm_srli_si128(max_input, 2)); in vpx_highbd_idct4x4_16_add_sse2() 115 max = (int16_t)_mm_extract_epi16(max_input, 0); in vpx_highbd_idct4x4_16_add_sse2()
|
/external/libtextclassifier/native/utils/tflite/ |
D | string_projection.cc | 162 size_t len, size_t max_input, size_t max_tokens) { in SplitBySpaceInternal() argument 164 max_input == kEntireString ? len : (len < max_input ? len : max_input); in SplitBySpaceInternal() 188 size_t max_input, size_t max_tokens) { in SplitBySpace() argument 190 SplitBySpaceInternal(&tokens, input_ptr, len, max_input, max_tokens); in SplitBySpace() 208 std::string Normalize(const std::string& input, size_t max_input = 300) { in Normalize() argument 209 return Normalize(input.data(), input.length(), max_input); in Normalize() 212 size_t max_input = 300) { in Normalize() argument 213 std::string normalized(input_ptr, std::min(len, max_input)); in Normalize() 278 std::vector<std::string> Tokenize(const std::string& input, size_t max_input, in Tokenize() argument 280 return Tokenize(input.c_str(), input.size(), max_input, max_tokens); in Tokenize() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | quantized_activation_ops.cc | 48 const float max_input = max_input_tensor.scalar<float>()(); in Compute() local 53 const T min_as_quantized = FloatToQuantized<T>(0.0f, min_input, max_input); in Compute() 69 output_max->flat<float>()(0) = max_input; in Compute() 94 const float max_input = max_input_tensor.scalar<float>()(); in Compute() local 99 const T min_as_quantized = FloatToQuantized<T>(0.0f, min_input, max_input); in Compute() 100 const T max_as_quantized = FloatToQuantized<T>(6.0f, min_input, max_input); in Compute() 120 output_max->flat<float>()(0) = max_input; in Compute()
|
D | quantization_utils.h | 228 inline T2 RequantizeInNewRange(T1 input, float min_input, float max_input, in RequantizeInNewRange() argument 230 const float input_float = QuantizedToFloat<T1>(input, min_input, max_input); in RequantizeInNewRange() 236 float min_input, float max_input, in RequantizeManyInNewRange() argument 241 QuantizedToFloat<T1>(input[index], min_input, max_input); in RequantizeManyInNewRange() 251 float max_input, float min_output, in RequantizeManyInNewRangeReference() argument 257 const float input_range = max_input - min_input; in RequantizeManyInNewRangeReference() 261 const float input_rezero = (min_input + max_input) / 2.0; in RequantizeManyInNewRangeReference() 295 const quint8* input, int64_t count, float min_input, float max_input, in RequantizeManyInNewRange8To32BitReference() argument 297 const float code_0_float = QuantizedToFloat<quint8>(0, min_input, max_input); in RequantizeManyInNewRange8To32BitReference() 298 const float code_1_float = QuantizedToFloat<quint8>(1, min_input, max_input); in RequantizeManyInNewRange8To32BitReference() [all …]
|
D | quantized_bias_add_op.cc | 44 const Tensor& max_input = context->input(3); in Compute() local 52 context, TensorShapeUtils::IsScalar(max_input.shape()), in Compute() 54 max_input.dims())); in Compute() 63 const float input_max = max_input.flat<float>()(0); in Compute()
|
D | quantized_pooling_ops.cc | 83 const float max_input = context->input(2).scalar<float>()(); in Compute() local 118 output_max->flat<float>()(0) = max_input; in Compute() 147 const float max_input = context->input(2).scalar<float>()(); in Compute() local 154 output_max->flat<float>()(0) = max_input; in Compute()
|
/external/libaom/av1/encoder/ |
D | ml.c | 146 float max_input = input[0]; in av1_nn_softmax() local 147 for (int i = 1; i < n; i++) max_input = AOMMAX(max_input, input[i]); in av1_nn_softmax() 151 const float normalized_input = AOMMAX(input[i] - max_input, -10.0f); in av1_nn_softmax() 176 float max_input = input[0]; in av1_nn_fast_softmax_16_c() local 177 for (int i = 1; i < kNumClasses; i++) max_input = AOMMAX(max_input, input[i]); in av1_nn_fast_softmax_16_c() 181 const float normalized_input = AOMMAX(input[i] - max_input, -10.0f); in av1_nn_fast_softmax_16_c()
|
/external/tensorflow/tensorflow/python/ops/ |
D | quantized_conv_ops_test.py | 71 max_input=x1_max, 205 max_input=None, argument 222 if max_input is None: 223 max_input = constant_op.constant(0, shape=[], dtype=dtypes.float32) 241 max_input=max_input, 258 max_input=constant_op.constant(0, shape=[1], dtype=dtypes.float32),
|
/external/tensorflow/tensorflow/security/advisory/ |
D | tfsa-2022-098.md | 7 If `QuantizedAvgPool` is given `min_input` or `max_input` tensors of a nonzero rank, it results in … 16 max_input = tf.constant(0, shape=[1], dtype=tf.float32) 17 tf.raw_ops.QuantizedAvgPool(input=input, min_input=min_input, max_input=max_input, ksize=ksize, str…
|
D | tfsa-2022-105.md | 7 If `QuantizedBiasAdd` is given `min_input`, `max_input`, `min_bias`, `max_bias` tensors of a nonzer… 15 max_input = tf.constant(0, shape=[1], dtype=tf.float32) 18 tf.raw_ops.QuantizedBiasAdd(input=input, bias=bias, min_input=min_input, max_input=max_input, min_b…
|
D | tfsa-2021-016.md | 15 max_input = tf.constant(0.0001) 22 tf.raw_ops.QuantizedConv2D(input=input, filter=filter, min_input=min_input, max_input=max_input, mi…
|
D | tfsa-2022-075.md | 17 max_input = tf.constant(0, shape=[], dtype=tf.float32) 25 max_input=max_input,
|
D | tfsa-2021-034.md | 16 max_input = tf.constant(-10.0, dtype=tf.float32) 21 max_input=max_input, min_bias=min_bias,
|
/external/libgav1/src/dsp/ |
D | warp_test.cc | 466 void ApplyFilterToSignedInput(const int min_input, const int max_input, in ApplyFilterToSignedInput() argument 473 max += max_input * tap; in ApplyFilterToSignedInput() 476 min += max_input * tap; in ApplyFilterToSignedInput() 484 void ApplyFilterToUnsignedInput(const int max_input, in ApplyFilterToUnsignedInput() argument 487 ApplyFilterToSignedInput(0, max_input, filter, min_output, max_output); in ApplyFilterToUnsignedInput() 503 constexpr int max_input = (1 << bitdepth) - 1; in ShowRange() local 509 max_input); in ShowRange() 512 ApplyFilterToUnsignedInput(max_input, worst_warp_filter, &min, &max); in ShowRange() 568 Clip3(RightShiftWithRounding(min, vertical_bits), 0, max_input); in ShowRange() 570 Clip3(RightShiftWithRounding(max, vertical_bits), 0, max_input); in ShowRange() [all …]
|
D | convolve_test.cc | 928 void ApplyFilterToSignedInput(const int min_input, const int max_input, in ApplyFilterToSignedInput() argument 935 max += max_input * tap; in ApplyFilterToSignedInput() 938 min += max_input * tap; in ApplyFilterToSignedInput() 946 void ApplyFilterToUnsignedInput(const int max_input, in ApplyFilterToUnsignedInput() argument 949 ApplyFilterToSignedInput(0, max_input, filter, min_output, max_output); in ApplyFilterToUnsignedInput() 966 constexpr int max_input = (1 << bitdepth) - 1; in ShowRange() local 972 max_input); in ShowRange() 975 ApplyFilterToUnsignedInput(max_input, worst_convolve_filter, &min, &max); in ShowRange() 1011 Clip3(RightShiftWithRounding(min, vertical_bits), 0, max_input); in ShowRange() 1013 Clip3(RightShiftWithRounding(max, vertical_bits), 0, max_input); in ShowRange() [all …]
|
/external/tensorflow/tensorflow/python/kernel_tests/quantization_ops/ |
D | quantization_ops_test.py | 162 max_input=1.0, 174 max_input=[], 186 max_input=1.0, 198 max_input=1.0, 240 max_input=1.0, 251 max_input=[], 273 max_input=1.0, 284 max_input=[],
|
/external/libpng/contrib/tools/ |
D | makesRGB.c | 39 static const unsigned int max_input = 255*65535; variable 44 return sRGB_from_linear(l/max_input); in fsRGB() 305 for (i=0; i <= max_input; ++i) in main() 384 min_error, max_error, error_count, (100.*error_count)/max_input); in main()
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/ |
D | QuantizedMaxPool.pbtxt | 12 name: "max_input" 70 name: "max_input"
|
D | QuantizedAvgPool.pbtxt | 12 name: "max_input" 70 name: "max_input"
|
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/ |
D | QuantizedMaxPool.pbtxt | 12 name: "max_input" 70 name: "max_input"
|