Home
last modified time | relevance | path

Searched refs:src_quantization (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/lite/
Dinterpreter_builder.cc357 const QuantizationParameters* src_quantization, in ParseQuantization() argument
360 if (!src_quantization || !src_quantization->scale() || in ParseQuantization()
361 src_quantization->scale()->size() == 0) { in ParseQuantization()
364 if (!src_quantization->zero_point()) { in ParseQuantization()
371 if (src_quantization->scale()->size() != in ParseQuantization()
372 src_quantization->zero_point()->size()) { in ParseQuantization()
376 src_quantization->zero_point()->size(), in ParseQuantization()
377 src_quantization->scale()->size()); in ParseQuantization()
381 const size_t num_scales = src_quantization->scale()->size(); in ParseQuantization()
384 if (src_quantization->quantized_dimension() < 0 || in ParseQuantization()
[all …]
Dinterpreter_builder.h95 TfLiteStatus ParseQuantization(const QuantizationParameters* src_quantization,
/external/tensorflow/tensorflow/lite/micro/
Dmicro_allocator.cc507 const auto* src_quantization = flatbuffer_tensor.quantization(); in InitializeTfLiteTensorFromFlatbuffer() local
508 if (src_quantization && src_quantization->scale() && in InitializeTfLiteTensorFromFlatbuffer()
509 (src_quantization->scale()->size() > 0) && in InitializeTfLiteTensorFromFlatbuffer()
510 src_quantization->zero_point() && in InitializeTfLiteTensorFromFlatbuffer()
511 (src_quantization->zero_point()->size() > 0)) { in InitializeTfLiteTensorFromFlatbuffer()
514 result->params.scale = src_quantization->scale()->Get(0); in InitializeTfLiteTensorFromFlatbuffer()
519 static_cast<int32_t>(src_quantization->zero_point()->Get(0)); in InitializeTfLiteTensorFromFlatbuffer()
522 int channels = src_quantization->scale()->size(); in InitializeTfLiteTensorFromFlatbuffer()
556 allocator, error_reporter, src_quantization->scale(), in InitializeTfLiteTensorFromFlatbuffer()
562 zero_point_data[i] = src_quantization->zero_point()->Get(i); in InitializeTfLiteTensorFromFlatbuffer()
[all …]