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/_abs_test_impl_8hpp.xhtml | 252 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 21.02/_abs_test_impl_8hpp.xhtml (limited to '21.02/_abs_test_impl_8hpp.xhtml') diff --git a/21.02/_abs_test_impl_8hpp.xhtml b/21.02/_abs_test_impl_8hpp.xhtml new file mode 100644 index 0000000000..f4ab492a9a --- /dev/null +++ b/21.02/_abs_test_impl_8hpp.xhtml @@ -0,0 +1,252 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/layerTests/AbsTestImpl.hpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
AbsTestImpl.hpp File Reference
+
+
+ +

Go to the source code of this file.

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

+Functions

template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult< T, 2 > Abs2dTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult< T, 3 > Abs3dTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult< T, 2 > AbsZeroTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
+

Function Documentation

+ +

◆ Abs2dTest()

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

Definition at line 11 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

+
15 {
16  const unsigned int inputShape[] = { 2, 2 };
17 
18  std::vector<float> inputValues
19  {
20  -0.1f, 0.2f,
21  0.3f, -0.4f
22  };
23 
24  // Calculate output values for input.
25  auto f = [](float value)
26  {
27  return std::abs(value);
28  };
29  std::vector<float> expectedOutputValues(inputValues.size());
30  std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
31 
32  return ElementwiseUnaryTestHelper<2, ArmnnType>(
33  workloadFactory,
34  memoryManager,
36  inputShape,
37  inputValues,
38  inputShape,
39  expectedOutputValues,
40  tensorHandleFactory);
41 }
+
+
+
+ +

◆ Abs3dTest()

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

Definition at line 44 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

+
48 {
49  const unsigned int inputShape[] = { 3, 1, 2 };
50 
51  std::vector<float> inputValues
52  {
53  -0.1f, -0.2f, -0.3f,
54  0.1f, 0.2f, 0.3f
55  };
56 
57  auto f = [](float value)
58  {
59  return std::abs(value);
60  };
61  std::vector<float>expectedOutputValues(inputValues.size());
62  std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
63 
64  return ElementwiseUnaryTestHelper<3, ArmnnType>(
65  workloadFactory,
66  memoryManager,
68  inputShape,
69  inputValues,
70  inputShape,
71  expectedOutputValues,
72  tensorHandleFactory);
73 }
+
+
+
+ +

◆ AbsZeroTest()

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

Definition at line 76 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

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