ArmNN
NotReleased
|
#include "LayerTestResult.hpp"
#include <ResolveType.hpp>
#include <armnn/backends/IBackendInternal.hpp>
#include <backendsCommon/Workload.hpp>
#include <backendsCommon/WorkloadData.hpp>
#include <backendsCommon/WorkloadFactory.hpp>
#include <backendsCommon/test/DataTypeUtils.hpp>
#include <backendsCommon/test/TensorCopyUtils.hpp>
#include <backendsCommon/test/WorkloadTestUtils.hpp>
#include <test/TensorHelpers.hpp>
#include <memory>
Go to the source code of this file.
Functions | |
template<typename DescriptorType > | |
std::unique_ptr< armnn::IWorkload > | CreateWorkload (const armnn::IWorkloadFactory &workloadFactory, const armnn::WorkloadInfo &info, const DescriptorType &descriptor) |
template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnTypeInput, armnn::DataType ArmnnTypeOutput, typename TInput = armnn::ResolveType<ArmnnTypeInput>, typename TOutput = armnn::ResolveType<ArmnnTypeOutput>> | |
LayerTestResult< TOutput, NumDims > | ElementwiseTestHelper (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const unsigned int shape0[NumDims], std::vector< TInput > values0, float quantScale0, int quantOffset0, const unsigned int shape1[NumDims], std::vector< TInput > values1, float quantScale1, int quantOffset1, const unsigned int outShape[NumDims], std::vector< TOutput > outValues, float outQuantScale, int outQuantOffset) |
template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> | |
LayerTestResult< T, NumDims > | ElementwiseTestHelper (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const unsigned int shape0[NumDims], std::vector< T > values0, float quantScale0, int quantOffset0, const unsigned int shape1[NumDims], std::vector< T > values1, float quantScale1, int quantOffset1, const unsigned int outShape[NumDims], std::vector< T > outValues, float outQuantScale, int outQuantOffset) |
template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnTypeInput, armnn::DataType ArmnnTypeOutput, typename TInput = armnn::ResolveType<ArmnnTypeInput>, typename TOutput = armnn::ResolveType<ArmnnTypeOutput>> | |
LayerTestResult< TOutput, NumDims > | ElementwiseTestHelper (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const unsigned int shape0[NumDims], std::vector< TInput > values0, const unsigned int shape1[NumDims], std::vector< TInput > values1, const unsigned int outShape[NumDims], std::vector< TOutput > outValues, float quantScale=1.0f, int quantOffset=0) |
template<std::size_t NumDims, typename Descriptor , armnn::DataType ArmnnType, typename T = armnn::ResolveType<ArmnnType>> | |
LayerTestResult< T, NumDims > | ElementwiseTestHelper (armnn::IWorkloadFactory &workloadFactory, const armnn::IBackendInternal::IMemoryManagerSharedPtr &memoryManager, const unsigned int shape0[NumDims], std::vector< T > values0, const unsigned int shape1[NumDims], std::vector< T > values1, const unsigned int outShape[NumDims], std::vector< T > outValues, float quantScale=1.0f, int quantOffset=0) |
std::unique_ptr<armnn::IWorkload> CreateWorkload | ( | const armnn::IWorkloadFactory & | workloadFactory, |
const armnn::WorkloadInfo & | info, | ||
const DescriptorType & | descriptor | ||
) |
Definition at line 27 of file ElementwiseTestImpl.hpp.
Referenced by Layer::SetBackendId().
LayerTestResult<TOutput, NumDims> ElementwiseTestHelper | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const unsigned int | shape0[NumDims], | ||
std::vector< TInput > | values0, | ||
float | quantScale0, | ||
int | quantOffset0, | ||
const unsigned int | shape1[NumDims], | ||
std::vector< TInput > | values1, | ||
float | quantScale1, | ||
int | quantOffset1, | ||
const unsigned int | outShape[NumDims], | ||
std::vector< TOutput > | outValues, | ||
float | outQuantScale, | ||
int | outQuantOffset | ||
) |
Definition at line 41 of file ElementwiseTestImpl.hpp.
References armnn::Boolean, LayerTestResult< T, n >::compareBoolean, CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreateTensorHandle(), LayerTestResult< T, n >::output, LayerTestResult< T, n >::outputExpected, and TensorInfo::SetQuantizationScale().
LayerTestResult<T, NumDims> ElementwiseTestHelper | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const unsigned int | shape0[NumDims], | ||
std::vector< T > | values0, | ||
float | quantScale0, | ||
int | quantOffset0, | ||
const unsigned int | shape1[NumDims], | ||
std::vector< T > | values1, | ||
float | quantScale1, | ||
int | quantOffset1, | ||
const unsigned int | outShape[NumDims], | ||
std::vector< T > | outValues, | ||
float | outQuantScale, | ||
int | outQuantOffset | ||
) |
Definition at line 111 of file ElementwiseTestImpl.hpp.
LayerTestResult<TOutput, NumDims> ElementwiseTestHelper | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const unsigned int | shape0[NumDims], | ||
std::vector< TInput > | values0, | ||
const unsigned int | shape1[NumDims], | ||
std::vector< TInput > | values1, | ||
const unsigned int | outShape[NumDims], | ||
std::vector< TOutput > | outValues, | ||
float | quantScale = 1.0f , |
||
int | quantOffset = 0 |
||
) |
Definition at line 150 of file ElementwiseTestImpl.hpp.
LayerTestResult<T, NumDims> ElementwiseTestHelper | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const unsigned int | shape0[NumDims], | ||
std::vector< T > | values0, | ||
const unsigned int | shape1[NumDims], | ||
std::vector< T > | values1, | ||
const unsigned int | outShape[NumDims], | ||
std::vector< T > | outValues, | ||
float | quantScale = 1.0f , |
||
int | quantOffset = 0 |
||
) |
Definition at line 183 of file ElementwiseTestImpl.hpp.