ArmNN
 25.11
Loading...
Searching...
No Matches
SpaceToBatchNdDescriptor Struct Reference

A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for SpaceToBatchNdDescriptor:
[legend]
Collaboration diagram for SpaceToBatchNdDescriptor:
[legend]

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.
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).

Detailed Description

A SpaceToBatchNdDescriptor for the SpaceToBatchNdLayer.

Definition at line 1043 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ SpaceToBatchNdDescriptor() [1/2]

Definition at line 1045 of file Descriptors.hpp.

1046 : m_BlockShape({1, 1})
1047 , m_PadList({{0, 0}, {0, 0}})
1048 , m_DataLayout(DataLayout::NCHW)
1049 {}

References m_BlockShape.

Referenced by operator==().

◆ SpaceToBatchNdDescriptor() [2/2]

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

Definition at line 1051 of file Descriptors.hpp.

1053 : m_BlockShape(blockShape)
1054 , m_PadList(padList)
1055 , m_DataLayout(DataLayout::NCHW)
1056 {}

References m_BlockShape, m_DataLayout, m_PadList, and armnn::NCHW.

Member Function Documentation

◆ operator==()

bool operator== ( const SpaceToBatchNdDescriptor & rhs) const
inline

Definition at line 1058 of file Descriptors.hpp.

1059 {
1060 return m_BlockShape == rhs.m_BlockShape &&
1061 m_PadList == rhs.m_PadList &&
1062 m_DataLayout == rhs.m_DataLayout;
1063 }

References m_BlockShape, m_DataLayout, m_PadList, and SpaceToBatchNdDescriptor().

Member Data Documentation

◆ m_BlockShape

◆ m_DataLayout

◆ m_PadList


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