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

Go to the source code of this file.

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

+Functions

template<armnn::DataType ArmnnType, typename T >
LayerTestResult< T, 4 > SimpleFloorTest (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float32 >, 4 > SimpleFloorTest< armnn::DataType::Float32 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::Float16 >, 4 > SimpleFloorTest< armnn::DataType::Float16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
template LayerTestResult< armnn::ResolveType< armnn::DataType::QSymmS16 >, 4 > SimpleFloorTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const armnn::ITensorHandleFactory &tensorHandleFactory)
 
+

Function Documentation

+ +

◆ SimpleFloorTest()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
LayerTestResult<T, 4> SimpleFloorTest (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +

Definition at line 15 of file FloorTestImpl.cpp.

+ +

References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreateFloor(), ITensorHandleFactory::CreateTensorHandle(), armnn::IgnoreUnused(), LayerTestResult< T, n >::output, LayerTestResult< T, n >::outputExpected, and TensorInfo::SetQuantizationScale().

+
19 {
20  IgnoreUnused(memoryManager);
21  armnn::TensorInfo inputTensorInfo({1, 3, 2, 3}, ArmnnType);
22  inputTensorInfo.SetQuantizationScale(0.1f);
23 
24  armnn::TensorInfo outputTensorInfo(inputTensorInfo);
25  outputTensorInfo.SetQuantizationScale(0.1f);
26 
27  auto input = MakeTensor<T, 4>(inputTensorInfo, ConvertToDataType<ArmnnType>(
28  { -37.5f, -15.2f, -8.76f, -2.0f, -1.5f, -1.3f, -0.5f, -0.4f, 0.0f,
29  1.0f, 0.4f, 0.5f, 1.3f, 1.5f, 2.0f, 8.76f, 15.2f, 37.5f },
30  inputTensorInfo));
31 
32  LayerTestResult<T, 4> ret(outputTensorInfo);
33  ret.outputExpected = MakeTensor<T, 4>(outputTensorInfo, ConvertToDataType<ArmnnType>(
34  { -38.0f, -16.0f, -9.0f, -2.0f, -2.0f, -2.0f, -1.0f, -1.0f, 0.0f,
35  1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 2.0f, 8.0f, 15.0f, 37.0f },
36  outputTensorInfo));
37 
38  std::unique_ptr<armnn::ITensorHandle> inputHandle = tensorHandleFactory.CreateTensorHandle(inputTensorInfo);
39  std::unique_ptr<armnn::ITensorHandle> outputHandle = tensorHandleFactory.CreateTensorHandle(outputTensorInfo);
40 
43  AddInputToWorkload(data, info, inputTensorInfo, inputHandle.get());
44  AddOutputToWorkload(data, info, outputTensorInfo, outputHandle.get());
45 
46  std::unique_ptr<armnn::IWorkload> workload = workloadFactory.CreateFloor(data, info);
47 
48  inputHandle->Allocate();
49  outputHandle->Allocate();
50 
51  CopyDataToITensorHandle(inputHandle.get(), &input[0][0][0][0]);
52 
53  workload->Execute();
54 
55  CopyDataFromITensorHandle(&ret.output[0][0][0][0], outputHandle.get());
56 
57  return ret;
58 }
+
void IgnoreUnused(Ts &&...)
+ +
void SetQuantizationScale(float scale)
Definition: Tensor.cpp:464
+
void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)
+ +
Contains information about inputs and outputs to a layer.
+ +
virtual std::unique_ptr< IWorkload > CreateFloor(const FloorQueueDescriptor &descriptor, const WorkloadInfo &info) const
+
virtual std::unique_ptr< ITensorHandle > CreateTensorHandle(const TensorInfo &tensorInfo) const =0
+
void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)
+
+
+
+ +

◆ SimpleFloorTest< armnn::DataType::Float16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float16>, 4> SimpleFloorTest< armnn::DataType::Float16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ SimpleFloorTest< armnn::DataType::Float32 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::Float32>, 4> SimpleFloorTest< armnn::DataType::Float32 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+ +

◆ SimpleFloorTest< armnn::DataType::QSymmS16 >()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
template LayerTestResult<armnn::ResolveType<armnn::DataType::QSymmS16>, 4> SimpleFloorTest< armnn::DataType::QSymmS16 > (armnn::IWorkloadFactoryworkloadFactory,
const armnn::IBackendInternal::IMemoryManagerSharedPtrmemoryManager,
const armnn::ITensorHandleFactorytensorHandleFactory 
)
+
+ +
+
+
+
+ + + + -- cgit v1.2.1