20.02
|
#include <Tensor.hpp>
Public Member Functions | |
TensorShape () | |
Empty (invalid) constructor. More... | |
TensorShape (unsigned int numDimensions) | |
TensorShape (unsigned int numDimensions, const unsigned int *dimensionSizes) | |
TensorShape (std::initializer_list< unsigned int > dimensionSizeList) | |
TensorShape (const TensorShape &other) | |
TensorShape & | operator= (const TensorShape &other) |
unsigned int | operator[] (unsigned int i) const |
unsigned int & | operator[] (unsigned int i) |
bool | operator== (const TensorShape &other) const |
bool | operator!= (const TensorShape &other) const |
unsigned int | GetNumDimensions () const |
unsigned int | GetNumElements () const |
Definition at line 20 of file Tensor.hpp.
TensorShape | ( | ) |
Empty (invalid) constructor.
Definition at line 23 of file Tensor.cpp.
TensorShape | ( | unsigned int | numDimensions | ) |
Definition at line 28 of file Tensor.cpp.
References armnn::MaxNumOfTensorDimensions.
TensorShape | ( | unsigned int | numDimensions, |
const unsigned int * | dimensionSizes | ||
) |
Definition at line 44 of file Tensor.cpp.
References armnn::MaxNumOfTensorDimensions.
TensorShape | ( | std::initializer_list< unsigned int > | dimensionSizeList | ) |
Definition at line 65 of file Tensor.cpp.
TensorShape | ( | const TensorShape & | other | ) |
Definition at line 70 of file Tensor.cpp.
|
inline |
Definition at line 43 of file Tensor.hpp.
References TensorShape::GetNumElements().
Referenced by armnn::BatchToSpaceNd(), armnn::boost_test_print_type(), ShapesAreBroadcastCompatible::CalcInputSize(), armnnDeserializer::CheckShape(), ClStackWorkload::ClStackWorkload(), armnnUtils::ConvertTensorShapeToString(), armnn::CopyTensorContentsGeneric(), OnnxParser::CreateNetworkFromString(), RefL2NormalizationWorkload::Execute(), armnnUtils::ExpandDims(), ExpandTensorShapeTo3dForPermute(), armnnUtils::GetNumElementsAfter(), armnnUtils::GetNumElementsBetween(), SerializerVisitor::GetVersionTable(), ArgMinMaxLayer::InferOutputShapes(), PreluLayer::InferOutputShapes(), ComparisonLayer::InferOutputShapes(), StackLayer::InferOutputShapes(), armnn::LogSoftmax(), NeonStackWorkload::NeonStackWorkload(), armnn::operator<<(), armnnTfParser::OutputShapeOfExpandDims(), armnnTfParser::OutputShapeOfSqueeze(), armnn::Pad(), armnnUtils::Permuted(), ParserPrototxtFixture< armnnOnnxParser::IOnnxParser >::RunTest(), ShapesAreBroadcastCompatible::ShapesAreBroadcastCompatible(), ShapesAreSameRank::ShapesAreSameRank(), armnn::Slice(), armnn::Softmax(), TensorBufferArrayView< DataType >::TensorBufferArrayView(), TfParser::TfParser(), armnnUtils::TransposeTensorShape(), StackQueueDescriptor::Validate(), ArgMinMaxQueueDescriptor::Validate(), SerializerVisitor::VisitQuantizedLstmLayer(), SerializerVisitor::VisitReshapeLayer(), and SerializerVisitor::VisitStackLayer().
unsigned int GetNumElements | ( | ) | const |
Definition at line 106 of file Tensor.cpp.
References CHECK_LOCATION.
Referenced by armnn::DepthToSpace(), armnnUtils::FindMinMax(), TensorShape::GetNumDimensions(), and armnn::TransposeConvolution2dImpl().
bool operator!= | ( | const TensorShape & | other | ) | const |
Definition at line 101 of file Tensor.cpp.
TensorShape & operator= | ( | const TensorShape & | other | ) |
Definition at line 76 of file Tensor.cpp.
bool operator== | ( | const TensorShape & | other | ) | const |
Definition at line 95 of file Tensor.cpp.
Referenced by TensorInfo::HasMultipleQuantizationScales().
unsigned int operator[] | ( | unsigned int | i | ) | const |
Definition at line 83 of file Tensor.cpp.
unsigned int & operator[] | ( | unsigned int | i | ) |
Definition at line 89 of file Tensor.cpp.