Home
last modified time | relevance | path

Searched refs:quantize (Results 1 – 18 of 18) sorted by relevance

/frameworks/ml/nn/runtime/test/specs/V1_3/
Dwhile_sum_of_powers_quant8_signed.mod.py35 def quantize(data, scale, offset): function
88 zero = Parameter("zero", DataType10, quantize([0, 0], 1.0, 12))
104 sum_init = Parameter("sum_init", DataType10, quantize([1, 1], 1.0, 12))
109 x: quantize(x_data, 0.5, 12),
111 sum: quantize(sum_data, 1.0, 12),
Dwhile_sum_of_powers_quant8.mod.py35 def quantize(data, scale, offset): function
88 zero = Parameter("zero", DataType10, quantize([0, 0], 1.0, 128))
104 sum_init = Parameter("sum_init", DataType10, quantize([1, 1], 1.0, 128))
109 x: quantize(x_data, 0.5, 128),
111 sum: quantize(sum_data, 1.0, 128),
Dtanh_quant8_signed.mod.py24 def quantize(x): function
32 output_values = [quantize(math.tanh(dequantize(x))) for x in input_values]
Dsub_quant8_signed.mod.py23 def quantize(x, scale, offset): function
32 return quantize(a_dequantized - b_dequantized, output_scale, output_offset)
/frameworks/ml/nn/common/operations/
DQuantize.cpp30 namespace quantize { namespace
131 NN_REGISTER_OPERATION(QUANTIZE, "QUANTIZE", quantize::validate, quantize::prepare,
132 quantize::execute, .allowZeroSizedInput = true);
/frameworks/ml/nn/runtime/test/generated/spec_V1_2/
Dquantize.example.cpp7 namespace generated_tests::quantize { namespace
54 namespace generated_tests::quantize { namespace
135 namespace generated_tests::quantize { namespace
182 namespace generated_tests::quantize { namespace
263 namespace generated_tests::quantize { namespace
310 namespace generated_tests::quantize { namespace
391 namespace generated_tests::quantize { namespace
438 namespace generated_tests::quantize { namespace
519 namespace generated_tests::quantize { namespace
566 namespace generated_tests::quantize { namespace
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dsub_quantized_different_scales.mod.py22 def quantize(x, scale, offset): function
31 return quantize(a_dequantized - b_dequantized, output_scale, output_offset)
Dtanh_v1_2.mod.py38 def quantize(x): function
46 output_values = [quantize(math.tanh(dequantize(x))) for x in input_values]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DDepthTransform.java29 public int quantize(float depth); in quantize() method
DBlurStack.java151 depthTransform.quantize(focusDepth3D * (1 - depthOfField))); in createFromDepthTransform()
153 depthTransform.quantize(focusDepth3D * (1 + depthOfField))); in createFromDepthTransform()
DDepthImage.java141 int value = transform.quantize(floatPixels[i]) & 0xFF; in createFromPFM()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DQuantizer.java25 void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters); in quantize() method
DVariationalKMeansQuantizer.java76 public void quantize(int[] pixels, int maxColors, Palette.Filter[] filters) { in quantize() method in VariationalKMeansQuantizer
DColorCutQuantizer.java91 public void quantize(final int[] pixels, final int maxColors, final Palette.Filter[] filters) { in quantize() method in ColorCutQuantizer
DPalette.java838 mQuantizer.quantize(getPixelsFromBitmap(bitmap), in generate()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/
DRangeLinearDepthTransform.java39 public int quantize(float value) { in quantize() method in RangeLinearDepthTransform
DRangeInverseDepthTransform.java38 public int quantize(float value) { in quantize() method in RangeInverseDepthTransform
/frameworks/ml/nn/common/
DOperationsUtils.cpp55 auto quantize = [scale, zero_point](float f) { in CalculateActivationRangeImpl() local
60 *act_min = std::max(qmin, quantize(0.0)); in CalculateActivationRangeImpl()
63 *act_min = std::max(qmin, quantize(0.0)); in CalculateActivationRangeImpl()
64 *act_max = std::min(qmax, quantize(6.0)); in CalculateActivationRangeImpl()
66 *act_min = std::max(qmin, quantize(-1.0)); in CalculateActivationRangeImpl()
67 *act_max = std::min(qmax, quantize(1.0)); in CalculateActivationRangeImpl()