22.05
|
#include "MirrorPadTestImpl.hpp"
#include <armnnUtils/QuantizeHelper.hpp>
#include <armnnTestUtils/TensorCopyUtils.hpp>
#include <armnnTestUtils/WorkloadTestUtils.hpp>
#include <armnnTestUtils/TensorHelpers.hpp>
Go to the source code of this file.
LayerTestResult<T, 2> MirrorPad2dTestCommon | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
const armnn::TensorInfo & | inputTensorInfo, | ||
const armnn::TensorInfo & | outputTensorInfo, | ||
const std::vector< T > & | inputValues, | ||
const std::vector< T > & | expectedOutputValues, | ||
const std::vector< std::pair< unsigned int, unsigned int >> & | padList, | ||
const armnn::PaddingMode | paddingMode | ||
) |
Definition at line 20 of file MirrorPadTestImpl.cpp.
References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), ITensorHandleFactory::CreateTensorHandle(), IWorkloadFactory::CreateWorkload(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Pad.
LayerTestResult<T, 3> MirrorPad3dTestCommon | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
const armnn::TensorInfo & | inputTensorInfo, | ||
const armnn::TensorInfo & | outputTensorInfo, | ||
const std::vector< T > & | inputValues, | ||
const std::vector< T > & | expectedOutputValues, | ||
const std::vector< std::pair< unsigned int, unsigned int >> & | padList, | ||
const armnn::PaddingMode | paddingMode | ||
) |
Definition at line 66 of file MirrorPadTestImpl.cpp.
References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), ITensorHandleFactory::CreateTensorHandle(), IWorkloadFactory::CreateWorkload(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Pad.
LayerTestResult<T, 4> MirrorPad4dTestCommon | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
const armnn::TensorInfo & | inputTensorInfo, | ||
const armnn::TensorInfo & | outputTensorInfo, | ||
const std::vector< T > & | inputValues, | ||
const std::vector< T > & | expectedOutputValues, | ||
const std::vector< std::pair< unsigned int, unsigned int >> & | padList, | ||
const armnn::PaddingMode | paddingMode | ||
) |
Definition at line 111 of file MirrorPadTestImpl.cpp.
References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), ITensorHandleFactory::CreateTensorHandle(), IWorkloadFactory::CreateWorkload(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters, and armnn::Pad.
LayerTestResult<float, 2> PadReflect2dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 945 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 2> PadReflect2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 208 of file MirrorPadTestImpl.cpp.
References armnn::Reflect.
LayerTestResult<float, 3> PadReflect3dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 961 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int8_t, 3> PadReflect3dInt8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 994 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 3> PadReflect3dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 326 of file MirrorPadTestImpl.cpp.
References armnn::Reflect.
LayerTestResult<uint8_t, 3> PadReflect3dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 978 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<armnn::BFloat16, 4> PadReflect4dBFloat16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1026 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<float, 4> PadReflect4dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1010 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int16_t, 4> PadReflect4dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1075 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int8_t, 4> PadReflect4dInt8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1059 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 4> PadReflect4dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 706 of file MirrorPadTestImpl.cpp.
References armnn::Reflect.
LayerTestResult<uint8_t, 4> PadReflect4dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1043 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<armnn::Half, 2> PadReflectFloat16 | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 887 of file MirrorPadTestImpl.cpp.
References armnn::Float16, and armnn::Reflect.
Referenced by PadReflectFloat16Test(), and TEST_SUITE().
LayerTestResult<armnn::Half, 2> PadReflectFloat16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1091 of file MirrorPadTestImpl.cpp.
References PadReflectFloat16().
Referenced by TEST_SUITE().
LayerTestResult<float, 2> PadSymmetric2dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 937 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 2> PadSymmetric2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 157 of file MirrorPadTestImpl.cpp.
References armnn::Symmetric.
LayerTestResult<float, 3> PadSymmetric3dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 953 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int8_t, 3> PadSymmetric3dInt8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 986 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 3> PadSymmetric3dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 259 of file MirrorPadTestImpl.cpp.
References armnn::Symmetric.
LayerTestResult<uint8_t, 3> PadSymmetric3dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 969 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<armnn::BFloat16, 4> PadSymmetric4dBFloat16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1018 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<float, 4> PadSymmetric4dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1002 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int16_t, 4> PadSymmetric4dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1067 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<int8_t, 4> PadSymmetric4dInt8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1051 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<T, 4> PadSymmetric4dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory, | ||
float | qScale, | ||
int32_t | qOffset | ||
) |
Definition at line 393 of file MirrorPadTestImpl.cpp.
References armnn::Symmetric.
LayerTestResult<uint8_t, 4> PadSymmetric4dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1034 of file MirrorPadTestImpl.cpp.
Referenced by TEST_SUITE().
LayerTestResult<armnn::Half, 2> PadSymmetricFloat16 | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 843 of file MirrorPadTestImpl.cpp.
References armnn::Float16, and armnn::Symmetric.
Referenced by PadSymmetricFloat16Test(), and TEST_SUITE().
LayerTestResult<armnn::Half, 2> PadSymmetricFloat16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 1083 of file MirrorPadTestImpl.cpp.
References PadSymmetricFloat16().
Referenced by TEST_SUITE().