Go to the source code of this file.
◆ Abs2dTest()
Definition at line 11 of file AbsTestImpl.cpp.
References armnn::Abs.
15 const unsigned int inputShape[] = { 2, 2 };
17 std::vector<float> inputValues
24 auto f = [](
float value)
26 return std::abs(value);
28 std::vector<float> expectedOutputValues(inputValues.size());
29 std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
31 return ElementwiseUnaryTestHelper<2, ArmnnType>(
38 expectedOutputValues);
◆ Abs3dTest()
Definition at line 42 of file AbsTestImpl.cpp.
References armnn::Abs.
46 const unsigned int inputShape[] = { 3, 1, 2 };
48 std::vector<float> inputValues
54 auto f = [](
float value)
56 return std::abs(value);
58 std::vector<float>expectedOutputValues(inputValues.size());
59 std::transform(inputValues.begin(), inputValues.end(), expectedOutputValues.begin(), f);
61 return ElementwiseUnaryTestHelper<3, ArmnnType>(
68 expectedOutputValues);
◆ AbsZeroTest()
Definition at line 72 of file AbsTestImpl.cpp.
References armnn::Abs.
76 const unsigned int inputShape[] = { 1, 2 };
78 std::vector<float> inputValues
83 std::vector<float> expectedOutputValues
88 return ElementwiseUnaryTestHelper<2, ArmnnType>(
95 expectedOutputValues);