diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-12-13 12:48:25 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-12-14 11:34:52 +0000 |
commit | 59a950cefe927d002aa00d7c3af54f4389e00162 (patch) | |
tree | e5152463ef83a1ef42a6f44f17bc9c40b8eacde7 /src/armnn/layers/ElementwiseBaseLayer.hpp | |
parent | 20e984f442483493ece882c3040785368eb31c96 (diff) | |
download | armnn-59a950cefe927d002aa00d7c3af54f4389e00162.tar.gz |
IVGCVSW-2377 Add no-op factory implementations for all backends for the
Greater operation
* Added QueueDescriptor in WorkloadData.hpp
* Added CreateGreater function in WorkloadFactory.hpp
* Added stub implementation of the CreateGreater function in RefWorkloadFactory,
NeonWorkloadFactory and ClWorkloadFactory
* Added GreaterLayer stub implementation
* Renamed ArithmeticBaseLayer to ElementwiseBaseLayer
Change-Id: I7e38c2936de905da921a92ba3f918478169ec7f5
Diffstat (limited to 'src/armnn/layers/ElementwiseBaseLayer.hpp')
-rw-r--r-- | src/armnn/layers/ElementwiseBaseLayer.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/armnn/layers/ElementwiseBaseLayer.hpp b/src/armnn/layers/ElementwiseBaseLayer.hpp new file mode 100644 index 0000000000..f0821ecfe9 --- /dev/null +++ b/src/armnn/layers/ElementwiseBaseLayer.hpp @@ -0,0 +1,27 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include <Layer.hpp> + +namespace armnn +{ + +/// NOTE: this is an abstract class, it does not implement: +/// std::unique_ptr<IWorkload> Layer::CreateWorkload(const Graph& graph, const IWorkloadFactory& factory) const = 0; +/// Layer* Clone(Graph& graph) const = 0; +class ElementwiseBaseLayer : public Layer +{ +public: + void ValidateTensorShapesFromInputs() override; + std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override; + +protected: + ElementwiseBaseLayer(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const char* name); + ~ElementwiseBaseLayer() = default; +}; + +} // namespace |