From a66eaa2a374a50b798159d95431c946fdda22a24 Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Thu, 21 Dec 2017 19:50:06 +0000 Subject: COMPMID-752 Creating an example for QASYMM8 MobileNet Change-Id: Ic76b3b6adaff8c84ba4d2ca5283d9291c69344f0 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114466 Tested-by: Jenkins Reviewed-by: Pablo Tello Reviewed-by: Georgios Pinitas --- arm_compute/graph/nodes/DepthwiseConvolutionLayer.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'arm_compute/graph/nodes/DepthwiseConvolutionLayer.h') diff --git a/arm_compute/graph/nodes/DepthwiseConvolutionLayer.h b/arm_compute/graph/nodes/DepthwiseConvolutionLayer.h index 8b7e3b8296..2d4bd1e0c2 100644 --- a/arm_compute/graph/nodes/DepthwiseConvolutionLayer.h +++ b/arm_compute/graph/nodes/DepthwiseConvolutionLayer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,10 +50,12 @@ public: * @param[in] biases Biases values tensor * @param[in] conv_info Convolution info * @param[in] opt3x3 (Optional) If true executes DepthwiseConvolutionLayer3x3 + * @param[in] quant_info (Optional) Quantization info used for weights */ template - DepthwiseConvolutionLayer(unsigned int conv_width, unsigned int conv_height, AccessorType &&weights, AccessorType &&biases, const PadStrideInfo conv_info, bool opt3x3 = true) - : _conv_width(conv_width), _conv_height(conv_height), _weights(std::move(weights)), _biases(std::move(biases)), _conv_info(conv_info), _opt3x3(opt3x3) + DepthwiseConvolutionLayer(unsigned int conv_width, unsigned int conv_height, AccessorType &&weights, AccessorType &&biases, const PadStrideInfo conv_info, bool opt3x3 = true, + const QuantizationInfo quant_info = QuantizationInfo()) + : _conv_width(conv_width), _conv_height(conv_height), _weights(std::move(weights)), _biases(std::move(biases)), _conv_info(conv_info), _opt3x3(opt3x3), _quant_info(std::move(quant_info)) { } @@ -61,12 +63,13 @@ public: std::unique_ptr instantiate_node(GraphContext &ctx, ITensorObject *input, ITensorObject *output) override; private: - unsigned int _conv_width; - unsigned int _conv_height; - Tensor _weights; - Tensor _biases; - const PadStrideInfo _conv_info; - bool _opt3x3; + unsigned int _conv_width; + unsigned int _conv_height; + Tensor _weights; + Tensor _biases; + const PadStrideInfo _conv_info; + bool _opt3x3; + const QuantizationInfo _quant_info; }; } // namespace graph } // namespace arm_compute -- cgit v1.2.1