24.02
|
Classes | |
class | FoldPadIntoConvolution2dImpl |
class | FoldPadIntoDepthwiseConvolution2dImpl |
class | FoldPadIntoPooling2dImpl |
Functions | |
float | GetZeroElement (const TensorInfo &tensorInfo) |
float | GetLowestElement (const TensorInfo &tensorInfo) |
bool | IsNeutralElement (const Convolution2dDescriptor &, const TensorInfo &tensorInfo, const float tensorValue) |
bool | IsNeutralElement (const DepthwiseConvolution2dDescriptor &, const TensorInfo &tensorInfo, const float tensorValue) |
bool | IsNeutralElement (const Pooling2dDescriptor &descriptor, const TensorInfo &tensorInfo, const float tensorValue) |
bool | IsPooling2dPadded (const Pooling2dDescriptor &poolDescriptor) |
template<typename Descriptor > | |
bool | TryFoldPadIntoLayer2d (const PadDescriptor &padDescriptor, Descriptor &layerDescriptor, const TensorInfo &tensorInfo) |
bool | TryFoldPadIntoLayer2d (const PadDescriptor &padDescriptor, Pooling2dDescriptor &poolDescriptor, const TensorInfo &tensorInfo, bool isBackendOptimization=false) |
template<typename Layer2dT > | |
Layer2dT * | FoldPadIntoLayer2dImpl (Graph &graph, InputSlot &connection) |
Layer2dT* armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl | ( | Graph & | graph, |
InputSlot & | connection | ||
) |
Definition at line 144 of file FoldPadIntoLayer2d.hpp.
References OutputSlot::Connect(), armnn::Convolution2d, OutputSlot::Disconnect(), InputSlot::GetConnectedOutputSlot(), DataLayoutIndexed::GetHeightIndex(), Layer::GetInputSlot(), Layer::GetName(), Layer::GetOutputSlot(), InputSlot::GetOwningLayer(), OutputSlot::GetOwningLayer(), LayerWithParameters< Parameters >::GetParameters(), OutputSlot::GetTensorInfo(), DataLayoutIndexed::GetWidthIndex(), Graph::InsertNewLayer(), and TryFoldPadIntoLayer2d().
|
inline |
Definition at line 26 of file FoldPadIntoLayer2d.hpp.
References ARMNN_ASSERT_MSG, armnn::BFloat16, armnn::Float16, armnn::Float32, TensorInfo::GetDataType(), TensorInfo::GetQuantizationOffset(), TensorInfo::GetQuantizationScale(), armnn::QAsymmS8, armnn::QAsymmU8, armnn::QSymmS16, and armnn::QSymmS8.
Referenced by IsNeutralElement().
|
inline |
Definition at line 21 of file FoldPadIntoLayer2d.hpp.
References TensorInfo::GetQuantizationOffset(), and TensorInfo::IsQuantized().
Referenced by IsNeutralElement().
|
inline |
Definition at line 56 of file FoldPadIntoLayer2d.hpp.
References GetZeroElement().
Referenced by TryFoldPadIntoLayer2d().
|
inline |
Definition at line 61 of file FoldPadIntoLayer2d.hpp.
References GetZeroElement().
|
inline |
Definition at line 68 of file FoldPadIntoLayer2d.hpp.
References GetLowestElement(), GetZeroElement(), Pooling2dDescriptor::m_PoolType, and armnn::Max.
|
inline |
Definition at line 76 of file FoldPadIntoLayer2d.hpp.
References Pooling2dDescriptor::m_PadBottom, Pooling2dDescriptor::m_PadLeft, Pooling2dDescriptor::m_PadRight, and Pooling2dDescriptor::m_PadTop.
Referenced by TryFoldPadIntoLayer2d().
bool armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d | ( | const PadDescriptor & | padDescriptor, |
Descriptor & | layerDescriptor, | ||
const TensorInfo & | tensorInfo | ||
) |
Definition at line 88 of file FoldPadIntoLayer2d.hpp.
References DataLayoutIndexed::GetChannelsIndex(), DataLayoutIndexed::GetHeightIndex(), DataLayoutIndexed::GetWidthIndex(), IsNeutralElement(), PadDescriptor::m_PadList, and PadDescriptor::m_PadValue.
Referenced by FoldPadIntoLayer2dImpl(), RefBackend::OptimizeSubgraphView(), and ClBackend::OptimizeSubgraphView().
|
inline |
Definition at line 115 of file FoldPadIntoLayer2d.hpp.
References armnn::Average, armnn::Exclude, armnn::IgnoreValue, IsPooling2dPadded(), TensorInfo::IsQuantized(), Pooling2dDescriptor::m_DataLayout, Pooling2dDescriptor::m_PaddingMethod, Pooling2dDescriptor::m_PoolType, armnn::Max, and armnn::NHWC.