From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_neg_test_impl_8cpp.xhtml | 724 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 724 insertions(+) create mode 100644 21.02/_neg_test_impl_8cpp.xhtml (limited to '21.02/_neg_test_impl_8cpp.xhtml') diff --git a/21.02/_neg_test_impl_8cpp.xhtml b/21.02/_neg_test_impl_8cpp.xhtml new file mode 100644 index 0000000000..8c65c9b2a6 --- /dev/null +++ b/21.02/_neg_test_impl_8cpp.xhtml @@ -0,0 +1,724 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/layerTests/NegTestImpl.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
NegTestImpl.cpp File Reference
+
+
+ +

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Functions

template<armnn::DataType ArmnnType, typename T >
LayerTestResult< T, 2 > Neg2dTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template<armnn::DataType ArmnnType, typename T >
LayerTestResult< T, 3 > Neg3dTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template<armnn::DataType ArmnnType, typename T >
LayerTestResult< T, 2 > NegZeroTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template<armnn::DataType ArmnnType, typename T >
LayerTestResult< T, 2 > NegNegativeTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float32 >, 2 > Neg2dTest< armnn::DataType::Float32 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float16 >, 2 > Neg2dTest< armnn::DataType::Float16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QAsymmS8 >, 2 > Neg2dTest< armnn::DataType::QAsymmS8 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QAsymmU8 >, 2 > Neg2dTest< armnn::DataType::QAsymmU8 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QSymmS16 >, 2 > Neg2dTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float32 >, 3 > Neg3dTest< armnn::DataType::Float32 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float16 >, 3 > Neg3dTest< armnn::DataType::Float16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QAsymmS8 >, 3 > Neg3dTest< armnn::DataType::QAsymmS8 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QAsymmU8 >, 3 > Neg3dTest< armnn::DataType::QAsymmU8 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QSymmS16 >, 3 > Neg3dTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float32 >, 2 > NegZeroTest< armnn::DataType::Float32 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float32 >, 2 > NegNegativeTest< armnn::DataType::Float32 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
+

Function Documentation

+ +

◆ Neg2dTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<T, 2> Neg2dTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 11 of file NegTestImpl.cpp.

+ +

References armnn::Neg.

+
15 {
16  const unsigned int inputShape[] = { 2, 2 };
17 
18  std::vector<float> inputValues
19  {
20  1.f, 1.f,
21  2.f, 25.f
22  };
23 
24  std::vector<float> expectedOutputValues
25  {
26  -1.f, -1.f,
27  -2.f, -25.f
28  };
29 
30  return ElementwiseUnaryTestHelper<2, ArmnnType>(
31  workloadFactory,
32  memoryManager,
34  inputShape,
35  inputValues,
36  inputShape,
37  expectedOutputValues,
38  tensorHandleFactory);
39 }
+
+
+
+ +

◆ Neg2dTest< armnn::DataType::Float16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float16>, 2> Neg2dTest< armnn::DataType::Float16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg2dTest< armnn::DataType::Float32 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 2> Neg2dTest< armnn::DataType::Float32 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg2dTest< armnn::DataType::QAsymmS8 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QAsymmS8>, 2> Neg2dTest< armnn::DataType::QAsymmS8 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg2dTest< armnn::DataType::QAsymmU8 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QAsymmU8>, 2> Neg2dTest< armnn::DataType::QAsymmU8 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg2dTest< armnn::DataType::QSymmS16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QSymmS16>, 2> Neg2dTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg3dTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<T, 3> Neg3dTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 42 of file NegTestImpl.cpp.

+ +

References armnn::Neg.

+
46 {
47  const unsigned int inputShape[] = { 3, 1, 2 };
48 
49  std::vector<float> inputValues
50  {
51  1.f, 0.f, 3.f,
52  25.f, 64.f, 100.f
53  };
54 
55  std::vector<float> expectedOutputValues
56  {
57  -1.f, 0.f, -3.f,
58  -25.f, -64.f, -100.f
59  };
60 
61  return ElementwiseUnaryTestHelper<3, ArmnnType>(
62  workloadFactory,
63  memoryManager,
65  inputShape,
66  inputValues,
67  inputShape,
68  expectedOutputValues,
69  tensorHandleFactory);
70 }
+
+
+
+ +

◆ Neg3dTest< armnn::DataType::Float16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float16>, 3> Neg3dTest< armnn::DataType::Float16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg3dTest< armnn::DataType::Float32 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 3> Neg3dTest< armnn::DataType::Float32 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg3dTest< armnn::DataType::QAsymmS8 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QAsymmS8>, 3> Neg3dTest< armnn::DataType::QAsymmS8 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg3dTest< armnn::DataType::QAsymmU8 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QAsymmU8>, 3> Neg3dTest< armnn::DataType::QAsymmU8 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ Neg3dTest< armnn::DataType::QSymmS16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QSymmS16>, 3> Neg3dTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ NegNegativeTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<T, 2> NegNegativeTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 102 of file NegTestImpl.cpp.

+ +

References armnn::Neg.

+
106 {
107  const unsigned int inputShape[] = { 1, 2 };
108 
109  std::vector<float> inputValues
110  {
111  -25.f, -16.f
112  };
113 
114  std::vector<float> expectedOutputValues
115  {
116  25.f, 16.f
117  };
118 
119  return ElementwiseUnaryTestHelper<2, ArmnnType>(
120  workloadFactory,
121  memoryManager,
123  inputShape,
124  inputValues,
125  inputShape,
126  expectedOutputValues,
127  tensorHandleFactory);
128 }
+
+
+
+ +

◆ NegNegativeTest< armnn::DataType::Float32 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 2> NegNegativeTest< armnn::DataType::Float32 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ NegZeroTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<T, 2> NegZeroTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 73 of file NegTestImpl.cpp.

+ +

References armnn::Neg.

+
77 {
78  const unsigned int inputShape[] = { 1, 2 };
79 
80  std::vector<float> inputValues
81  {
82  0.f, 0.f
83  };
84 
85  std::vector<float> expectedOutputValues
86  {
87  0.f, 0.f
88  };
89 
90  return ElementwiseUnaryTestHelper<2, ArmnnType>(
91  workloadFactory,
92  memoryManager,
94  inputShape,
95  inputValues,
96  inputShape,
97  expectedOutputValues,
98  tensorHandleFactory);
99 }
+
+
+
+ +

◆ NegZeroTest< armnn::DataType::Float32 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 2> NegZeroTest< armnn::DataType::Float32 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+
+
+ + + + -- cgit v1.2.1