24.08
|
A StridedSliceDescriptor for the StridedSliceLayer. More...
#include <Descriptors.hpp>
Public Member Functions | |
StridedSliceDescriptor (const std::vector< int > &begin, const std::vector< int > &end, const std::vector< int > &stride) | |
StridedSliceDescriptor () | |
bool | operator== (const StridedSliceDescriptor &rhs) const |
int | GetStartForAxis (const TensorShape &inputShape, unsigned int axis) const |
int | GetStopForAxis (const TensorShape &inputShape, unsigned int axis, int startForAxis) const |
Public Member Functions inherited from BaseDescriptor | |
virtual bool | IsNull () const |
virtual | ~BaseDescriptor ()=default |
Public Attributes | |
std::vector< int > | m_Begin |
Begin values for the input that will be sliced. More... | |
std::vector< int > | m_End |
End values for the input that will be sliced. More... | |
std::vector< int > | m_Stride |
Stride values for the input that will be sliced. More... | |
int32_t | m_BeginMask |
Begin mask value. More... | |
int32_t | m_EndMask |
End mask value. More... | |
int32_t | m_ShrinkAxisMask |
Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1. More... | |
int32_t | m_EllipsisMask |
Ellipsis mask value. More... | |
int32_t | m_NewAxisMask |
New axis mask value. More... | |
DataLayout | m_DataLayout |
The data layout to be used (NCHW, NHWC). More... | |
A StridedSliceDescriptor for the StridedSliceLayer.
Definition at line 1303 of file Descriptors.hpp.
|
inline |
|
inline |
Definition at line 1319 of file Descriptors.hpp.
int GetStartForAxis | ( | const TensorShape & | inputShape, |
unsigned int | axis | ||
) | const |
Definition at line 393 of file Descriptors.cpp.
References StridedSliceDescriptor::m_Begin, StridedSliceDescriptor::m_BeginMask, and StridedSliceDescriptor::m_Stride.
Referenced by armnnUtils::CalculateStridedSliceOutputTensorInfo(), StridedSliceLayer::InferOutputShapes(), and armnn::StridedSlice().
int GetStopForAxis | ( | const TensorShape & | inputShape, |
unsigned int | axis, | ||
int | startForAxis | ||
) | const |
Definition at line 420 of file Descriptors.cpp.
References StridedSliceDescriptor::m_End, StridedSliceDescriptor::m_EndMask, StridedSliceDescriptor::m_ShrinkAxisMask, and StridedSliceDescriptor::m_Stride.
Referenced by armnnUtils::CalculateStridedSliceOutputTensorInfo(), StridedSliceLayer::InferOutputShapes(), and armnn::StridedSlice().
|
inline |
Definition at line 1323 of file Descriptors.hpp.
References StridedSliceDescriptor::m_Begin, StridedSliceDescriptor::m_BeginMask, StridedSliceDescriptor::m_DataLayout, StridedSliceDescriptor::m_EllipsisMask, StridedSliceDescriptor::m_End, StridedSliceDescriptor::m_EndMask, StridedSliceDescriptor::m_NewAxisMask, StridedSliceDescriptor::m_ShrinkAxisMask, and StridedSliceDescriptor::m_Stride.
std::vector<int> m_Begin |
Begin values for the input that will be sliced.
Definition at line 1342 of file Descriptors.hpp.
Referenced by ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStartForAxis(), StridedSliceLayer::InferOutputShapes(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), StringifyLayerParameters< StridedSliceDescriptor >::Serialize(), and StridedSliceQueueDescriptor::Validate().
int32_t m_BeginMask |
Begin mask value.
If set, then the begin is disregarded and the fullest range is used for the dimension.
Definition at line 1350 of file Descriptors.hpp.
Referenced by ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStartForAxis(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), and StringifyLayerParameters< StridedSliceDescriptor >::Serialize().
DataLayout m_DataLayout |
The data layout to be used (NCHW, NHWC).
Definition at line 1363 of file Descriptors.hpp.
Referenced by StridedSliceDescriptor::operator==(), and StringifyLayerParameters< StridedSliceDescriptor >::Serialize().
int32_t m_EllipsisMask |
Ellipsis mask value.
Definition at line 1357 of file Descriptors.hpp.
Referenced by StridedSliceLayer::CreateWorkload(), StridedSliceLayer::InferOutputShapes(), StridedSliceDescriptor::operator==(), StringifyLayerParameters< StridedSliceDescriptor >::Serialize(), and armnn::StridedSlice().
std::vector<int> m_End |
End values for the input that will be sliced.
Definition at line 1344 of file Descriptors.hpp.
Referenced by ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStopForAxis(), StridedSliceLayer::InferOutputShapes(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), StringifyLayerParameters< StridedSliceDescriptor >::Serialize(), and StridedSliceQueueDescriptor::Validate().
int32_t m_EndMask |
End mask value.
If set, then the end is disregarded and the fullest range is used for the dimension.
Definition at line 1353 of file Descriptors.hpp.
Referenced by ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStopForAxis(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), and StringifyLayerParameters< StridedSliceDescriptor >::Serialize().
int32_t m_NewAxisMask |
New axis mask value.
If set, the begin, end and stride is disregarded and a new 1 dimension is inserted to this location of the output tensor.
Definition at line 1360 of file Descriptors.hpp.
Referenced by StridedSliceLayer::CreateWorkload(), StridedSliceLayer::InferOutputShapes(), StridedSliceDescriptor::operator==(), StringifyLayerParameters< StridedSliceDescriptor >::Serialize(), and armnn::StridedSlice().
int32_t m_ShrinkAxisMask |
Shrink axis mask value. If set, the nth specification shrinks the dimensionality by 1.
Definition at line 1355 of file Descriptors.hpp.
Referenced by armnnUtils::CalculateStridedSliceOutputTensorInfo(), ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStopForAxis(), StridedSliceLayer::InferOutputShapes(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), and StringifyLayerParameters< StridedSliceDescriptor >::Serialize().
std::vector<int> m_Stride |
Stride values for the input that will be sliced.
Definition at line 1346 of file Descriptors.hpp.
Referenced by armnnUtils::CalculateStridedSliceOutputTensorInfo(), ClStridedSliceWorkload::ClStridedSliceWorkload(), StridedSliceLayer::CreateWorkload(), StridedSliceDescriptor::GetStartForAxis(), StridedSliceDescriptor::GetStopForAxis(), StridedSliceLayer::InferOutputShapes(), NeonStridedSliceWorkload::NeonStridedSliceWorkload(), StridedSliceDescriptor::operator==(), StringifyLayerParameters< StridedSliceDescriptor >::Serialize(), armnn::StridedSlice(), and StridedSliceQueueDescriptor::Validate().