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

Go to the source code of this file.

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

+Functions

LayerTestResult< float, 4 > SimpleSigmoidTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > SimpleSigmoidUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > SimpleSigmoidInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > TanhTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > TanhUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > TanhInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > ConstantLinearActivationTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > ConstantLinearActivationUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > ConstantLinearActivationInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > ReLuTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > ReLuUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > ReLuInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > BoundedReLuUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, float upperBound)
 
LayerTestResult< uint8_t, 4 > BoundedReLuUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, float upperBound, float lowerBound)
 
LayerTestResult< int16_t, 4 > BoundedReLuInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > BoundedReLuUpperAndLowerBoundTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > BoundedReLuUint8UpperAndLowerBoundTest (armnn::IWorkloadFactory &workloadFactor, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManagery, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > BoundedReLuUpperBoundOnlyTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > BoundedReLuUint8UpperBoundOnlyTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > CompareBoundedReLuTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, armnn::IWorkloadFactory &refWorkloadFactory, const armnn::ITensorHandleFactory &tensorHandleFactory, const armnn::ITensorHandleFactory &refTensorHandleFactory, float upperBound, float lowerBound)
 
LayerTestResult< float, 4 > SoftReLuTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > SoftReLuUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > SoftReLuInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > LeakyReLuTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > LeakyReLuUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > LeakyReLuInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > EluTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > EluUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > EluInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > AbsTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > AbsUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > AbsInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > SqrtTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 5 > SqrtNNTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > SqrtUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > SqrtInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > SquareTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > SquareUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > SquareInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > HardSwishTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< uint8_t, 4 > HardSwishUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< int16_t, 4 > HardSwishInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
LayerTestResult< float, 4 > CompareActivationTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, armnn::IWorkloadFactory &refWorkloadFactory, const armnn::ITensorHandleFactory &tensorHandleFactory, const armnn::ITensorHandleFactory &refTensorHandleFactory, armnn::ActivationFunction f, unsigned int batchSize)
 
LayerTestResult< uint8_t, 4 > CompareActivationUint8Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, armnn::IWorkloadFactory &refWorkloadFactory, const armnn::ITensorHandleFactory &tensorHandleFactory, const armnn::ITensorHandleFactory &refTensorHandleFactory, armnn::ActivationFunction f)
 
LayerTestResult< int16_t, 4 > CompareActivationInt16Test (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, armnn::IWorkloadFactory &refWorkloadFactory, const armnn::ITensorHandleFactory &tensorHandleFactory, const armnn::ITensorHandleFactory &refTensorHandleFactory, armnn::ActivationFunction f)
 
+

Function Documentation

+ +

◆ AbsInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> AbsInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 833 of file ActivationTestImpl.cpp.

+
837 {
838  return AbsTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
839 }
+
+
+ +

◆ AbsTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> AbsTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 817 of file ActivationTestImpl.cpp.

+
821 {
822  return AbsTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
823 }
+
+
+ +

◆ AbsUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> AbsUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 825 of file ActivationTestImpl.cpp.

+
829 {
830  return AbsTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, 0.0625f, 64);
831 }
+
+
+ +

◆ BoundedReLuInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> BoundedReLuInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 645 of file ActivationTestImpl.cpp.

+
649 {
650  return ReLuTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
651 }
+
+
+ +

◆ BoundedReLuUint8Test() [1/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> BoundedReLuUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
float upperBound 
)
+
+ +
+
+ +

◆ BoundedReLuUint8Test() [2/2]

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> BoundedReLuUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
float upperBound,
float lowerBound 
)
+
+ +
+
+ +

