diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-07 18:31:47 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-12-13 10:42:12 +0000 |
commit | 05045c1e052dbba4e44bf0bb8ead3e9b5220d04e (patch) | |
tree | e17a64e9cd0f0927bd75f540b6aeb55ba24953d4 /arm_compute/graph/nodes | |
parent | 35767bc09f21050a9767a91b086b327afc928a81 (diff) | |
download | ComputeLibrary-05045c1e052dbba4e44bf0bb8ead3e9b5220d04e.tar.gz |
COMPMID-1071: (3RDPARTY_UPDATE) Add depth multiplier on DepthwiseConv 3x3 NHWC
Change-Id: I316ff40dda379d4b84fac5d63f0c56efbacbc2b4
Reviewed-on: https://review.mlplatform.org/371
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'arm_compute/graph/nodes')
-rw-r--r-- | arm_compute/graph/nodes/DepthwiseConvolutionLayerNode.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/arm_compute/graph/nodes/DepthwiseConvolutionLayerNode.h b/arm_compute/graph/nodes/DepthwiseConvolutionLayerNode.h index 7fa44b798f..8c0aae13c9 100644 --- a/arm_compute/graph/nodes/DepthwiseConvolutionLayerNode.h +++ b/arm_compute/graph/nodes/DepthwiseConvolutionLayerNode.h @@ -36,10 +36,13 @@ class DepthwiseConvolutionLayerNode final : public INode public: /** Constructor * - * @param[in] info Convolution layer attributes - * @param[in] method Depthwise convolution method to use + * @param[in] info Convolution layer attributes + * @param[in] depth_multiplier (Optional) Depth multiplier parameter. + * @param[in] method (Optional) Depthwise convolution method to use */ - DepthwiseConvolutionLayerNode(PadStrideInfo info, DepthwiseConvolutionMethod method = DepthwiseConvolutionMethod::Default); + DepthwiseConvolutionLayerNode(PadStrideInfo info, + int depth_multiplier = 1, + DepthwiseConvolutionMethod method = DepthwiseConvolutionMethod::Default); /** Sets the depthwise convolution method to use * * @param[in] method Depthwise convolution method to use @@ -53,6 +56,11 @@ public: * @return Depthwise convolution layer method do be used by the node */ DepthwiseConvolutionMethod depthwise_convolution_method() const; + /** Depth multiplier accessor + * + * @return Depth multiplier + */ + int depth_multiplier() const; /** Convolution metadata accessor * * @return Convolution information @@ -73,12 +81,14 @@ public: * @param[in] input_descriptor Input descriptor * @param[in] weights_descriptor Weights descriptor * @param[in] info Convolution operation attributes + * @param[in] depth_multiplier (Optional) Depth multiplier parameter. * * @return Output descriptor */ static TensorDescriptor compute_output_descriptor(const TensorDescriptor &input_descriptor, const TensorDescriptor &weights_descriptor, - const PadStrideInfo &info); + const PadStrideInfo &info, + int depth_multiplier = 1); // Inherited overridden methods: NodeType type() const override; @@ -91,6 +101,7 @@ public: private: PadStrideInfo _info; + int _depth_multiplier; DepthwiseConvolutionMethod _method; ActivationLayerInfo _fused_activation; }; |