ArmNN
 22.08
SpaceToBatchNdDescriptor Struct Reference

A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for SpaceToBatchNdDescriptor:
BaseDescriptor

Public Member Functions

 SpaceToBatchNdDescriptor ()
 
 SpaceToBatchNdDescriptor (const std::vector< unsigned int > &blockShape, const std::vector< std::pair< unsigned int, unsigned int >> &padList)
 
bool operator== (const SpaceToBatchNdDescriptor &rhs) const
 
- Public Member Functions inherited from BaseDescriptor
virtual bool IsNull () const
 
virtual ~BaseDescriptor ()=default
 

Public Attributes

std::vector< unsigned int > m_BlockShape
 Block shape value. More...
 
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
 Specifies the padding values for the input dimension: heightPad{top, bottom} widthPad{left, right}. More...
 
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC). More...
 

Detailed Description

A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.

Definition at line 1020 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ SpaceToBatchNdDescriptor() [1/2]

Definition at line 1022 of file Descriptors.hpp.

References armnn::NCHW.

1023  : m_BlockShape({1, 1})
1024  , m_PadList({{0, 0}, {0, 0}})
1026  {}
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding values for the input dimension: heightPad{top, bottom} widthPad{left, right}.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape value.

◆ SpaceToBatchNdDescriptor() [2/2]

SpaceToBatchNdDescriptor ( const std::vector< unsigned int > &  blockShape,
const std::vector< std::pair< unsigned int, unsigned int >> &  padList 
)
inline

Definition at line 1028 of file Descriptors.hpp.

1030  : m_BlockShape(blockShape)
1031  , m_PadList(padList)
1033  {}
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding values for the input dimension: heightPad{top, bottom} widthPad{left, right}.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape value.

Member Function Documentation

◆ operator==()

bool operator== ( const SpaceToBatchNdDescriptor rhs) const
inline

Definition at line 1035 of file Descriptors.hpp.

References SpaceToBatchNdDescriptor::m_BlockShape, SpaceToBatchNdDescriptor::m_DataLayout, and SpaceToBatchNdDescriptor::m_PadList.

1036  {
1037  return m_BlockShape == rhs.m_BlockShape &&
1038  m_PadList == rhs.m_PadList &&
1039  m_DataLayout == rhs.m_DataLayout;
1040  }
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding values for the input dimension: heightPad{top, bottom} widthPad{left, right}.
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape value.

Member Data Documentation

◆ m_BlockShape

◆ m_DataLayout

◆ m_PadList


The documentation for this struct was generated from the following file: