/external/tensorflow/tensorflow/lite/testing/model_coverage/ |
D | model_coverage_quantization_test.py | 92 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/ |
D | depthwiseconv_quantized_test.cc | 88 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/ |
D | modify_model_interface_test.cc | 32 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/ |
D | depthwiseconv_uint8_3x3_filter.h | 6055 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 …]
|
D | depthwiseconv_uint8_transitional.h | 71 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 …]
|
D | depthwiseconv_3x3_filter_common.h | 229 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/ |
D | embedding-network-params-from-flatbuffer.cc | 407 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()
|
D | embedding-network.fbs | 48 quantization_type:QuantizationType = NONE; 51 // |quantization_type|. 55 // |quantization_type|. 60 // comments for |quantization_type|.
|
/external/tensorflow/tensorflow/lite/python/ |
D | util_test.py | 262 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/ |
D | TOSA.md | 135 quantization_type. Precision related manipulation of the input or output are
|