ArmNN
 21.02
PadDescriptor Struct Reference

A PadDescriptor for the PadLayer. More...

#include <Descriptors.hpp>

Inheritance diagram for PadDescriptor:
BaseDescriptor

Public Member Functions

 PadDescriptor ()
 
 PadDescriptor (const std::vector< std::pair< unsigned int, unsigned int >> &padList, const float &padValue=0)
 
bool operator== (const PadDescriptor &rhs) const
 

Public Attributes

std::vector< std::pair< unsigned int, unsigned int > > m_PadList
 Specifies the padding for input dimension. More...
 
float m_PadValue
 Optional value to use for padding, defaults to 0. More...
 

Detailed Description

A PadDescriptor for the PadLayer.

Definition at line 975 of file Descriptors.hpp.

Constructor & Destructor Documentation

◆ PadDescriptor() [1/2]

PadDescriptor ( )
inline

Definition at line 977 of file Descriptors.hpp.

977  : m_PadValue(0)
978  {}
float m_PadValue
Optional value to use for padding, defaults to 0.

◆ PadDescriptor() [2/2]

PadDescriptor ( const std::vector< std::pair< unsigned int, unsigned int >> &  padList,
const float &  padValue = 0 
)
inline

Definition at line 980 of file Descriptors.hpp.

981  : m_PadList(padList)
982  , m_PadValue(padValue)
983  {}
float m_PadValue
Optional value to use for padding, defaults to 0.
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding for input dimension.

Member Function Documentation

◆ operator==()

bool operator== ( const PadDescriptor rhs) const
inline

Definition at line 985 of file Descriptors.hpp.

References PadDescriptor::m_PadList, and PadDescriptor::m_PadValue.

986  {
987  return m_PadList == rhs.m_PadList && m_PadValue == rhs.m_PadValue;
988  }
float m_PadValue
Optional value to use for padding, defaults to 0.
std::vector< std::pair< unsigned int, unsigned int > > m_PadList
Specifies the padding for input dimension.

Member Data Documentation

◆ m_PadList

std::vector<std::pair<unsigned int, unsigned int> > m_PadList

Specifies the padding for input dimension.

First is the number of values to add before the tensor in the dimension. Second is the number of values to add after the tensor in the dimension. The number of pairs should match the number of dimensions in the input tensor.

Definition at line 994 of file Descriptors.hpp.

Referenced by PadLayer::Clone(), ClPadWorkload::ClPadWorkload(), PadLayer::CreateWorkload(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), PadLayer::InferOutputShapes(), NeonPadWorkload::NeonPadWorkload(), PadDescriptor::operator==(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnn::Pad(), Pad2dTestCommon(), Pad3dTestCommon(), Pad4dTestCommon(), PadQAsymmTestCommon(), and StringifyLayerParameters< PadDescriptor >::Serialize().

◆ m_PadValue


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