ArmNN
 20.11
BatchToSpaceNdDescriptor Struct Reference

A BatchToSpaceNdDescriptor for the BatchToSpaceNdLayer. More...

#include <Descriptors.hpp>

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 668 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ BatchToSpaceNdDescriptor() [1/2]

Definition at line 670 of file Descriptors.hpp.

References armnn::NCHW.

671  : m_BlockShape({1, 1})
672  , m_Crops({{0, 0}, {0, 0}})
674  {}
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 676 of file Descriptors.hpp.

678  : m_BlockShape(blockShape)
679  , m_Crops(crops)
681  {}
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 683 of file Descriptors.hpp.

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

684  {
685  return m_BlockShape == rhs.m_BlockShape &&
686  m_Crops == rhs.m_Crops &&
687  m_DataLayout == rhs.m_DataLayout;
688  }
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: