diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2017-12-21 19:50:06 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:43:42 +0000 |
commit | a66eaa2a374a50b798159d95431c946fdda22a24 (patch) | |
tree | 8d321b8280d9151890d161da3779438c50e05fb1 /src/graph/nodes/DepthwiseConvolutionLayer.cpp | |
parent | 621965e3e9ef301d2668c60702f5fb79daea8d26 (diff) | |
download | ComputeLibrary-a66eaa2a374a50b798159d95431c946fdda22a24.tar.gz |
COMPMID-752 Creating an example for QASYMM8 MobileNet
Change-Id: Ic76b3b6adaff8c84ba4d2ca5283d9291c69344f0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114466
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/graph/nodes/DepthwiseConvolutionLayer.cpp')
-rw-r--r-- | src/graph/nodes/DepthwiseConvolutionLayer.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/graph/nodes/DepthwiseConvolutionLayer.cpp b/src/graph/nodes/DepthwiseConvolutionLayer.cpp index b4598538c1..1209d0376e 100644 --- a/src/graph/nodes/DepthwiseConvolutionLayer.cpp +++ b/src/graph/nodes/DepthwiseConvolutionLayer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -43,11 +43,14 @@ std::unique_ptr<arm_compute::IFunction> DepthwiseConvolutionLayer::instantiate_n TensorShape shape = in->info()->tensor_shape(); shape.set(Window::DimX, _conv_width); shape.set(Window::DimY, _conv_height); - _weights.set_info(TensorInfo(TensorShape(shape), in->info()->num_channels(), in->info()->data_type(), in->info()->fixed_point_position())); + TensorInfo info = TensorInfo(TensorShape(shape), in->info()->num_channels(), in->info()->data_type(), in->info()->fixed_point_position()); + info.set_quantization_info(_quant_info); + _weights.set_info(std::move(info)); } if(_biases.has_accessor() && _biases.tensor() == nullptr) { - _biases.set_info(TensorInfo(TensorShape(in->info()->dimension(2)), in->info()->num_channels(), in->info()->data_type(), in->info()->fixed_point_position())); + DataType dt = in->info()->data_type(); + _biases.set_info(TensorInfo(TensorShape(in->info()->dimension(2)), in->info()->num_channels(), is_data_type_quantized_asymmetric(dt) ? DataType::S32 : dt, in->info()->fixed_point_position())); } bool weights_is_loaded = _weights.tensor() != nullptr; |