ArmNN
 21.02
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 673 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ BatchToSpaceNdDescriptor() [1/2]

Definition at line 675 of file Descriptors.hpp.

References armnn::NCHW.

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

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

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

689  {
690  return m_BlockShape == rhs.m_BlockShape &&
691  m_Crops == rhs.m_Crops &&
692  m_DataLayout == rhs.m_DataLayout;
693  }
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: