aboutsummaryrefslogtreecommitdiff
path: root/src/graph
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-09-07 10:51:27 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commitfd7e8531b1eddf28d4f80d1423ca506ed1b7fa06 (patch)
treec00c84da9a125621159473baf95def6090258bbb /src/graph
parent7cd7021bcd6c2fcfea164a01245dc43ade2bbe68 (diff)
downloadComputeLibrary-fd7e8531b1eddf28d4f80d1423ca506ed1b7fa06.tar.gz
COMPMID-1451: Print output quant info
Change-Id: I2398d827ffc9bbfec1310897c4e754f16fa1a269 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147308 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/graph')
-rw-r--r--src/graph/backends/NEON/NEFunctionFactory.cpp14
1 files changed, 11 insertions, 3 deletions
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<IFunction> create_convolution_layer<NEConvolutionLayerFunctions,
NETargetInfo::TensorType *biases = get_backing_tensor<NETargetInfo>(node.input(2));
NETargetInfo::TensorType *output = get_backing_tensor<NETargetInfo>(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<IFunction> create_convolution_layer<NEConvolutionLayerFunctions,
}
// Log info
+ std::ostringstream qss;
+ if(is_quantized)
+ {
+ qss << " Input QuantInfo: " << input->info()->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()