diff options
author | Éanna Ó Catháin <eanna.ocathain@arm.com> | 2018-11-12 11:36:34 +0000 |
---|---|---|
committer | Les Bell <les.bell@arm.com> | 2018-11-12 13:08:37 +0000 |
commit | 4e1e136cce3fca73ba49b570cfcb620f4ec574da (patch) | |
tree | 1fe9fcbb6a9dbafc12aa99ac543bc0da636a1cd1 /src/armnn/layers/BatchToSpaceNdLayer.hpp | |
parent | f97debb95cbc7e0bbc60e66e5463ede517cac61b (diff) | |
download | armnn-4e1e136cce3fca73ba49b570cfcb620f4ec574da.tar.gz |
IVGCVSW-2054: BATCH_TO_SPACE_ND Reference implementation and Unit tests.
Change-Id: I13c6728dbb60643d0e086d171225c5d802987f92
Diffstat (limited to 'src/armnn/layers/BatchToSpaceNdLayer.hpp')
-rw-r--r-- | src/armnn/layers/BatchToSpaceNdLayer.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/armnn/layers/BatchToSpaceNdLayer.hpp b/src/armnn/layers/BatchToSpaceNdLayer.hpp new file mode 100644 index 0000000000..eb5f979f3a --- /dev/null +++ b/src/armnn/layers/BatchToSpaceNdLayer.hpp @@ -0,0 +1,29 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// +#pragma once + +#include "LayerWithParameters.hpp" + +namespace armnn +{ + +class BatchToSpaceNdLayer : public LayerWithParameters<BatchToSpaceNdDescriptor> +{ +public: + virtual std::unique_ptr<IWorkload> CreateWorkload(const Graph& graph, + const IWorkloadFactory& factory) const override; + + BatchToSpaceNdLayer* Clone(Graph& graph) const override; + + void ValidateTensorShapesFromInputs() override; + + std::vector<TensorShape> InferOutputShapes(const std::vector<TensorShape>& inputShapes) const override; + +protected: + BatchToSpaceNdLayer(const BatchToSpaceNdDescriptor& param, const char* name); + ~BatchToSpaceNdLayer() = default; +}; + +} // namespace |