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 /arm_compute/graph/nodes/DepthwiseConvolutionLayer.h | |
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 'arm_compute/graph/nodes/DepthwiseConvolutionLayer.h')
-rw-r--r-- | arm_compute/graph/nodes/DepthwiseConvolutionLayer.h | 21 |
1 files changed, 12 insertions, 9 deletions
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 <typename AccessorType> - 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<arm_compute::IFunction> 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 |