diff options
Diffstat (limited to 'include/armnn/Descriptors.hpp')
-rw-r--r-- | include/armnn/Descriptors.hpp | 12 |
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 { |