Home
last modified time | relevance | path

Searched refs:quantized_dimension (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/lite/kernels/internal/
Dper_channel_dequantize_test.cc32 const int quantized_dimension = 0; in TEST() local
43 op_params.quantized_dimension = quantized_dimension; in TEST()
54 const int quantized_dimension = 2; in TEST() local
65 op_params.quantized_dimension = quantized_dimension; in TEST()
76 const int quantized_dimension = 0; in TEST() local
88 op_params.quantized_dimension = quantized_dimension; in TEST()
100 const int quantized_dimension = 3; in TEST() local
112 op_params.quantized_dimension = quantized_dimension; in TEST()
/external/tensorflow/tensorflow/lite/micro/
Dmicro_utils.cc37 int quantized_dimension, in SignedSymmetricPerChannelQuantize() argument
41 int channel_count = dims->data[quantized_dimension]; in SignedSymmetricPerChannelQuantize()
46 if (quantized_dimension == 0) { in SignedSymmetricPerChannelQuantize()
49 } else if (quantized_dimension == 3) { in SignedSymmetricPerChannelQuantize()
Dtest_helpers.cc1021 TfLiteAffineQuantization* affine_quant, int quantized_dimension, in CreatePerChannelQuantizedBiasTensor() argument
1024 int num_channels = dims->data[quantized_dimension]; in CreatePerChannelQuantizedBiasTensor()
1039 affine_quant->quantized_dimension = quantized_dimension; in CreatePerChannelQuantizedBiasTensor()
1049 int quantized_dimension, bool is_variable) { in CreateSymmetricPerChannelQuantizedTensor() argument
1050 int channel_count = dims->data[quantized_dimension]; in CreateSymmetricPerChannelQuantizedTensor()
1054 SignedSymmetricPerChannelQuantize(input, dims, quantized_dimension, quantized, in CreateSymmetricPerChannelQuantizedTensor()
1063 affine_quant->quantized_dimension = quantized_dimension; in CreateSymmetricPerChannelQuantizedTensor()
Dtest_helpers.h212 TfLiteAffineQuantization* affine_quant, int quantized_dimension,
218 int quantized_dimension, bool is_variable = false);
Dmicro_utils.h96 int quantized_dimension,
Dmicro_allocator.cc566 quantization->quantized_dimension = src_quantization->quantized_dimension(); in InitializeTfLiteTensorFromFlatbuffer()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Ddequantize.h57 const int32_t quantized_dimension = op_params.quantized_dimension; in PerChannelDequantize() local
66 const int channel = current_dim[quantized_dimension]; in PerChannelDequantize()
/external/tensorflow/tensorflow/lite/
Dinterpreter_builder.cc384 if (src_quantization->quantized_dimension() < 0 || in ParseQuantization()
386 src_quantization->quantized_dimension() >= dims.size())) { in ParseQuantization()
389 src_quantization->quantized_dimension()); in ParseQuantization()
397 num_scales != dims[src_quantization->quantized_dimension()])) { in ParseQuantization()
401 dims[src_quantization->quantized_dimension()], num_scales); in ParseQuantization()
416 affine_quantization->quantized_dimension = in ParseQuantization()
417 src_quantization->quantized_dimension(); in ParseQuantization()
/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dmli_tf_utils.h70 mliT->el_params.asym.dim = affine_quantization->quantized_dimension; in ConvertToMliQuantParamsPerChannel()
74 mliT->shape[affine_quantization->quantized_dimension]; in ConvertToMliQuantParamsPerChannel()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/
Dmodel_builder_helper.h89 op_params.quantized_dimension = quant_params->quantized_dimension; in DequantizeConstantTensor()
/external/tensorflow/tensorflow/lite/kernels/
Dkernel_util_test.cc310 filter_params->quantized_dimension = 0; in TEST_F()
413 filter_params->quantized_dimension = 0; in TEST_F()
524 filter_params->quantized_dimension = 0; in TEST_F()
628 filter_params->quantized_dimension = 0; in TEST_F()
727 filter_params->quantized_dimension = 0; in TEST_F()
Dkernel_util.cc234 filter->dims->data[affine_quantization->quantized_dimension]); in PopulateConvolutionQuantizationParams()
Dtest_util.h407 const int channel_index = params->quantized_dimension; in PerChannelSymmetricQuantizeAndPopulate()
824 affine_quantization->quantized_dimension = 0; in QuantizeTensor()
Ddepthwise_conv.cc205 filter->dims->data[affine_quantization->quantized_dimension]); in Prepare()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/
Dimporter_test_min_max.cc136 output_tensor->quantization->quantized_dimension = shape.size() - 1; in InjectStatsToFullyConnected()
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/
Dinterpreter_wrapper.cc392 int32_t quantized_dimension = 0; in TensorQuantizationParameters() local
404 quantized_dimension = q_params->quantized_dimension; in TensorQuantizationParameters()
413 PyTuple_SET_ITEM(result, 2, PyLong_FromLong(quantized_dimension)); in TensorQuantizationParameters()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc159 quantization_params->quantized_dimension = channel_dim_index; in FillPerChannelMinMax()
533 int quantized_dimension, in AddQuantizationParams() argument
551 tensor->quantization->quantized_dimension = quantized_dimension; in AddQuantizationParams()
Dquantization_utils.h86 int quantized_dimension,
Dquantization_utils_test.cc307 EXPECT_EQ(quantization_params.quantized_dimension, channel_dim_idx); in TEST_F()
329 EXPECT_EQ(quantization_params.quantized_dimension, channel_dim_idx); in TEST_F()
Dquantize_model.cc1235 if (tensor->quantization->quantized_dimension != in FillQuantizationParams()
1242 tensor->quantization->quantized_dimension); in FillQuantizationParams()
/external/tensorflow/tensorflow/lite/python/
Dinterpreter_test.py80 quantized_dimension, params): argument
83 self.assertEqual(quantized_dimension, params['quantized_dimension'])
/external/tensorflow/tensorflow/lite/c/
Dcommon.h290 int32_t quantized_dimension; member
/external/tensorflow/tensorflow/lite/g3doc/performance/
Dquantization_spec.md45 `zero_point` per slice in the `quantized_dimension`. The quantized dimension
55 Often, the `quantized_dimension` is the `output_channel` of the weights of
/external/tensorflow/tensorflow/lite/tools/serialization/
Dwriter_lib.cc230 QuantizationDetails_NONE, 0, params->quantized_dimension); in ExportTensors()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc172 quant_params.zero_point, quant_params.quantized_dimension, storage_min, in GetQuantizedType()
274 axis = b.getI64IntegerAttr(tensor.quantization->quantized_dimension); in ConvertMinMaxToStatsOp()

12