Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2019 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include "LayerTestResult.hpp" |
| 9 | |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 10 | #include <backendsCommon/IBackendInternal.hpp> |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 11 | #include <backendsCommon/WorkloadFactory.hpp> |
| 12 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 13 | // Equal |
| 14 | LayerTestResult<uint8_t, 4> EqualSimpleTest( |
| 15 | armnn::IWorkloadFactory& workloadFactory, |
| 16 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 17 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 18 | LayerTestResult<uint8_t, 4> EqualBroadcast1ElementTest( |
| 19 | armnn::IWorkloadFactory& workloadFactory, |
| 20 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 21 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 22 | LayerTestResult<uint8_t, 4> EqualBroadcast1dVectorTest( |
| 23 | armnn::IWorkloadFactory& workloadFactory, |
| 24 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 25 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 26 | LayerTestResult<uint8_t, 4> EqualSimpleFloat16Test( |
| 27 | armnn::IWorkloadFactory& workloadFactory, |
| 28 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 29 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 30 | LayerTestResult<uint8_t, 4> EqualBroadcast1ElementFloat16Test( |
| 31 | armnn::IWorkloadFactory& workloadFactory, |
| 32 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 33 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 34 | LayerTestResult<uint8_t, 4> EqualBroadcast1dVectorFloat16Test( |
| 35 | armnn::IWorkloadFactory& workloadFactory, |
| 36 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 37 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 38 | LayerTestResult<uint8_t, 4> EqualSimpleUint8Test( |
| 39 | armnn::IWorkloadFactory& workloadFactory, |
| 40 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 41 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 42 | LayerTestResult<uint8_t, 4> EqualBroadcast1ElementUint8Test( |
| 43 | armnn::IWorkloadFactory& workloadFactory, |
| 44 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 45 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 46 | LayerTestResult<uint8_t, 4> EqualBroadcast1dVectorUint8Test( |
| 47 | armnn::IWorkloadFactory& workloadFactory, |
| 48 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 49 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 50 | // Greater |
| 51 | LayerTestResult<uint8_t, 4> GreaterSimpleTest( |
| 52 | armnn::IWorkloadFactory& workloadFactory, |
| 53 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 54 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 55 | LayerTestResult<uint8_t, 4> GreaterBroadcast1ElementTest( |
| 56 | armnn::IWorkloadFactory& workloadFactory, |
| 57 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 58 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 59 | LayerTestResult<uint8_t, 4> GreaterBroadcast1dVectorTest( |
| 60 | armnn::IWorkloadFactory& workloadFactory, |
| 61 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 62 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 63 | LayerTestResult<uint8_t, 4> GreaterSimpleFloat16Test( |
| 64 | armnn::IWorkloadFactory& workloadFactory, |
| 65 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 66 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 67 | LayerTestResult<uint8_t, 4> GreaterBroadcast1ElementFloat16Test( |
| 68 | armnn::IWorkloadFactory& workloadFactory, |
| 69 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 70 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 71 | LayerTestResult<uint8_t, 4> GreaterBroadcast1dVectorFloat16Test( |
| 72 | armnn::IWorkloadFactory& workloadFactory, |
| 73 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 74 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 75 | LayerTestResult<uint8_t, 4> GreaterSimpleUint8Test( |
| 76 | armnn::IWorkloadFactory& workloadFactory, |
| 77 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 78 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 79 | LayerTestResult<uint8_t, 4> GreaterBroadcast1ElementUint8Test( |
| 80 | armnn::IWorkloadFactory& workloadFactory, |
| 81 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 82 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 83 | LayerTestResult<uint8_t, 4> GreaterBroadcast1dVectorUint8Test( |
| 84 | armnn::IWorkloadFactory& workloadFactory, |
| 85 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
Aron Virginas-Tar | 77bfb5e | 2019-10-16 17:45:38 +0100 | [diff] [blame] | 86 | |
Aron Virginas-Tar | 3bc00ec | 2019-10-18 15:42:58 +0100 | [diff] [blame] | 87 | // GreaterOrEqual |
| 88 | LayerTestResult<uint8_t, 4> GreaterOrEqualSimpleTest( |
| 89 | armnn::IWorkloadFactory& workloadFactory, |
| 90 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 91 | |
| 92 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1ElementTest( |
| 93 | armnn::IWorkloadFactory& workloadFactory, |
| 94 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 95 | |
| 96 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1dVectorTest( |
| 97 | armnn::IWorkloadFactory& workloadFactory, |
| 98 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 99 | |
| 100 | LayerTestResult<uint8_t, 4> GreaterOrEqualSimpleFloat16Test( |
| 101 | armnn::IWorkloadFactory& workloadFactory, |
| 102 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 103 | |
| 104 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1ElementFloat16Test( |
| 105 | armnn::IWorkloadFactory& workloadFactory, |
| 106 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 107 | |
| 108 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1dVectorFloat16Test( |
| 109 | armnn::IWorkloadFactory& workloadFactory, |
| 110 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 111 | |
| 112 | LayerTestResult<uint8_t, 4> GreaterOrEqualSimpleUint8Test( |
| 113 | armnn::IWorkloadFactory& workloadFactory, |
| 114 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 115 | |
| 116 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1ElementUint8Test( |
| 117 | armnn::IWorkloadFactory& workloadFactory, |
| 118 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 119 | |
| 120 | LayerTestResult<uint8_t, 4> GreaterOrEqualBroadcast1dVectorUint8Test( |
| 121 | armnn::IWorkloadFactory& workloadFactory, |
| 122 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 123 | |
| 124 | // Less |
| 125 | LayerTestResult<uint8_t, 4> LessSimpleTest( |
| 126 | armnn::IWorkloadFactory& workloadFactory, |
| 127 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 128 | |
| 129 | LayerTestResult<uint8_t, 4> LessBroadcast1ElementTest( |
| 130 | armnn::IWorkloadFactory& workloadFactory, |
| 131 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 132 | |
| 133 | LayerTestResult<uint8_t, 4> LessBroadcast1dVectorTest( |
| 134 | armnn::IWorkloadFactory& workloadFactory, |
| 135 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 136 | |
| 137 | LayerTestResult<uint8_t, 4> LessSimpleFloat16Test( |
| 138 | armnn::IWorkloadFactory& workloadFactory, |
| 139 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 140 | |
| 141 | LayerTestResult<uint8_t, 4> LessBroadcast1ElementFloat16Test( |
| 142 | armnn::IWorkloadFactory& workloadFactory, |
| 143 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 144 | |
| 145 | LayerTestResult<uint8_t, 4> LessBroadcast1dVectorFloat16Test( |
| 146 | armnn::IWorkloadFactory& workloadFactory, |
| 147 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 148 | |
| 149 | LayerTestResult<uint8_t, 4> LessSimpleUint8Test( |
| 150 | armnn::IWorkloadFactory& workloadFactory, |
| 151 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 152 | |
| 153 | LayerTestResult<uint8_t, 4> LessBroadcast1ElementUint8Test( |
| 154 | armnn::IWorkloadFactory& workloadFactory, |
| 155 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 156 | |
| 157 | LayerTestResult<uint8_t, 4> LessBroadcast1dVectorUint8Test( |
| 158 | armnn::IWorkloadFactory& workloadFactory, |
| 159 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 160 | |
| 161 | // LessOrEqual |
| 162 | LayerTestResult<uint8_t, 4> LessOrEqualSimpleTest( |
| 163 | armnn::IWorkloadFactory& workloadFactory, |
| 164 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 165 | |
| 166 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1ElementTest( |
| 167 | armnn::IWorkloadFactory& workloadFactory, |
| 168 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 169 | |
| 170 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1dVectorTest( |
| 171 | armnn::IWorkloadFactory& workloadFactory, |
| 172 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 173 | |
| 174 | LayerTestResult<uint8_t, 4> LessOrEqualSimpleFloat16Test( |
| 175 | armnn::IWorkloadFactory& workloadFactory, |
| 176 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 177 | |
| 178 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1ElementFloat16Test( |
| 179 | armnn::IWorkloadFactory& workloadFactory, |
| 180 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 181 | |
| 182 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1dVectorFloat16Test( |
| 183 | armnn::IWorkloadFactory& workloadFactory, |
| 184 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 185 | |
| 186 | LayerTestResult<uint8_t, 4> LessOrEqualSimpleUint8Test( |
| 187 | armnn::IWorkloadFactory& workloadFactory, |
| 188 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 189 | |
| 190 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1ElementUint8Test( |
| 191 | armnn::IWorkloadFactory& workloadFactory, |
| 192 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 193 | |
| 194 | LayerTestResult<uint8_t, 4> LessOrEqualBroadcast1dVectorUint8Test( |
| 195 | armnn::IWorkloadFactory& workloadFactory, |
| 196 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 197 | |
| 198 | // NotEqual |
| 199 | LayerTestResult<uint8_t, 4> NotEqualSimpleTest( |
| 200 | armnn::IWorkloadFactory& workloadFactory, |
| 201 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 202 | |
| 203 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1ElementTest( |
| 204 | armnn::IWorkloadFactory& workloadFactory, |
| 205 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 206 | |
| 207 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1dVectorTest( |
| 208 | armnn::IWorkloadFactory& workloadFactory, |
| 209 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 210 | |
| 211 | LayerTestResult<uint8_t, 4> NotEqualSimpleFloat16Test( |
| 212 | armnn::IWorkloadFactory& workloadFactory, |
| 213 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 214 | |
| 215 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1ElementFloat16Test( |
| 216 | armnn::IWorkloadFactory& workloadFactory, |
| 217 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 218 | |
| 219 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1dVectorFloat16Test( |
| 220 | armnn::IWorkloadFactory& workloadFactory, |
| 221 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 222 | |
| 223 | LayerTestResult<uint8_t, 4> NotEqualSimpleUint8Test( |
| 224 | armnn::IWorkloadFactory& workloadFactory, |
| 225 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 226 | |
| 227 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1ElementUint8Test( |
| 228 | armnn::IWorkloadFactory& workloadFactory, |
| 229 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |
| 230 | |
| 231 | LayerTestResult<uint8_t, 4> NotEqualBroadcast1dVectorUint8Test( |
| 232 | armnn::IWorkloadFactory& workloadFactory, |
| 233 | const armnn::IBackendInternal::IMemoryManagerSharedPtr& memoryManager); |