ArmNN
 21.11
BatchToSpaceNdDescriptor Struct Reference

A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for BatchToSpaceNdDescriptor:
BaseDescriptor

Public Member Functions

 BatchToSpaceNdDescriptor ()
 
 BatchToSpaceNdDescriptor (std::vector< unsigned int > blockShape, std::vector< std::pair< unsigned int, unsigned int >> crops)
 
bool operator== (const BatchToSpaceNdDescriptor &rhs) const
 

Public Attributes

std::vector< unsigned int > m_BlockShape
 Block shape values. More...
 
std::vector< std::pair< unsigned int, unsigned int > > m_Crops
 The values to crop from the input dimension. More...
 
DataLayout m_DataLayout
 The data layout to be used (NCHW, NHWC). More...
 

Detailed Description

A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer.

Definition at line 748 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ BatchToSpaceNdDescriptor() [1/2]

Definition at line 750 of file Descriptors.hpp.

References armnn::NCHW.

751  : m_BlockShape({1, 1})
752  , m_Crops({{0, 0}, {0, 0}})
754  {}
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape values.
std::vector< std::pair< unsigned int, unsigned int > > m_Crops
The values to crop from the input dimension.

◆ BatchToSpaceNdDescriptor() [2/2]

BatchToSpaceNdDescriptor ( std::vector< unsigned int >  blockShape,
std::vector< std::pair< unsigned int, unsigned int >>  crops 
)
inline

Definition at line 756 of file Descriptors.hpp.

758  : m_BlockShape(blockShape)
759  , m_Crops(crops)
761  {}
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape values.
std::vector< std::pair< unsigned int, unsigned int > > m_Crops
The values to crop from the input dimension.

Member Function Documentation

◆ operator==()

bool operator== ( const BatchToSpaceNdDescriptor rhs) const
inline

Definition at line 763 of file Descriptors.hpp.

References BatchToSpaceNdDescriptor::m_BlockShape, BatchToSpaceNdDescriptor::m_Crops, and BatchToSpaceNdDescriptor::m_DataLayout.

764  {
765  return m_BlockShape == rhs.m_BlockShape &&
766  m_Crops == rhs.m_Crops &&
767  m_DataLayout == rhs.m_DataLayout;
768  }
DataLayout m_DataLayout
The data layout to be used (NCHW, NHWC).
std::vector< unsigned int > m_BlockShape
Block shape values.
std::vector< std::pair< unsigned int, unsigned int > > m_Crops
The values to crop from the input dimension.

Member Data Documentation

◆ m_BlockShape

◆ m_Crops

◆ m_DataLayout


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