21.11
|
#include "MirrorPadTestImpl.hpp"
#include <QuantizeHelper.hpp>
#include <backendsCommon/test/TensorCopyUtils.hpp>
#include <backendsCommon/test/WorkloadTestUtils.hpp>
#include <test/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(), IWorkloadFactory::CreatePad(), ITensorHandleFactory::CreateTensorHandle(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.
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 64 of file MirrorPadTestImpl.cpp.
References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreatePad(), ITensorHandleFactory::CreateTensorHandle(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.
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 107 of file MirrorPadTestImpl.cpp.
References CopyDataFromITensorHandle(), CopyDataToITensorHandle(), IWorkloadFactory::CreatePad(), ITensorHandleFactory::CreateTensorHandle(), TensorInfo::GetNumElements(), TensorInfo::GetShape(), armnn::IgnoreUnused(), PadDescriptor::m_PaddingMode, PadDescriptor::m_PadList, and QueueDescriptorWithParameters< LayerDescriptor >::m_Parameters.
LayerTestResult<float, 2> PadReflect2dFloat32Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::ITensorHandleFactory & | tensorHandleFactory | ||
) |
Definition at line 939 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 202 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 955 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 988 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 320 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 972 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 1020 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 1004 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 1069 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 1053 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 700 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 1037 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 881 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 1085 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 931 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 151 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 947 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 980 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 253 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 963 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 1012 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 996 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 1061 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 1045 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 387 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 1028 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 837 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 1077 of file MirrorPadTestImpl.cpp.
References PadSymmetricFloat16().
Referenced by TEST_SUITE().