21.11
|
A PadDescriptor for the PadLayer. More...
#include <Descriptors.hpp>
Public Member Functions | |
PadDescriptor () | |
PadDescriptor (const std::vector< std::pair< unsigned int, unsigned int >> &padList, const float &padValue=0, const PaddingMode &paddingMode=PaddingMode::Constant) | |
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... | |
PaddingMode | m_PaddingMode |
Specifies the Padding mode (Constant, Reflect or Symmetric) More... | |
A PadDescriptor for the PadLayer.
Definition at line 1061 of file Descriptors.hpp.
|
inline |
Definition at line 1063 of file Descriptors.hpp.
|
inline |
Definition at line 1066 of file Descriptors.hpp.
|
inline |
Definition at line 1074 of file Descriptors.hpp.
References PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, and PadDescriptor::m_PadValue.
PaddingMode m_PaddingMode |
Specifies the Padding mode (Constant, Reflect or Symmetric)
Definition at line 1089 of file Descriptors.hpp.
Referenced by PadLayer::CreateWorkload(), RefPadWorkload::ExecuteAsync(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), armnn::MirrorPad(), MirrorPad2dTestCommon(), MirrorPad3dTestCommon(), MirrorPad4dTestCommon(), PadDescriptor::operator==(), TfLiteParserImpl::OutputShapeOfSqueeze(), StringifyLayerParameters< PadDescriptor >::Serialize(), and TEST_SUITE().
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 1083 of file Descriptors.hpp.
Referenced by PadLayer::Clone(), ClPadWorkload::ClPadWorkload(), PadLayer::CreateWorkload(), armnnSerializer::GetFlatBufferArgMinMaxFunction(), PadLayer::InferOutputShapes(), armnn::MirrorPad(), MirrorPad2dTestCommon(), MirrorPad3dTestCommon(), MirrorPad4dTestCommon(), NeonPadWorkload::NeonPadWorkload(), PadDescriptor::operator==(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnn::Pad(), Pad2dTestCommon(), Pad3dTestCommon(), Pad4dTestCommon(), PadQAsymmTestCommon(), StringifyLayerParameters< PadDescriptor >::Serialize(), and armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d().
float m_PadValue |
Optional value to use for padding, defaults to 0.
Definition at line 1086 of file Descriptors.hpp.
Referenced by armnnSerializer::GetFlatBufferArgMinMaxFunction(), PadDescriptor::operator==(), TfLiteParserImpl::OutputShapeOfSqueeze(), armnn::Pad(), Pad2dTestCommon(), PadQAsymmTestCommon(), StringifyLayerParameters< PadDescriptor >::Serialize(), TEST_SUITE(), and armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d().