diff options
Diffstat (limited to 'src/armnn/layers/FullyConnectedLayer.hpp')
-rw-r--r-- | src/armnn/layers/FullyConnectedLayer.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/armnn/layers/FullyConnectedLayer.hpp b/src/armnn/layers/FullyConnectedLayer.hpp new file mode 100644 index 0000000000..1d6cb7cf8d --- /dev/null +++ b/src/armnn/layers/FullyConnectedLayer.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 FullyConnectedLayer : public LayerWithParameters<FullyConnectedDescriptor> +{ +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; + + FullyConnectedLayer* Clone(Graph& graph) const override; + + void ValidateTensorShapesFromInputs() override; + +protected: + FullyConnectedLayer(const FullyConnectedDescriptor& param, const char* name); + ~FullyConnectedLayer() = default; +}; + +} // namespace |