◆ BoundedReLuUint8UpperAndLowerBoundTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> BoundedReLuUint8UpperAndLowerBoundTest (armnn::IWorkloadFactoryworkloadFactor,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManagery,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 190 of file ActivationTestImpl.cpp.

+ +

References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreateActivation(), ITensorHandleFactory::CreateTensorHandle(), armnn::Float32, armnn::GetInputTensorInfo(), armnn::IgnoreUnused(), and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.

+
194 {
195  unsigned int inputWidth = 3u;
196  unsigned int inputHeight = 2u;
197  unsigned int inputChannels = 1u;
198  unsigned int inputBatchSize = 1;
199 
200  std::vector<uint8_t> input = std::vector<uint8_t>{
201  51, 230, 28,
202  251, 8, 92
203  };
204 
205  // Calculated manually.
206  std::vector<uint8_t> output = std::vector<uint8_t>{
207  51, 192, 32,
208  192, 32, 92
209  };
210 
211  int32_t inputOffset = 112;
212  float inputScale = 0.0125f;
213 
214  return BoundedReLuTestCommon<armnn::DataType::QAsymmU8>(
215  workloadFactory, memoryManager, tensorHandleFactory, 1.0f, -1.0f,
216  inputScale, inputOffset, inputScale, inputOffset, // Input/output scale & offset same.
217  input, output, inputWidth, inputHeight, inputChannels, inputBatchSize);
218 }
+
+
+ +

◆ BoundedReLuUint8UpperBoundOnlyTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> BoundedReLuUint8UpperBoundOnlyTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 158 of file ActivationTestImpl.cpp.

+
162 {
163  unsigned int inputWidth = 3u;
164  unsigned int inputHeight = 2u;
165  unsigned int inputChannels = 1u;
166  unsigned int inputBatchSize = 1;
167 
168  std::vector<uint8_t> input = std::vector<uint8_t>{
169  51, 124, 28,
170  251, 8, 92
171  };
172 
173  // Calculated manually.
174  std::vector<uint8_t> output = std::vector<uint8_t>{
175  0, 122, 0,
176  255, 0, 58
177  };
178 
179  float inputScale = 12.0f / 255.0f;
180  int32_t inputOffset = 63;
181  float outputScale = 6.0f / 255.0f;
182  int32_t outputOffset = 0;
183 
184  return BoundedReLuTestCommon<armnn::DataType::QAsymmU8>(
185  workloadFactory, memoryManager, tensorHandleFactory, 6.0f, 0.0f,
186  inputScale, inputOffset, outputScale, outputOffset,
187  input, output, inputWidth, inputHeight, inputChannels, inputBatchSize);
188 }
+
+
+ +

◆ BoundedReLuUpperAndLowerBoundTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> BoundedReLuUpperAndLowerBoundTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 94 of file ActivationTestImpl.cpp.

+
98 {
99  unsigned int inputWidth = 4u;
100  unsigned int inputHeight = 5u;
101  unsigned int inputChannels = 1u;
102  unsigned int inputBatchSize = 1;
103 
104  std::vector<float> input = std::vector<float>{
105  -2.0f, 0.1f, 0.5f, 1.25f,
106  0.786f, 0.9875f, -1.5f, 0.384f,
107  1.0001f, 3.5f, 7.5f, 0.896f,
108  2.126f, 2.0f, 0.3f, 0.15f,
109  0.999f, 1.2f, 0.89f, 6.1f,
110  };
111 
112  // Calculated manually.
113  std::vector<float> output = std::vector<float>{
114  -1.0f, 0.1f, 0.5f, 1.0f,
115  0.786f, 0.9875f, -1.0f, 0.384f,
116  1.0f, 1.0f, 1.0f, 0.896f,
117  1.0f, 1.0f, 0.3f, 0.15f,
118  0.999f, 1.0f, 0.89f, 1.0f,
119  };
120 
121  return BoundedReLuTestCommon<armnn::DataType::Float32>(
122  workloadFactory, memoryManager, tensorHandleFactory, 1.0f, -1.0f, 1.0f, 0, 1.0f, 0, input, output,
123  inputWidth, inputHeight, inputChannels, inputBatchSize);
124 }
+
+
+ +

◆ BoundedReLuUpperBoundOnlyTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> BoundedReLuUpperBoundOnlyTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 126 of file ActivationTestImpl.cpp.

+
130 {
131  unsigned int inputWidth = 4u;
132  unsigned int inputHeight = 5u;
133  unsigned int inputChannels = 1u;
134  unsigned int inputBatchSize = 1;
135 
136  std::vector<float> input = std::vector<float>{
137  -1.0f, 0.1f, 0.5f, 6.25f,
138  0.786f, 5.9875f, -0.5f, 0.384f,
139  6.0001f, 3.5f, 7.5f, 0.896f,
140  2.126f, 12.0f, 0.3f, 0.15f,
141  0.999f, 1.2f, 0.89f, 6.1f,
142  };
143 
144  // Calculated manually.
145  std::vector<float> output = std::vector<float>{
146  0.0f, 0.1f, 0.5f, 6.0f,
147  0.786f, 5.9875f, 0.0f, 0.384f,
148  6.0f, 3.5f, 6.0f, 0.896f,
149  2.126f, 6.0f, 0.3f, 0.15f,
150  0.999f, 1.2f, 0.89f, 6.0f,
151  };
152 
153  return BoundedReLuTestCommon<armnn::DataType::Float32>(
154  workloadFactory, memoryManager, tensorHandleFactory, 6.0f, 0.0f, 1.0f, 0, 1.0f, 0, input, output,
155  inputWidth, inputHeight, inputChannels, inputBatchSize);
156 }
+
+
+ +

◆ CompareActivationInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> CompareActivationInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
armnn::IWorkloadFactoryrefWorkloadFactory,
const armnn::ITensorHandleFactorytensorHandleFactory,
const armnn::ITensorHandleFactoryrefTensorHandleFactory,
armnn::ActivationFunction f 
)
+
+ +

