From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_abs_test_impl_8hpp.xhtml | 234 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 20.02/_abs_test_impl_8hpp.xhtml (limited to '20.02/_abs_test_impl_8hpp.xhtml') diff --git a/20.02/_abs_test_impl_8hpp.xhtml b/20.02/_abs_test_impl_8hpp.xhtml new file mode 100644 index 0000000000..71c1bf77e5 --- /dev/null +++ b/20.02/_abs_test_impl_8hpp.xhtml @@ -0,0 +1,234 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/layerTests/AbsTestImpl.hpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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)
 
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult< T, 3 > Abs3dTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager)
 
template<armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>>
LayerTestResult< T, 2 > AbsZeroTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager)
 
+

Function Documentation

+ +

◆ Abs2dTest()

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

Definition at line 11 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

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

◆ Abs3dTest()

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

Definition at line 42 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

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

◆ AbsZeroTest()

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

Definition at line 72 of file AbsTestImpl.cpp.

+ +

References armnn::Abs.

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