Home
last modified time | relevance | path

Searched refs:quantization_type (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/lite/testing/model_coverage/
Dmodel_coverage_quantization_test.py92 def _test_quantization_goldens(self, quantization_type, converter, input_data, argument
98 if quantization_type == QuantizationType.FLOAT16:
100 elif quantization_type in (QuantizationType.FULL_INTEGER,
110 if quantization_type == QuantizationType.FULL_INTEGER_16X8:
121 def test_mobilenet_v1(self, quantization_type): argument
133 quantization_type,
136 golden_name="mobilenet_v1_%s" % quantization_type.value)
139 def test_mobilenet_v2(self, quantization_type): argument
147 quantization_type,
150 golden_name="mobilenet_v2_%s" % quantization_type.value)
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Ddepthwiseconv_quantized_test.cc88 quantization_type(::testing::get<2>(param_tuple)), in TestParam()
102 static_cast<int>(param.quantization_type), param.test_stride, in TestNameSuffix()
109 QuantizationType quantization_type = QuantizationType::kNonPerChannelUint8; member
119 template <QuantizationType quantization_type>
122 const typename QuantizationTypeImpl<quantization_type>::ExternalType* in DispatchDepthwiseConvGeneral()
125 const typename QuantizationTypeImpl<quantization_type>::ExternalType* in DispatchDepthwiseConvGeneral()
131 typename QuantizationTypeImpl<quantization_type>::ExternalType* output_data, in DispatchDepthwiseConvGeneral()
154 template <QuantizationType quantization_type>
158 const typename QuantizationTypeImpl<quantization_type>::ExternalType* in DispatchDepthwiseConvImpl()
161 const typename QuantizationTypeImpl<quantization_type>::ExternalType* in DispatchDepthwiseConvImpl()
[all …]
/external/tensorflow/tensorflow/lite/tools/optimize/
Dmodify_model_interface_test.cc32 const TensorType& quantization_type) { in CreateQuantizedModelSingleInputOutput() argument
98 tensor_1->type = quantization_type; in CreateQuantizedModelSingleInputOutput()
106 tensor_2->type = quantization_type; in CreateQuantizedModelSingleInputOutput()
127 const TensorType& quantization_type) { in CreateQuantizedModelMultipleInputOutput() argument
208 tensor_2->type = quantization_type; in CreateQuantizedModelMultipleInputOutput()
216 tensor_3->type = quantization_type; in CreateQuantizedModelMultipleInputOutput()
224 tensor_4->type = quantization_type; in CreateQuantizedModelMultipleInputOutput()
232 tensor_5->type = quantization_type; in CreateQuantizedModelMultipleInputOutput()
310 TensorType quantization_type = GetParam(); in TEST_P() local
312 auto model = CreateQuantizedModelSingleInputOutput(quantization_type); in TEST_P()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Ddepthwiseconv_uint8_3x3_filter.h6055 template <QuantizationType quantization_type>
6057 quantization_type,
6061 const typename QuantizationTypeImpl<quantization_type>::ExternalType*
6083 QuantizationTypeImpl<quantization_type>::kUint8SignBit;
6105 const typename QuantizationTypeImpl<quantization_type>::ExternalType*
6137 if (quantization_type == QuantizationType::kNonPerChannelUint8) {
6155 if (quantization_type == QuantizationType::kNonPerChannelUint8) {
6174 if (quantization_type == QuantizationType::kNonPerChannelUint8) {
6188 if (quantization_type == QuantizationType::kNonPerChannelUint8) {
6214 if (quantization_type == QuantizationType::kNonPerChannelUint8) {
[all …]
Ddepthwiseconv_uint8_transitional.h71 template <QuantizationType quantization_type>
73 quantization_type> {
83 QuantizationTypeImpl<quantization_type>::kIntSymmetricZeroPoint;
130 QuantizationTypeImpl<quantization_type>::kIntSymmetricZeroPoint;
174 template <QuantizationType quantization_type>
176 quantization_type> {
202 QuantizationTypeImpl<quantization_type>::kIntSymmetricZeroPoint;
290 template <QuantizationType quantization_type>
292 quantization_type> {
294 const typename QuantizationTypeImpl<quantization_type>::ExternalType*
[all …]
Ddepthwiseconv_3x3_filter_common.h229 template <QuantizationType quantization_type>
249 QuantizationType quantization_type = QuantizationType::kNonPerChannelUint8>
255 QuantizationTypeImpl<quantization_type>::kIntSymmetricZeroPoint;
279 if (quantization_type == QuantizationType::kPerChannelInt8) {
438 QuantizationType quantization_type = QuantizationType::kNonPerChannelUint8>
507 QuantizationType quantization_type>
526 QuantizationType quantization_type,
545 QuantizationType quantization_type,
/external/libtextclassifier/native/lang_id/common/flatbuffers/
Dembedding-network-params-from-flatbuffer.cc407 saft_fbs::QuantizationType quantization_type = matrix->quantization_type(); in SafeGetQuantizationType() local
411 switch (quantization_type) { in SafeGetQuantizationType()
422 << static_cast<int>(quantization_type); in SafeGetQuantizationType()
432 saft_fbs::QuantizationType quantization_type = matrix->quantization_type(); in SafeGetValuesOfMatrix() local
433 switch (quantization_type) { in SafeGetValuesOfMatrix()
444 << static_cast<int>(quantization_type); in SafeGetValuesOfMatrix()
Dembedding-network.fbs48 quantization_type:QuantizationType = NONE;
51 // |quantization_type|.
55 // |quantization_type|.
60 // comments for |quantization_type|.
/external/tensorflow/tensorflow/lite/python/
Dutil_test.py262 def _generate_integer_tflite_model(quantization_type=dtypes.int8): argument
306 if quantization_type == dtypes.int8:
351 quantization_type=dtypes.int16)
354 def test(self, is_post_train, quantization_type, in_tftype, out_tftype): argument
393 if is_post_train and quantization_type == tf.int8:
395 elif is_post_train and quantization_type == tf.int16:
/external/llvm-project/mlir/docs/Dialects/
DTOSA.md135 quantization_type. Precision related manipulation of the input or output are