aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/nodes/DepthwiseConvolutionLayer.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/graph/nodes/DepthwiseConvolutionLayer.h')
-rw-r--r--arm_compute/graph/nodes/DepthwiseConvolutionLayer.h21
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