20.02
|
#include "Pooling2dTestImpl.hpp"
#include <QuantizeHelper.hpp>
#include <ResolveType.hpp>
#include <armnn/LayerSupport.hpp>
#include <armnnUtils/TensorUtils.hpp>
#include <armnnUtils/DataLayoutIndexed.hpp>
#include <armnnUtils/Permute.hpp>
#include <armnn/utility/IgnoreUnused.hpp>
#include <backendsCommon/WorkloadInfo.hpp>
#include <backendsCommon/test/TensorCopyUtils.hpp>
#include <backendsCommon/test/WorkloadTestUtils.hpp>
#include <test/TensorHelpers.hpp>
#include <boost/numeric/conversion/cast.hpp>
Go to the source code of this file.
LayerTestResult<int16_t, 4> AsymmetricNonSquarePooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1790 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> AsymmetricNonSquarePooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1776 of file Pooling2dTestImpl.cpp.
LayerTestResult<uint8_t, 4> AsymmetricNonSquarePooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1783 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> ComparePooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
armnn::IWorkloadFactory & | refWorkloadFactory, | ||
armnn::PoolingAlgorithm | poolingType | ||
) |
Definition at line 1817 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> ComparePooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
armnn::IWorkloadFactory & | refWorkloadFactory, | ||
armnn::PoolingAlgorithm | poolingType | ||
) |
Definition at line 1797 of file Pooling2dTestImpl.cpp.
LayerTestResult<uint8_t, 4> ComparePooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
armnn::IWorkloadFactory & | refWorkloadFactory, | ||
armnn::PoolingAlgorithm | poolingType | ||
) |
Definition at line 1807 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> IgnorePaddingAveragePooling2dSize3Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1599 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingAveragePooling2dSize3Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1584 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> IgnorePaddingAveragePooling2dSize3Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1591 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<float, 4> IgnorePaddingAveragePooling2dSize3x2Stride2x2Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1506 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> IgnorePaddingL2Pooling2dSize3Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1769 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingL2Pooling2dSize3Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1755 of file Pooling2dTestImpl.cpp.
LayerTestResult<uint8_t, 4> IgnorePaddingL2Pooling2dSize3Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1762 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> IgnorePaddingMaxPooling2dSize3Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1472 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingMaxPooling2dSize3Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1457 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> IgnorePaddingMaxPooling2dSize3Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1464 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> IgnorePaddingSimpleAveragePooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1552 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> IgnorePaddingSimpleAveragePooling2dNoPaddingInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1576 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingSimpleAveragePooling2dNoPaddingTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1560 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> IgnorePaddingSimpleAveragePooling2dNoPaddingUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1568 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<float, 4> IgnorePaddingSimpleAveragePooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1537 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> IgnorePaddingSimpleAveragePooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1544 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> IgnorePaddingSimpleL2Pooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1748 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingSimpleL2Pooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1734 of file Pooling2dTestImpl.cpp.
LayerTestResult<uint8_t, 4> IgnorePaddingSimpleL2Pooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1741 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> IgnorePaddingSimpleMaxPooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1449 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> IgnorePaddingSimpleMaxPooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1434 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> IgnorePaddingSimpleMaxPooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1441 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> L2Pooling2dSize3Stride1Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1645 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> L2Pooling2dSize3Stride1Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1631 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> L2Pooling2dSize3Stride1Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1638 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> L2Pooling2dSize3Stride3Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1666 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> L2Pooling2dSize3Stride3Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1652 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> L2Pooling2dSize3Stride3Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1659 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> L2Pooling2dSize3Stride4Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1686 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> L2Pooling2dSize3Stride4Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1672 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> L2Pooling2dSize3Stride4Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1679 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> L2Pooling2dSize7Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1707 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> L2Pooling2dSize7Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1693 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> L2Pooling2dSize7Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1700 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> L2Pooling2dSize9Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1728 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> L2Pooling2dSize9Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1714 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> L2Pooling2dSize9Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1721 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> LargeTensorsAveragePooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1530 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> LargeTensorsAveragePooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1515 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> LargeTensorsAveragePooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager | ||
) |
Definition at line 1522 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> SimpleAveragePooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1497 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> SimpleAveragePooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1480 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> SimpleAveragePooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1488 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> SimpleL2Pooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1623 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> SimpleL2Pooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1607 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> SimpleL2Pooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1615 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<int16_t, 4> SimpleMaxPooling2dInt16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1427 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> SimpleMaxPooling2dSize2x2Stride2x2Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1375 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> SimpleMaxPooling2dSize2x2Stride2x2Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1357 of file Pooling2dTestImpl.cpp.
LayerTestResult<uint8_t, 4> SimpleMaxPooling2dSize2x2Stride2x2Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1366 of file Pooling2dTestImpl.cpp.
LayerTestResult<int16_t, 4> SimpleMaxPooling2dSize3x3Stride2x4Int16Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1402 of file Pooling2dTestImpl.cpp.
LayerTestResult<float, 4> SimpleMaxPooling2dSize3x3Stride2x4Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1384 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> SimpleMaxPooling2dSize3x3Stride2x4Uint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
bool | forceNoPadding | ||
) |
Definition at line 1393 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<float, 4> SimpleMaxPooling2dTest | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1411 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().
LayerTestResult<uint8_t, 4> SimpleMaxPooling2dUint8Test | ( | armnn::IWorkloadFactory & | workloadFactory, |
const armnn::IBackendInternal::IMemoryManagerSharedPtr & | memoryManager, | ||
const armnn::DataLayout | dataLayout | ||
) |
Definition at line 1419 of file Pooling2dTestImpl.cpp.
Referenced by BOOST_AUTO_TEST_CASE().