diff options
Diffstat (limited to 'src/armnn/layers/DepthwiseConvolution2dLayer.hpp')
-rw-r--r-- | src/armnn/layers/DepthwiseConvolution2dLayer.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/armnn/layers/DepthwiseConvolution2dLayer.hpp b/src/armnn/layers/DepthwiseConvolution2dLayer.hpp new file mode 100644 index 0000000000..60691bf73c --- /dev/null +++ b/src/armnn/layers/DepthwiseConvolution2dLayer.hpp @@ -0,0 +1,32 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// See LICENSE file in the project root for full license information. +// +#pragma once + +#include "LayerWithParameters.hpp" + +namespace armnn +{ + +class ScopedCpuTensorHandle; + +class DepthwiseConvolution2dLayer : public LayerWithParameters<DepthwiseConvolution2dDescriptor> +{ +public: + std::unique_ptr<ScopedCpuTensorHandle> m_Weight; + std::unique_ptr<ScopedCpuTensorHandle> m_Bias; + + virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph, + const IWorkloadFactory& factory) const override; + + DepthwiseConvolution2dLayer* Clone(Graph& graph) const override; + + void ValidateTensorShapesFromInputs() override; + +protected: + DepthwiseConvolution2dLayer(const DepthwiseConvolution2dDescriptor& param, const char* name); + ~DepthwiseConvolution2dLayer() = default; +}; + +} // namespace |