24.02
|
Provides access to the appropriate indexes for Channels, Height and Width based on DataLayout. More...
#include <DataLayoutIndexed.hpp>
Public Member Functions | |
DataLayoutIndexed (armnn::DataLayout dataLayout) | |
armnn::DataLayout | GetDataLayout () const |
unsigned int | GetChannelsIndex () const |
unsigned int | GetHeightIndex () const |
unsigned int | GetWidthIndex () const |
unsigned int | GetDepthIndex () const |
unsigned int | GetIndex (const armnn::TensorShape &shape, unsigned int batchIndex, unsigned int channelIndex, unsigned int heightIndex, unsigned int widthIndex) const |
Provides access to the appropriate indexes for Channels, Height and Width based on DataLayout.
Definition at line 17 of file DataLayoutIndexed.hpp.
DataLayoutIndexed | ( | armnn::DataLayout | dataLayout | ) |
Definition at line 13 of file DataLayoutIndexed.cpp.
References armnn::NCDHW, armnn::NCHW, armnn::NDHWC, and armnn::NHWC.
|
inline |
Definition at line 23 of file DataLayoutIndexed.hpp.
Referenced by armnn::BatchNormImpl(), armnn::BatchToSpaceNd(), armnn::Convert1HWOtoMIHW(), armnn::Convolve(), armnn::Convolve3d(), armnn::DepthToSpace(), armnn::GetOffset(), DepthToSpaceLayer::InferOutputShapes(), ResizeLayer::InferOutputShapes(), Pooling2dLayer::InferOutputShapes(), Pooling3dLayer::InferOutputShapes(), armnn::InstanceNorm(), armnn::Offset(), armnn::Pooling2d(), armnn::Pooling3d(), armnn::Resize(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), armnn::SpaceToBatchNd(), armnn::SpaceToDepth(), armnn::TransposeConvolution2dImpl(), armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d(), ResizeQueueDescriptor::Validate(), SpaceToDepthQueueDescriptor::Validate(), and DepthToSpaceQueueDescriptor::Validate().
|
inline |
Definition at line 22 of file DataLayoutIndexed.hpp.
Referenced by armnn::Convolve(), armnn::Convolve3d(), armnn::GetOffset(), armnn::Offset(), armnnUtils::operator==(), and armnn::Pooling2d().
|
inline |
Definition at line 26 of file DataLayoutIndexed.hpp.
Referenced by armnn::Convolve3d(), Pooling3dLayer::InferOutputShapes(), Convolution3dLayer::InferOutputShapes(), and armnn::Pooling3d().
|
inline |
Definition at line 24 of file DataLayoutIndexed.hpp.
Referenced by armnn::BatchNormImpl(), armnn::BatchToSpaceNd(), armnn_driver::ConvertPooling2d(), armnn::Convolve(), armnn::Convolve3d(), armnn::DepthToSpace(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), armnn::GetOffset(), DepthToSpaceLayer::InferOutputShapes(), Pooling3dLayer::InferOutputShapes(), Pooling2dLayer::InferOutputShapes(), Convolution3dLayer::InferOutputShapes(), DepthwiseConvolution2dLayer::InferOutputShapes(), Convolution2dLayer::InferOutputShapes(), TransposeConvolution2dLayer::InferOutputShapes(), armnn::InstanceNorm(), armnn::Offset(), armnn::Pooling2d(), armnn::Pooling3d(), armnn::Resize(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), Convolution2dLayer::SerializeLayerParameters(), armnn::SpaceToBatchNd(), armnn::SpaceToDepth(), armnn::TransposeConvolution2dImpl(), armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d(), SpaceToBatchNdQueueDescriptor::Validate(), SpaceToDepthQueueDescriptor::Validate(), and DepthToSpaceQueueDescriptor::Validate().
|
inline |
Offset the given indices appropriately depending on the data layout
channelIndex stays unchanged
widthIndex stays unchanged
Get the value using the correct offset
Definition at line 28 of file DataLayoutIndexed.hpp.
References CHECK_LOCATION, armnn::NCHW, and armnn::NHWC.
Referenced by armnn::BatchNormImpl(), TensorBufferArrayView< DataType >::Get(), armnn::InstanceNorm(), armnn::Resize(), and armnn::TransposeConvolution2dImpl().
|
inline |
Definition at line 25 of file DataLayoutIndexed.hpp.
Referenced by armnn::BatchNormImpl(), armnn::BatchToSpaceNd(), armnn_driver::ConvertPooling2d(), armnn::Convolve(), armnn::Convolve3d(), armnn::DepthToSpace(), armnn::optimizations::pad_fold::FoldPadIntoLayer2dImpl(), armnn::GetOffset(), DepthToSpaceLayer::InferOutputShapes(), Pooling3dLayer::InferOutputShapes(), Pooling2dLayer::InferOutputShapes(), Convolution3dLayer::InferOutputShapes(), DepthwiseConvolution2dLayer::InferOutputShapes(), Convolution2dLayer::InferOutputShapes(), TransposeConvolution2dLayer::InferOutputShapes(), armnn::InstanceNorm(), armnn::Offset(), armnn::Pooling2d(), armnn::Pooling3d(), armnn::Resize(), FuseBatchNorm< ConvLayer, ArmnnType, T >::Run(), Convolution2dLayer::SerializeLayerParameters(), armnn::SpaceToBatchNd(), armnn::SpaceToDepth(), armnn::TransposeConvolution2dImpl(), armnn::optimizations::pad_fold::TryFoldPadIntoLayer2d(), SpaceToBatchNdQueueDescriptor::Validate(), SpaceToDepthQueueDescriptor::Validate(), and DepthToSpaceQueueDescriptor::Validate().