Searched refs:q_params (Results 1 – 5 of 5) sorted by relevance
/external/tensorflow/tensorflow/lite/c/ |
D | common.c | 93 TfLiteAffineQuantization* q_params = in TfLiteQuantizationFree() local 95 if (q_params->scale) { in TfLiteQuantizationFree() 96 TfLiteFloatArrayFree(q_params->scale); in TfLiteQuantizationFree() 97 q_params->scale = NULL; in TfLiteQuantizationFree() 99 if (q_params->zero_point) { in TfLiteQuantizationFree() 100 TfLiteIntArrayFree(q_params->zero_point); in TfLiteQuantizationFree() 101 q_params->zero_point = NULL; in TfLiteQuantizationFree() 103 free(q_params); in TfLiteQuantizationFree()
|
/external/tensorflow/tensorflow/lite/python/interpreter_wrapper/ |
D | interpreter_wrapper.cc | 394 const TfLiteAffineQuantization* q_params = in TensorQuantizationParameters() local 396 if (q_params->scale) { in TensorQuantizationParameters() 397 scales_data = q_params->scale->data; in TensorQuantizationParameters() 398 scales_size = q_params->scale->size; in TensorQuantizationParameters() 400 if (q_params->zero_point) { in TensorQuantizationParameters() 401 zero_points_data = q_params->zero_point->data; in TensorQuantizationParameters() 402 zero_points_size = q_params->zero_point->size; in TensorQuantizationParameters() 404 quantized_dimension = q_params->quantized_dimension; in TensorQuantizationParameters()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | test_util.h | 333 flatbuffers::Offset<QuantizationParameters> q_params = 0; variable 350 q_params = CreateQuantizationParameters( 368 /*name=*/0, q_params, /*is_variable=*/false, s_param)); 638 flatbuffers::Offset<QuantizationParameters> q_params = 0; variable 661 q_params = CreateQuantizationParameters( 686 /*name=*/0, q_params, is_variable, 775 flatbuffers::Offset<QuantizationParameters> q_params = 0; in AddTensorPerChannelQuant() local 776 q_params = CreateQuantizationParameters( in AddTensorPerChannelQuant() 803 /*name=*/0, q_params, /*is_variable=*/false)); in AddTensorPerChannelQuant()
|
D | test_util.cc | 111 flatbuffers::Offset<QuantizationParameters> q_params = in AddIntermediate() local 118 /*name=*/0, q_params, false)); in AddIntermediate()
|
/external/tensorflow/tensorflow/compiler/mlir/lite/ |
D | flatbuffer_export.cc | 717 BufferOffset<tflite::QuantizationParameters> q_params = 0; in BuildTensorFromType() local 719 q_params = tflite::CreateQuantizationParameters( in BuildTensorFromType() 726 q_params = tflite::CreateQuantizationParameters( in BuildTensorFromType() 733 /*buffer=*/0, builder_.CreateString(name), q_params, in BuildTensorFromType() 801 BufferOffset<tflite::QuantizationParameters> q_params; in BuildTensor() local 803 q_params = tflite::CreateQuantizationParameters( in BuildTensor() 815 q_params = tflite::CreateQuantizationParameters( in BuildTensor() 821 q_params = quant_parameters.getValue(); in BuildTensor() 823 q_params = tflite::CreateQuantizationParameters(builder_); in BuildTensor() 839 (is_variable ? 0 : buffer_idx), builder_.CreateString(name), q_params, in BuildTensor() [all …]
|