20.08
|
#include <boost/test/unit_test.hpp>
#include <armnn/Tensor.hpp>
#include <armnn/utility/IgnoreUnused.hpp>
Go to the source code of this file.
Namespaces | |
armnn | |
Copyright (c) 2020 ARM Limited. | |
Functions | |
std::ostream & | boost_test_print_type (std::ostream &ostr, const TensorInfo &right) |
std::ostream & | boost_test_print_type (std::ostream &ostr, const TensorShape &shape) |
BOOST_FIXTURE_TEST_CASE (ConstructShapeUsingListInitialization, TensorInfoFixture) | |
BOOST_FIXTURE_TEST_CASE (ConstructTensorInfo, TensorInfoFixture) | |
BOOST_FIXTURE_TEST_CASE (CopyConstructTensorInfo, TensorInfoFixture) | |
BOOST_FIXTURE_TEST_CASE (TensorInfoEquality, TensorInfoFixture) | |
BOOST_FIXTURE_TEST_CASE (TensorInfoInequality, TensorInfoFixture) | |
BOOST_FIXTURE_TEST_CASE (TensorInfoAssignmentOperator, TensorInfoFixture) | |
void | CheckTensor (const ConstTensor &t) |
BOOST_AUTO_TEST_CASE (TensorVsConstTensor) | |
BOOST_AUTO_TEST_CASE (ModifyTensorInfo) | |
BOOST_AUTO_TEST_CASE (TensorShapeOperatorBrackets) | |
BOOST_AUTO_TEST_CASE (TensorInfoPerAxisQuantization) | |
BOOST_AUTO_TEST_CASE (TensorShape_scalar) | |
BOOST_AUTO_TEST_CASE (TensorShape_DynamicTensorType1_unknownNumberDimensions) | |
BOOST_AUTO_TEST_CASE (TensorShape_DynamicTensorType1_unknownAllDimensionsSizes) | |
BOOST_AUTO_TEST_CASE (TensorShape_DynamicTensorType1_unknownSomeDimensionsSizes) | |
BOOST_AUTO_TEST_CASE (TensorShape_DynamicTensorType1_transitionFromUnknownToKnownDimensionsSizes) | |
BOOST_AUTO_TEST_CASE (Tensor_emptyConstructors) | |
BOOST_AUTO_TEST_CASE | ( | TensorVsConstTensor | ) |
Definition at line 107 of file TensorTest.cpp.
References CheckTensor().
BOOST_AUTO_TEST_CASE | ( | ModifyTensorInfo | ) |
Definition at line 125 of file TensorTest.cpp.
References TensorInfo::GetDataType(), TensorInfo::GetQuantizationOffset(), TensorInfo::GetQuantizationScale(), TensorInfo::GetShape(), armnn::info, armnn::QAsymmU8, TensorInfo::SetDataType(), TensorInfo::SetQuantizationOffset(), TensorInfo::SetQuantizationScale(), and TensorInfo::SetShape().
BOOST_AUTO_TEST_CASE | ( | TensorShapeOperatorBrackets | ) |
Definition at line 138 of file TensorTest.cpp.
BOOST_AUTO_TEST_CASE | ( | TensorInfoPerAxisQuantization | ) |
Definition at line 152 of file TensorTest.cpp.
References armnn::Float32, and TensorInfo::SetQuantizationScales().
BOOST_AUTO_TEST_CASE | ( | TensorShape_scalar | ) |
Definition at line 186 of file TensorTest.cpp.
References TensorShape::AreAllDimensionsSpecified(), armnn::Float32, TensorShape::GetDimensionality(), TensorShape::GetDimensionSpecificity(), BaseTensor< MemoryType >::GetInfo(), BaseTensor< MemoryType >::GetMemoryArea(), TensorShape::GetNumDimensions(), TensorShape::GetNumElements(), TensorInfo::GetShape(), BaseTensor< MemoryType >::GetShape(), armnn::info, TensorShape::IsAtLeastOneDimensionSpecified(), and armnn::Scalar.
BOOST_AUTO_TEST_CASE | ( | TensorShape_DynamicTensorType1_unknownNumberDimensions | ) |
Definition at line 220 of file TensorTest.cpp.
References armnn::Float32, TensorShape::GetDimensionality(), TensorShape::GetNumDimensions(), TensorShape::GetNumElements(), armnn::info, and armnn::NotSpecified.
BOOST_AUTO_TEST_CASE | ( | TensorShape_DynamicTensorType1_unknownAllDimensionsSizes | ) |
Definition at line 240 of file TensorTest.cpp.
References TensorShape::AreAllDimensionsSpecified(), armnn::Float32, TensorShape::GetDimensionality(), TensorShape::GetDimensionSpecificity(), TensorShape::GetNumDimensions(), TensorShape::GetNumElements(), armnn::info, TensorShape::IsAtLeastOneDimensionSpecified(), and armnn::Specified.
BOOST_AUTO_TEST_CASE | ( | TensorShape_DynamicTensorType1_unknownSomeDimensionsSizes | ) |
Definition at line 264 of file TensorTest.cpp.
References armnn::Float32, BaseTensor< MemoryType >::GetInfo(), TensorInfo::GetShape(), BaseTensor< MemoryType >::GetShape(), armnn::info, and armnn::Specified.
BOOST_AUTO_TEST_CASE | ( | TensorShape_DynamicTensorType1_transitionFromUnknownToKnownDimensionsSizes | ) |
Definition at line 302 of file TensorTest.cpp.
References TensorShape::AreAllDimensionsSpecified(), armnn::Float32, TensorShape::GetDimensionality(), TensorShape::GetDimensionSpecificity(), BaseTensor< MemoryType >::GetInfo(), TensorShape::GetNumDimensions(), TensorShape::GetNumElements(), TensorInfo::GetShape(), BaseTensor< MemoryType >::GetShape(), armnn::info, TensorShape::IsAtLeastOneDimensionSpecified(), armnn::NotSpecified, TensorShape::SetDimensionSize(), TensorShape::SetNumDimensions(), TensorInfo::SetShape(), and armnn::Specified.
BOOST_AUTO_TEST_CASE | ( | Tensor_emptyConstructors | ) |
Definition at line 363 of file TensorTest.cpp.
References BOOST_AUTO_TEST_SUITE_END(), and armnn::Specified.
BOOST_FIXTURE_TEST_CASE | ( | ConstructShapeUsingListInitialization | , |
TensorInfoFixture | |||
) |
Definition at line 55 of file TensorTest.cpp.
BOOST_FIXTURE_TEST_CASE | ( | ConstructTensorInfo | , |
TensorInfoFixture | |||
) |
Definition at line 61 of file TensorTest.cpp.
BOOST_FIXTURE_TEST_CASE | ( | CopyConstructTensorInfo | , |
TensorInfoFixture | |||
) |
Definition at line 70 of file TensorTest.cpp.
BOOST_FIXTURE_TEST_CASE | ( | TensorInfoEquality | , |
TensorInfoFixture | |||
) |
Definition at line 80 of file TensorTest.cpp.
BOOST_FIXTURE_TEST_CASE | ( | TensorInfoInequality | , |
TensorInfoFixture | |||
) |
BOOST_FIXTURE_TEST_CASE | ( | TensorInfoAssignmentOperator | , |
TensorInfoFixture | |||
) |
Definition at line 95 of file TensorTest.cpp.
void CheckTensor | ( | const ConstTensor & | t | ) |
Definition at line 102 of file TensorTest.cpp.
References BaseTensor< MemoryType >::GetInfo().
Referenced by BOOST_AUTO_TEST_CASE().