Searched refs:src_quantization (Results 1 – 3 of 3) sorted by relevance
357 const QuantizationParameters* src_quantization, in ParseQuantization() argument360 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 …]
95 TfLiteStatus ParseQuantization(const QuantizationParameters* src_quantization,
507 const auto* src_quantization = flatbuffer_tensor.quantization(); in InitializeTfLiteTensorFromFlatbuffer() local508 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 …]