Definition at line 1341 of file ActivationTestImpl.cpp.

+
1348 {
1349  return CompareActivationTestImpl<armnn::DataType::QSymmS16>(
1350  workloadFactory, memoryManager, refWorkloadFactory, tensorHandleFactory,
1351  refTensorHandleFactory, f, 5, 0.1f, 0);
1352 }
+
+
+ +

◆ CompareActivationTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> CompareActivationTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
armnn::IWorkloadFactoryrefWorkloadFactory,
const armnn::ITensorHandleFactorytensorHandleFactory,
const armnn::ITensorHandleFactoryrefTensorHandleFactory,
armnn::ActivationFunction f,
unsigned int batchSize 
)
+
+ +

Definition at line 1314 of file ActivationTestImpl.cpp.

+
1322 {
1323  return CompareActivationTestImpl<armnn::DataType::Float32>(
1324  workloadFactory, memoryManager, refWorkloadFactory, tensorHandleFactory,
1325  refTensorHandleFactory, f, batchSize);
1326 }
+
+
+ +

◆ CompareActivationUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> CompareActivationUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
armnn::IWorkloadFactoryrefWorkloadFactory,
const armnn::ITensorHandleFactorytensorHandleFactory,
const armnn::ITensorHandleFactoryrefTensorHandleFactory,
armnn::ActivationFunction f 
)
+
+ +

Definition at line 1328 of file ActivationTestImpl.cpp.

+
1335 {
1336  return CompareActivationTestImpl<armnn::DataType::QAsymmU8>(
1337  workloadFactory, memoryManager, refWorkloadFactory,
1338  tensorHandleFactory, refTensorHandleFactory, f, 5, 0.1f, 50);
1339 }
+
+
+ +

◆ CompareBoundedReLuTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> CompareBoundedReLuTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
armnn::IWorkloadFactoryrefWorkloadFactory,
const armnn::ITensorHandleFactorytensorHandleFactory,
const armnn::ITensorHandleFactoryrefTensorHandleFactory,
float upperBound,
float lowerBound 
)
+
+ +

Definition at line 292 of file ActivationTestImpl.cpp.

+ +

References armnn::BoundedReLu, ActivationDescriptor::m_A, ActivationDescriptor::m_B, ActivationDescriptor::m_Function, LayerTestResult< T, n >::output, and LayerTestResult< T, n >::outputExpected.

+
300 {
301  LayerTestResult<float, 4> result(BoundedReLuRandomInputTestTraits::GetOutputTensorInfo());
302 
303  armnn::ActivationDescriptor activationDescriptor;
304  activationDescriptor.m_Function = armnn::ActivationFunction::BoundedReLu;
305  activationDescriptor.m_A = upperBound;
306  activationDescriptor.m_B = lowerBound;
307 
308  result.output = BoundedReLuRandomInputTest(
309  workloadFactory, memoryManager, tensorHandleFactory, 0.0f, upperBound, activationDescriptor);
310  result.outputExpected = BoundedReLuRandomInputTest(
311  refWorkloadFactory, nullptr, refTensorHandleFactory, 0.0f, upperBound, activationDescriptor);
312 
313  return result;
314 }
An ActivationDescriptor for the ActivationLayer.
Definition: Descriptors.hpp:25
+
min(a, max(b, input)) ReLu1 & ReLu6.
+
float m_A
Alpha upper bound value used by the activation functions. (BoundedReLu, Linear, TanH, Elu).
Definition: Descriptors.hpp:50
+ +
float m_B
Beta lower bound value used by the activation functions. (BoundedReLu, Linear, TanH).
Definition: Descriptors.hpp:52
+
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:48
+
+
+
+ +

◆ ConstantLinearActivationInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> ConstantLinearActivationInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 397 of file ActivationTestImpl.cpp.

