aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/Descriptors.hpp
diff options
context:
space:
mode:
authorAron Virginas-Tar <Aron.Virginas-Tar@arm.com>2019-09-19 14:31:17 +0100
committerÁron Virginás-Tar <aron.virginas-tar@arm.com>2019-09-20 14:18:22 +0000
commitdd6247f52dcb33bd03391b7ee573d7082e18cca7 (patch)
treefb849d8afc6ffd74c1f6334d1f81b92a367fd024 /include/armnn/Descriptors.hpp
parenta2f4b4be6adbd8b53e4e860c4d7c3a704e343395 (diff)
downloadarmnn-dd6247f52dcb33bd03391b7ee573d7082e18cca7.tar.gz
IVGCVSW-3883 Add frontend for DepthToSpace layer
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I18d957af6e988ffb6b9ee46ac836d1f38600e10b
Diffstat (limited to 'include/armnn/Descriptors.hpp')
-rw-r--r--include/armnn/Descriptors.hpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/armnn/Descriptors.hpp b/include/armnn/Descriptors.hpp
index 686536f53e..c973089df6 100644
--- a/include/armnn/Descriptors.hpp
+++ b/include/armnn/Descriptors.hpp
@@ -589,16 +589,24 @@ struct SpaceToBatchNdDescriptor
struct SpaceToDepthDescriptor
{
SpaceToDepthDescriptor()
- : m_BlockSize(1u)
- , m_DataLayout(DataLayout::NHWC)
+ : SpaceToDepthDescriptor(1u, DataLayout::NHWC)
+ {}
+
+ SpaceToDepthDescriptor(unsigned int blockSize, DataLayout dataLayout)
+ : m_BlockSize(blockSize)
+ , m_DataLayout(dataLayout)
{}
/// Scalar specifying the input block size. It must be >= 1
unsigned int m_BlockSize;
+
/// The data layout to be used (NCHW, NHWC).
DataLayout m_DataLayout;
};
+/// A DepthToSpaceDescriptor for the DepthToSpaceLayer
+using DepthToSpaceDescriptor = SpaceToDepthDescriptor;
+
/// An LstmDescriptor for the LstmLayer.
struct LstmDescriptor
{