Tamás Nyíri | 7b885b3 | 2021-10-26 14:47:57 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2021 Arm Ltd and Contributors. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Sadik Armagan | a097d2a | 2021-11-24 15:47:28 +0000 | [diff] [blame] | 8 | #include <armnnTestUtils/LayerTestResult.hpp> |
Tamás Nyíri | 7b885b3 | 2021-10-26 14:47:57 +0100 | [diff] [blame] | 9 | |
| 10 | #include <armnn/Types.hpp> |
| 11 | |
| 12 | #include <armnn/backends/IBackendInternal.hpp> |
Colm Donelan | 0c47974 | 2021-12-10 12:43:54 +0000 | [diff] [blame] | 13 | #include <armnn/backends/WorkloadFactory.hpp> |
Tamás Nyíri | 7b885b3 | 2021-10-26 14:47:57 +0100 | [diff] [blame] | 14 | |
| 15 | LayerTestResult<float, 5> SimpleMaxPooling3dSize2x2x2Stride1x1x1Test( |
| 16 | armnn::IWorkloadFactory& workloadFactory, |
| 17 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 18 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 19 | |
| 20 | LayerTestResult<uint8_t, 5>SimpleMaxPooling3dSize2x2x2Stride1x1x1Uint8Test( |
| 21 | armnn::IWorkloadFactory& workloadFactory, |
| 22 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 23 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 24 | |
| 25 | LayerTestResult<int16_t, 5> SimpleMaxPooling3dSize2x2x2Stride1x1x1Int16Test( |
| 26 | armnn::IWorkloadFactory& workloadFactory, |
| 27 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 28 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 29 | |
| 30 | LayerTestResult<float, 5> SimpleMaxPooling3dTest( |
| 31 | armnn::IWorkloadFactory& workloadFactory, |
| 32 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 33 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 34 | const armnn::DataLayout dataLayout); |
| 35 | |
| 36 | LayerTestResult<uint8_t, 5> SimpleMaxPooling3dUint8Test( |
| 37 | armnn::IWorkloadFactory& workloadFactory, |
| 38 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 39 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 40 | const armnn::DataLayout dataLayout); |
| 41 | |
| 42 | LayerTestResult<int16_t, 5> SimpleMaxPooling3dInt16Test( |
| 43 | armnn::IWorkloadFactory& workloadFactory, |
| 44 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 45 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 46 | const armnn::DataLayout dataLayout); |
| 47 | |
| 48 | LayerTestResult<float, 5> IgnorePaddingSimpleMaxPooling3dTest( |
| 49 | armnn::IWorkloadFactory& workloadFactory, |
| 50 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 51 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 52 | |
| 53 | LayerTestResult<uint8_t, 5> IgnorePaddingSimpleMaxPooling3dUint8Test( |
| 54 | armnn::IWorkloadFactory& workloadFactory, |
| 55 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 56 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 57 | |
| 58 | LayerTestResult<int16_t, 5> IgnorePaddingSimpleMaxPooling3dInt16Test( |
| 59 | armnn::IWorkloadFactory& workloadFactory, |
| 60 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 61 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 62 | |
| 63 | LayerTestResult<float, 5> SimpleAveragePooling3dTest( |
| 64 | armnn::IWorkloadFactory& workloadFactory, |
| 65 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 66 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 67 | const armnn::DataLayout dataLayout); |
| 68 | |
| 69 | LayerTestResult<uint8_t, 5> SimpleAveragePooling3dUint8Test( |
| 70 | armnn::IWorkloadFactory& workloadFactory, |
| 71 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 72 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 73 | const armnn::DataLayout dataLayout); |
| 74 | |
| 75 | LayerTestResult<int16_t, 5> SimpleAveragePooling3dInt16Test( |
| 76 | armnn::IWorkloadFactory& workloadFactory, |
| 77 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 78 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 79 | const armnn::DataLayout dataLayout); |
| 80 | |
| 81 | LayerTestResult<float, 5> LargeTensorsAveragePooling3dTest( |
| 82 | armnn::IWorkloadFactory& workloadFactory, |
| 83 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 84 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 85 | |
| 86 | LayerTestResult<uint8_t, 5> LargeTensorsAveragePooling3dUint8Test( |
| 87 | armnn::IWorkloadFactory& workloadFactory, |
| 88 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 89 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 90 | |
| 91 | LayerTestResult<int16_t, 5> LargeTensorsAveragePooling3dInt16Test( |
| 92 | armnn::IWorkloadFactory& workloadFactory, |
| 93 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 94 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 95 | |
| 96 | LayerTestResult<float, 5> IgnorePaddingSimpleAveragePooling3dTest( |
| 97 | armnn::IWorkloadFactory& workloadFactory, |
| 98 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 99 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 100 | |
| 101 | LayerTestResult<uint8_t, 5> IgnorePaddingSimpleAveragePooling3dUint8Test( |
| 102 | armnn::IWorkloadFactory& workloadFactory, |
| 103 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 104 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 105 | |
| 106 | LayerTestResult<int16_t, 5> IgnorePaddingSimpleAveragePooling3dInt16Test( |
| 107 | armnn::IWorkloadFactory& workloadFactory, |
| 108 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 109 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 110 | |
| 111 | LayerTestResult<float, 5> SimpleL2Pooling3dTest( |
| 112 | armnn::IWorkloadFactory& workloadFactory, |
| 113 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 114 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 115 | const armnn::DataLayout dataLayout); |
| 116 | |
| 117 | LayerTestResult<uint8_t, 5> SimpleL2Pooling3dUint8Test( |
| 118 | armnn::IWorkloadFactory& workloadFactory, |
| 119 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 120 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 121 | const armnn::DataLayout dataLayout); |
| 122 | |
| 123 | LayerTestResult<int16_t, 5> SimpleL2Pooling3dInt16Test( |
| 124 | armnn::IWorkloadFactory& workloadFactory, |
| 125 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 126 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 127 | const armnn::DataLayout dataLayout); |
| 128 | |
| 129 | LayerTestResult<float, 5> IgnorePaddingSimpleL2Pooling3dTest( |
| 130 | armnn::IWorkloadFactory& workloadFactory, |
| 131 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 132 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 133 | |
| 134 | LayerTestResult<uint8_t, 5> IgnorePaddingSimpleL2Pooling3dUint8Test( |
| 135 | armnn::IWorkloadFactory& workloadFactory, |
| 136 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 137 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 138 | |
| 139 | LayerTestResult<int16_t, 5> IgnorePaddingSimpleL2Pooling3dInt16Test( |
| 140 | armnn::IWorkloadFactory& workloadFactory, |
| 141 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 142 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 143 | |
| 144 | LayerTestResult<float, 5> AsymmetricNonSquareMaxPooling3dTest( |
| 145 | armnn::IWorkloadFactory& workloadFactory, |
| 146 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 147 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 148 | |
| 149 | LayerTestResult<uint8_t, 5> AsymmetricNonSquareMaxPooling3dUint8Test( |
| 150 | armnn::IWorkloadFactory& workloadFactory, |
| 151 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 152 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 153 | |
| 154 | LayerTestResult<int16_t, 5> AsymmetricNonSquareMaxPooling3dInt16Test( |
| 155 | armnn::IWorkloadFactory& workloadFactory, |
| 156 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 157 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 158 | |
| 159 | LayerTestResult<float, 5> AsymmetricNonSquareAveragePooling3dTest( |
| 160 | armnn::IWorkloadFactory& workloadFactory, |
| 161 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 162 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 163 | |
| 164 | LayerTestResult<uint8_t, 5> AsymmetricNonSquareAveragePooling3dUint8Test( |
| 165 | armnn::IWorkloadFactory& workloadFactory, |
| 166 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 167 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 168 | |
| 169 | LayerTestResult<int16_t, 5> AsymmetricNonSquareAveragePooling3dInt16Test( |
| 170 | armnn::IWorkloadFactory& workloadFactory, |
| 171 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 172 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 173 | |
| 174 | LayerTestResult<float, 5> AsymmetricNonSquareL2Pooling3dTest( |
| 175 | armnn::IWorkloadFactory& workloadFactory, |
| 176 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 177 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 178 | |
| 179 | LayerTestResult<uint8_t, 5> AsymmetricNonSquareL2Pooling3dUint8Test( |
| 180 | armnn::IWorkloadFactory& workloadFactory, |
| 181 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 182 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 183 | |
| 184 | LayerTestResult<int16_t, 5> AsymmetricNonSquareL2Pooling3dInt16Test( |
| 185 | armnn::IWorkloadFactory& workloadFactory, |
| 186 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 187 | const armnn::ITensorHandleFactory& tensorHandleFactory); |
| 188 | |
| 189 | LayerTestResult<float, 5> ComparePooling3dTest( |
| 190 | armnn::IWorkloadFactory& workloadFactory, |
| 191 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 192 | armnn::IWorkloadFactory& refWorkloadFactory, |
| 193 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 194 | const armnn::ITensorHandleFactory& refTensorHandleFactory, |
| 195 | armnn::PoolingAlgorithm poolingType); |
| 196 | |
| 197 | LayerTestResult<uint8_t, 5> ComparePooling3dUint8Test( |
| 198 | armnn::IWorkloadFactory& workloadFactory, |
| 199 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 200 | armnn::IWorkloadFactory& refWorkloadFactory, |
| 201 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 202 | const armnn::ITensorHandleFactory& refTensorHandleFactory, |
| 203 | armnn::PoolingAlgorithm poolingType); |
| 204 | |
| 205 | LayerTestResult<int16_t, 5> ComparePooling3dInt16Test( |
| 206 | armnn::IWorkloadFactory& workloadFactory, |
| 207 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager, |
| 208 | armnn::IWorkloadFactory& refWorkloadFactory, |
| 209 | const armnn::ITensorHandleFactory& tensorHandleFactory, |
| 210 | const armnn::ITensorHandleFactory& refTensorHandleFactory, |
| 211 | armnn::PoolingAlgorithm poolingType); |
| 212 | |
| 213 | |