+
401 {
402  return ConstantLinearActivationTestCommon<armnn::DataType::QSymmS16>(
403  workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
404 }
+
+
+ +

◆ ConstantLinearActivationTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> ConstantLinearActivationTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 378 of file ActivationTestImpl.cpp.

+
382 {
383  return ConstantLinearActivationTestCommon<armnn::DataType::Float32>(workloadFactory,
384  memoryManager,
385  tensorHandleFactory);
386 }
+
+
+ +

◆ ConstantLinearActivationUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> ConstantLinearActivationUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 388 of file ActivationTestImpl.cpp.

+
392 {
393  return ConstantLinearActivationTestCommon<armnn::DataType::QAsymmU8>(
394  workloadFactory, memoryManager, tensorHandleFactory, 4.0f, 3);
395 }
+
+
+ +

◆ EluInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> EluInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1140 of file ActivationTestImpl.cpp.

+
1144 {
1145  return EluTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1146 }
+
+
+ +

◆ EluTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> EluTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1124 of file ActivationTestImpl.cpp.

+
1128 {
1129  return EluTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1130 }
+
+
+ +

◆ EluUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> EluUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1132 of file ActivationTestImpl.cpp.

+
1136 {
1137  return EluTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 64);
1138 }
+
+
+ +

◆ HardSwishInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> HardSwishInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1209 of file ActivationTestImpl.cpp.

+
1213 {
1214  return HardSwishTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1215 }
+
+
+ +

◆ HardSwishTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> HardSwishTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1192 of file ActivationTestImpl.cpp.

+
1196 {
1197  return HardSwishTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1198 }
+
+
+ +

◆ HardSwishUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> HardSwishUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1200 of file ActivationTestImpl.cpp.

+
1204 {
1205  return HardSwishTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager,
1206  tensorHandleFactory, 0.1f, 64);
1207 }
+
+
+ +

◆ LeakyReLuInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> LeakyReLuInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 772 of file ActivationTestImpl.cpp.

+
776 {
777  return LeakyReLuTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
778 }
+
+
+ +

◆ LeakyReLuTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> LeakyReLuTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 755 of file ActivationTestImpl.cpp.

+
759 {
760  return LeakyReLuTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
761 }
+
+
+ +

◆ LeakyReLuUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> LeakyReLuUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 763 of file ActivationTestImpl.cpp.

+
767 {
768  return LeakyReLuTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager,
769  tensorHandleFactory, 0.0625f, 64);
770 }
+
+
+ +

◆ ReLuInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> ReLuInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 581 of file ActivationTestImpl.cpp.

+
585 {
586  return ReLuTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
587 }
+
+
+ +

◆ ReLuTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> ReLuTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 598 of file ActivationTestImpl.cpp.

+
602 {
603  return ReLuTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
604 }
+
+
+ +

◆ ReLuUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> ReLuUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 590 of file ActivationTestImpl.cpp.

+
594 {
595  return ReLuTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
596 }
+
+
+ +

◆ SimpleSigmoidInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> SimpleSigmoidInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 535 of file ActivationTestImpl.cpp.

+
539 {
540  return SimpleSigmoidTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager,
541  tensorHandleFactory, 0.1f, 0);
542 }
+
+
+ +

◆ SimpleSigmoidTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> SimpleSigmoidTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 517 of file ActivationTestImpl.cpp.

+
521 {
522  return SimpleSigmoidTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager,
523  tensorHandleFactory, 0.0f, 0);
524 }
+
+
+ +

◆ SimpleSigmoidUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> SimpleSigmoidUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 526 of file ActivationTestImpl.cpp.

+
530 {
531  return SimpleSigmoidTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager,
532  tensorHandleFactory, 0.1f, 50);
533 }
+
+
+ +

◆ SoftReLuInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> SoftReLuInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 709 of file ActivationTestImpl.cpp.

+
713 {
714  return SoftReLuTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
715 }
+
+
+ +

◆ SoftReLuTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> SoftReLuTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 692 of file ActivationTestImpl.cpp.

+
696 {
697  return SoftReLuTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
698 }
+
+
+ +

◆ SoftReLuUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> SoftReLuUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 700 of file ActivationTestImpl.cpp.

+
704 {
705  return SoftReLuTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager,
706  tensorHandleFactory, 0.0625f, 64);
707 }
+
+
+ +

◆ SqrtInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> SqrtInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 951 of file ActivationTestImpl.cpp.

+
955 {
956  return SqrtTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
957 }
+
+
+ +

◆ SqrtNNTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 5> SqrtNNTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 841 of file ActivationTestImpl.cpp.

