Go to the source code of this file.
|
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) |
|
◆ Abs2dTest()
Definition at line 11 of file AbsTestImpl.cpp.
References armnn::Abs.
16 const unsigned int inputShape[] = { 2, 2 };
18 std::vector<float> inputValues
25 auto f = [](
float value)
27 return std::abs(value);
29 std::vector<float> expectedOutputValues(inputValues.size());
30 std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
32 return ElementwiseUnaryTestHelper<2, ArmnnType>(
◆ Abs3dTest()
Definition at line 44 of file AbsTestImpl.cpp.
References armnn::Abs.
49 const unsigned int inputShape[] = { 3, 1, 2 };
51 std::vector<float> inputValues
57 auto f = [](
float value)
59 return std::abs(value);
61 std::vector<float>expectedOutputValues(inputValues.size());
62 std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
64 return ElementwiseUnaryTestHelper<3, ArmnnType>(
◆ AbsZeroTest()
Definition at line 76 of file AbsTestImpl.cpp.
References armnn::Abs.
81 const unsigned int inputShape[] = { 1, 2 };
83 std::vector<float> inputValues
88 std::vector<float> expectedOutputValues
93 return ElementwiseUnaryTestHelper<2, ArmnnType>(
100 expectedOutputValues,
101 tensorHandleFactory);