From fd7e8531b1eddf28d4f80d1423ca506ed1b7fa06 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 7 Sep 2018 10:51:27 +0100 Subject: COMPMID-1451: Print output quant info Change-Id: I2398d827ffc9bbfec1310897c4e754f16fa1a269 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147308 Reviewed-by: Anthony Barbier Tested-by: Jenkins --- src/graph/backends/NEON/NEFunctionFactory.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/graph') diff --git a/src/graph/backends/NEON/NEFunctionFactory.cpp b/src/graph/backends/NEON/NEFunctionFactory.cpp index 36a25ada10..c6da34f63f 100644 --- a/src/graph/backends/NEON/NEFunctionFactory.cpp +++ b/src/graph/backends/NEON/NEFunctionFactory.cpp @@ -90,7 +90,9 @@ std::unique_ptr create_convolution_layer(node.input(2)); NETargetInfo::TensorType *output = get_backing_tensor(node.output(0)); - if(is_data_type_quantized_asymmetric(input->info()->data_type())) + const bool is_quantized = is_data_type_quantized_asymmetric(input->info()->data_type()); + + if(is_quantized) { biases->info()->set_data_type(DataType::S32); } @@ -124,11 +126,17 @@ std::unique_ptr create_convolution_layerinfo()->quantization_info() + << " Weights QuantInfo: " << weights->info()->quantization_info() + << " Output QuantInfo: " << output->info()->quantization_info(); + } ARM_COMPUTE_LOG_GRAPH_INFO("Instantiated " << func_name << " Target " << NETargetInfo::TargetType << " Data Type: " << input->info()->data_type() - << " Input QuantInfo: " << input->info()->quantization_info() - << " Weights QuantInfo: " << weights->info()->quantization_info() + << qss.str() << " Input shape: " << input->info()->tensor_shape() << " Weights shape: " << weights->info()->tensor_shape() << " Output shape: " << output->info()->tensor_shape() -- cgit v1.2.1