+ +

References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreateActivation(), ITensorHandleFactory::CreateTensorHandle(), armnn::Float32, armnn::IgnoreUnused(), ActivationDescriptor::m_Function, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Sqrt.

+
845 {
846  IgnoreUnused(memoryManager);
847  const int inputDataSize = 120;
848  std::vector<float> inputData(inputDataSize);
849 
850  for (unsigned int i = 0u; i < inputDataSize; ++i)
851  {
852  inputData[i] = static_cast<float>(i) / 10;
853  }
854 
855  auto f = [](float value)
856  {
857  return std::sqrt(value);
858  };
859  std::vector<float> outputExpectedData(inputDataSize);
860  std::transform(inputData.begin(), inputData.end(), outputExpectedData.begin(), f);
861 
862  armnn::TensorInfo inputTensorInfo(
863  { 1u, 2u, 3u, 4u, 5u }, armnn::DataType::Float32);
864  armnn::TensorInfo outputTensorInfo(
865  { 1u, 2u, 3u, 4u, 5u }, armnn::DataType::Float32);
866 
867  LayerTestResult<float, 5> result(inputTensorInfo);
868 
869  auto input = MakeTensor<float, 5>(inputTensorInfo, inputData);
870 
871  std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
872  std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
873 
875  armnn::WorkloadInfo workloadInfo;
876  AddInputToWorkload(descriptor, workloadInfo, inputTensorInfo, inputHandle.get());
877  AddOutputToWorkload(descriptor, workloadInfo, outputTensorInfo, outputHandle.get());
878 
880 
881  std::unique_ptr<armnn::IWorkload> workload = workloadFactory.CreateActivation(descriptor, workloadInfo);
882 
883  inputHandle->Allocate();
884  outputHandle->Allocate();
885 
886  CopyDataToITensorHandle(inputHandle.get(), &input[0][0][0][0][0]);
887 
888  workload->Execute();
889 
890  CopyDataFromITensorHandle(&result.output[0][0][0][0][0], outputHandle.get());
891 
892  // Calculated manually.
893  result.outputExpected = MakeTensor<float, 5>(outputTensorInfo, outputExpectedData);
894 
895  return result;
896 };
+ +
void IgnoreUnused(Ts &&...)
+
virtual std::unique_ptr< IWorkload > CreateActivation(const ActivationQueueDescriptor &descriptor, const WorkloadInfo &info) const
+ +
void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)
+ +
Contains information about inputs and outputs to a layer.
+ +
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const =0
+
ActivationFunction m_Function
The activation function to use (Sigmoid, TanH, Linear, ReLu, BoundedReLu, SoftReLu, LeakyReLu, Abs, Sqrt, Square, Elu).
Definition: Descriptors.hpp:48
+ +
void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)
+
+
+
+ +

◆ SqrtTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> SqrtTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 935 of file ActivationTestImpl.cpp.

+
939 {
940  return SqrtTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
941 }
+
+
+ +

◆ SqrtUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> SqrtUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 943 of file ActivationTestImpl.cpp.

+
947 {
948  return SqrtTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, 0.0625f, 64);
949 }
+
+
+ +

◆ SquareInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> SquareInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1013 of file ActivationTestImpl.cpp.

+
1017 {
1018  return SquareTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1019 }
+
+
+ +

◆ SquareTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> SquareTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 996 of file ActivationTestImpl.cpp.

+
1000 {
1001  return SquareTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1002 }
+
+
+ +

◆ SquareUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> SquareUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1004 of file ActivationTestImpl.cpp.

+
1008 {
1009  return SquareTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager,
1010  tensorHandleFactory, 0.0625f, 64);
1011 }
+
+
+ +

◆ TanhInt16Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<int16_t, 4> TanhInt16Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1076 of file ActivationTestImpl.cpp.

+
1080 {
1081  return TanhTestCommon<armnn::DataType::QSymmS16>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1082 }
+
+
+ +

◆ TanhTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<float, 4> TanhTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1060 of file ActivationTestImpl.cpp.

+
1064 {
1065  return TanhTestCommon<armnn::DataType::Float32>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 0);
1066 }
+
+
+ +

◆ TanhUint8Test()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<uint8_t, 4> TanhUint8Test (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 1068 of file ActivationTestImpl.cpp.

+
1072 {
1073  return TanhTestCommon<armnn::DataType::QAsymmU8>(workloadFactory, memoryManager, tensorHandleFactory, 0.1f, 64);
1074 }
+
+
+
+
+ + + + -- cgit v1.2.1