Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 1 | /* |
Michalis Spyrou | d466c2d | 2018-01-30 10:54:39 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2018 ARM Limited. |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
| 24 | #ifndef __ARM_COMPUTE_TEST_SHAPE_DATASETS_H__ |
| 25 | #define __ARM_COMPUTE_TEST_SHAPE_DATASETS_H__ |
| 26 | |
| 27 | #include "arm_compute/core/TensorShape.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 28 | #include "tests/framework/datasets/Datasets.h" |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 29 | |
| 30 | #include <type_traits> |
| 31 | |
| 32 | namespace arm_compute |
| 33 | { |
| 34 | namespace test |
| 35 | { |
| 36 | namespace datasets |
| 37 | { |
Gian Marco | 5420b28 | 2017-11-29 10:41:38 +0000 | [diff] [blame] | 38 | /** Parent type for all for shape datasets. */ |
| 39 | using ShapeDataset = framework::dataset::ContainerDataset<std::vector<TensorShape>>; |
| 40 | |
Michele Di Giorgio | 5daeffd | 2018-11-26 10:01:15 +0000 | [diff] [blame] | 41 | /** Data set containing tiny 1D tensor shapes. */ |
| 42 | class Tiny1DShapes final : public ShapeDataset |
| 43 | { |
| 44 | public: |
| 45 | Tiny1DShapes() |
| 46 | : ShapeDataset("Shape", |
| 47 | { |
| 48 | TensorShape{ 2U }, |
| 49 | TensorShape{ 3U }, |
| 50 | }) |
| 51 | { |
| 52 | } |
| 53 | }; |
| 54 | |
Gian Marco | 5420b28 | 2017-11-29 10:41:38 +0000 | [diff] [blame] | 55 | /** Data set containing small 1D tensor shapes. */ |
| 56 | class Small1DShapes final : public ShapeDataset |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 57 | { |
| 58 | public: |
Gian Marco | 5420b28 | 2017-11-29 10:41:38 +0000 | [diff] [blame] | 59 | Small1DShapes() |
| 60 | : ShapeDataset("Shape", |
| 61 | { |
Giorgio Arena | e3d24ce | 2018-08-24 14:44:08 +0100 | [diff] [blame] | 62 | TensorShape{ 128U }, |
| 63 | TensorShape{ 256U }, |
| 64 | TensorShape{ 512U }, |
| 65 | TensorShape{ 1024U } |
Gian Marco | 5420b28 | 2017-11-29 10:41:38 +0000 | [diff] [blame] | 66 | }) |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 67 | { |
| 68 | } |
| 69 | }; |
| 70 | |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 71 | /** Data set containing tiny 2D tensor shapes. */ |
| 72 | class Tiny2DShapes final : public ShapeDataset |
| 73 | { |
| 74 | public: |
| 75 | Tiny2DShapes() |
| 76 | : ShapeDataset("Shape", |
| 77 | { |
| 78 | TensorShape{ 7U, 7U }, |
| 79 | TensorShape{ 11U, 13U }, |
| 80 | }) |
| 81 | { |
| 82 | } |
| 83 | }; |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 84 | /** Data set containing small 2D tensor shapes. */ |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 85 | class Small2DShapes final : public ShapeDataset |
| 86 | { |
| 87 | public: |
| 88 | Small2DShapes() |
| 89 | : ShapeDataset("Shape", |
| 90 | { |
Moritz Pflanzer | 3ce3ff4 | 2017-07-21 17:41:02 +0100 | [diff] [blame] | 91 | TensorShape{ 7U, 7U }, |
| 92 | TensorShape{ 27U, 13U }, |
| 93 | TensorShape{ 128U, 64U } |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 94 | }) |
| 95 | { |
| 96 | } |
| 97 | }; |
| 98 | |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 99 | /** Data set containing tiny 3D tensor shapes. */ |
| 100 | class Tiny3DShapes final : public ShapeDataset |
| 101 | { |
| 102 | public: |
| 103 | Tiny3DShapes() |
| 104 | : ShapeDataset("Shape", |
| 105 | { |
| 106 | TensorShape{ 7U, 7U, 5U }, |
| 107 | TensorShape{ 23U, 13U, 9U }, |
| 108 | }) |
| 109 | { |
| 110 | } |
| 111 | }; |
| 112 | |
Gian Marco Iodice | 06b184a | 2017-08-29 16:05:25 +0100 | [diff] [blame] | 113 | /** Data set containing small 3D tensor shapes. */ |
| 114 | class Small3DShapes final : public ShapeDataset |
| 115 | { |
| 116 | public: |
| 117 | Small3DShapes() |
| 118 | : ShapeDataset("Shape", |
| 119 | { |
Georgios Pinitas | 02ee429 | 2018-02-15 17:22:36 +0000 | [diff] [blame] | 120 | TensorShape{ 1U, 7U, 7U }, |
| 121 | TensorShape{ 7U, 7U, 5U }, |
Gian Marco Iodice | 06b184a | 2017-08-29 16:05:25 +0100 | [diff] [blame] | 122 | TensorShape{ 27U, 13U, 37U }, |
| 123 | TensorShape{ 128U, 64U, 21U } |
| 124 | }) |
| 125 | { |
| 126 | } |
| 127 | }; |
| 128 | |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 129 | /** Data set containing tiny 4D tensor shapes. */ |
| 130 | class Tiny4DShapes final : public ShapeDataset |
| 131 | { |
| 132 | public: |
| 133 | Tiny4DShapes() |
| 134 | : ShapeDataset("Shape", |
| 135 | { |
| 136 | TensorShape{ 7U, 7U, 5U, 3U }, |
| 137 | TensorShape{ 17U, 13U, 7U, 2U }, |
| 138 | }) |
| 139 | { |
| 140 | } |
| 141 | }; |
Gian Marco Iodice | 06b184a | 2017-08-29 16:05:25 +0100 | [diff] [blame] | 142 | /** Data set containing small 4D tensor shapes. */ |
| 143 | class Small4DShapes final : public ShapeDataset |
| 144 | { |
| 145 | public: |
| 146 | Small4DShapes() |
| 147 | : ShapeDataset("Shape", |
| 148 | { |
Georgios Pinitas | 02ee429 | 2018-02-15 17:22:36 +0000 | [diff] [blame] | 149 | TensorShape{ 1U, 7U, 1U, 3U }, |
| 150 | TensorShape{ 7U, 7U, 5U, 3U }, |
Gian Marco Iodice | 06b184a | 2017-08-29 16:05:25 +0100 | [diff] [blame] | 151 | TensorShape{ 27U, 13U, 37U, 2U }, |
| 152 | TensorShape{ 128U, 64U, 21U, 3U } |
| 153 | }) |
| 154 | { |
| 155 | } |
| 156 | }; |
| 157 | |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 158 | /** Data set containing small tensor shapes. */ |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 159 | class TinyShapes final : public ShapeDataset |
| 160 | { |
| 161 | public: |
| 162 | TinyShapes() |
| 163 | : ShapeDataset("Shape", |
| 164 | { |
| 165 | // Batch size 1 |
| 166 | TensorShape{ 9U, 9U }, |
| 167 | TensorShape{ 27U, 13U, 2U }, |
| 168 | }) |
| 169 | { |
| 170 | } |
| 171 | }; |
| 172 | /** Data set containing small tensor shapes. */ |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 173 | class SmallShapes final : public ShapeDataset |
| 174 | { |
| 175 | public: |
| 176 | SmallShapes() |
| 177 | : ShapeDataset("Shape", |
| 178 | { |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 179 | // Batch size 1 |
Gian Marco Iodice | 215b4ea | 2018-06-28 16:29:29 +0100 | [diff] [blame] | 180 | TensorShape{ 11U, 11U }, |
Georgios Pinitas | 64f1a90 | 2018-09-18 13:42:51 +0100 | [diff] [blame] | 181 | TensorShape{ 27U, 13U, 7U }, |
| 182 | TensorShape{ 31U, 27U, 17U, 2U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 183 | // Batch size 4 |
Gian Marco Iodice | 215b4ea | 2018-06-28 16:29:29 +0100 | [diff] [blame] | 184 | TensorShape{ 11U, 11U, 3U, 4U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 185 | TensorShape{ 27U, 13U, 2U, 4U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 186 | // Arbitrary batch size |
Gian Marco Iodice | 215b4ea | 2018-06-28 16:29:29 +0100 | [diff] [blame] | 187 | TensorShape{ 11U, 11U, 3U, 5U } |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 188 | }) |
| 189 | { |
| 190 | } |
| 191 | }; |
| 192 | |
Diego Lopez Recas | 0021d75 | 2017-12-18 14:42:56 +0000 | [diff] [blame] | 193 | /** Data set containing pairs of small tensor shapes that are broadcast compatible. */ |
| 194 | class SmallShapesBroadcast final : public framework::dataset::ZipDataset<ShapeDataset, ShapeDataset> |
| 195 | { |
| 196 | public: |
| 197 | SmallShapesBroadcast() |
| 198 | : ZipDataset<ShapeDataset, ShapeDataset>( |
| 199 | ShapeDataset("Shape0", |
| 200 | { |
| 201 | TensorShape{ 9U, 9U }, |
| 202 | TensorShape{ 27U, 13U, 2U }, |
| 203 | TensorShape{ 128U, 1U, 5U, 3U }, |
| 204 | TensorShape{ 9U, 9U, 3U, 4U }, |
| 205 | TensorShape{ 27U, 13U, 2U, 4U }, |
| 206 | TensorShape{ 1U, 1U, 1U, 5U } |
| 207 | }), |
| 208 | ShapeDataset("Shape1", |
| 209 | { |
| 210 | TensorShape{ 9U, 1U, 2U }, |
| 211 | TensorShape{ 1U, 13U, 2U }, |
| 212 | TensorShape{ 128U, 64U, 1U, 3U }, |
| 213 | TensorShape{ 9U, 1U, 3U }, |
| 214 | TensorShape{ 1U }, |
| 215 | TensorShape{ 9U, 9U, 3U, 5U } |
| 216 | })) |
| 217 | { |
| 218 | } |
| 219 | }; |
| 220 | |
steniu01 | f81652d | 2017-09-11 15:29:12 +0100 | [diff] [blame] | 221 | /** Data set containing medium tensor shapes. */ |
| 222 | class MediumShapes final : public ShapeDataset |
| 223 | { |
| 224 | public: |
| 225 | MediumShapes() |
| 226 | : ShapeDataset("Shape", |
| 227 | { |
| 228 | // Batch size 1 |
| 229 | TensorShape{ 37U, 37U }, |
| 230 | TensorShape{ 27U, 33U, 2U }, |
| 231 | TensorShape{ 128U, 64U, 1U, 3U }, |
| 232 | // Batch size 4 |
| 233 | TensorShape{ 37U, 37U, 3U, 4U }, |
| 234 | TensorShape{ 27U, 33U, 2U, 4U }, |
| 235 | // Arbitrary batch size |
| 236 | TensorShape{ 37U, 37U, 3U, 5U } |
| 237 | }) |
| 238 | { |
| 239 | } |
| 240 | }; |
| 241 | |
Gian Marco | 37908d9 | 2017-11-07 14:38:22 +0000 | [diff] [blame] | 242 | /** Data set containing medium 2D tensor shapes. */ |
| 243 | class Medium2DShapes final : public ShapeDataset |
| 244 | { |
| 245 | public: |
| 246 | Medium2DShapes() |
| 247 | : ShapeDataset("Shape", |
| 248 | { |
| 249 | TensorShape{ 42U, 37U }, |
| 250 | TensorShape{ 57U, 60U }, |
| 251 | TensorShape{ 128U, 64U }, |
Gian Marco Iodice | 2abb216 | 2018-04-11 10:49:04 +0100 | [diff] [blame] | 252 | TensorShape{ 83U, 72U }, |
| 253 | TensorShape{ 40U, 40U } |
Gian Marco | 37908d9 | 2017-11-07 14:38:22 +0000 | [diff] [blame] | 254 | }) |
| 255 | { |
| 256 | } |
| 257 | }; |
| 258 | |
Gian Marco Iodice | 7e4b239 | 2018-02-22 16:17:20 +0000 | [diff] [blame] | 259 | /** Data set containing medium 3D tensor shapes. */ |
| 260 | class Medium3DShapes final : public ShapeDataset |
| 261 | { |
| 262 | public: |
| 263 | Medium3DShapes() |
| 264 | : ShapeDataset("Shape", |
| 265 | { |
| 266 | TensorShape{ 42U, 37U, 8U }, |
| 267 | TensorShape{ 57U, 60U, 13U }, |
| 268 | TensorShape{ 128U, 64U, 21U }, |
| 269 | TensorShape{ 83U, 72U, 14U } |
| 270 | }) |
| 271 | { |
| 272 | } |
| 273 | }; |
| 274 | |
| 275 | /** Data set containing medium 4D tensor shapes. */ |
| 276 | class Medium4DShapes final : public ShapeDataset |
| 277 | { |
| 278 | public: |
| 279 | Medium4DShapes() |
| 280 | : ShapeDataset("Shape", |
| 281 | { |
| 282 | TensorShape{ 42U, 37U, 8U, 15U }, |
| 283 | TensorShape{ 57U, 60U, 13U, 8U }, |
| 284 | TensorShape{ 128U, 64U, 21U, 13U }, |
| 285 | TensorShape{ 83U, 72U, 14U, 5U } |
| 286 | }) |
| 287 | { |
| 288 | } |
| 289 | }; |
| 290 | |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 291 | /** Data set containing large tensor shapes. */ |
| 292 | class LargeShapes final : public ShapeDataset |
| 293 | { |
| 294 | public: |
| 295 | LargeShapes() |
| 296 | : ShapeDataset("Shape", |
| 297 | { |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 298 | // Batch size 1 |
Gian Marco | 7f0f790 | 2017-12-07 09:26:56 +0000 | [diff] [blame] | 299 | TensorShape{ 1921U, 1083U }, |
| 300 | TensorShape{ 641U, 485U, 2U, 3U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 301 | // Batch size 4 |
Gian Marco | 7f0f790 | 2017-12-07 09:26:56 +0000 | [diff] [blame] | 302 | TensorShape{ 799U, 595U, 1U, 4U }, |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 303 | }) |
| 304 | { |
| 305 | } |
| 306 | }; |
| 307 | |
Diego Lopez Recas | 0021d75 | 2017-12-18 14:42:56 +0000 | [diff] [blame] | 308 | /** Data set containing pairs of large tensor shapes that are broadcast compatible. */ |
| 309 | class LargeShapesBroadcast final : public framework::dataset::ZipDataset<ShapeDataset, ShapeDataset> |
| 310 | { |
| 311 | public: |
| 312 | LargeShapesBroadcast() |
| 313 | : ZipDataset<ShapeDataset, ShapeDataset>( |
| 314 | ShapeDataset("Shape0", |
| 315 | { |
| 316 | TensorShape{ 1921U, 541U }, |
| 317 | TensorShape{ 1U, 485U, 2U, 3U }, |
| 318 | TensorShape{ 4159U, 1U }, |
| 319 | TensorShape{ 799U } |
| 320 | }), |
| 321 | ShapeDataset("Shape1", |
| 322 | { |
| 323 | TensorShape{ 1921U, 1U, 2U }, |
| 324 | TensorShape{ 641U, 1U, 2U, 3U }, |
| 325 | TensorShape{ 1U, 127U, 25U }, |
| 326 | TensorShape{ 799U, 595U, 1U, 4U } |
| 327 | })) |
| 328 | { |
| 329 | } |
| 330 | }; |
| 331 | |
Gian Marco | 5420b28 | 2017-11-29 10:41:38 +0000 | [diff] [blame] | 332 | /** Data set containing large 1D tensor shapes. */ |
| 333 | class Large1DShapes final : public ShapeDataset |
| 334 | { |
| 335 | public: |
| 336 | Large1DShapes() |
| 337 | : ShapeDataset("Shape", |
| 338 | { |
| 339 | TensorShape{ 1921U }, |
| 340 | TensorShape{ 1245U }, |
| 341 | TensorShape{ 4160U } |
| 342 | }) |
| 343 | { |
| 344 | } |
| 345 | }; |
| 346 | |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 347 | /** Data set containing large 2D tensor shapes. */ |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 348 | class Large2DShapes final : public ShapeDataset |
| 349 | { |
| 350 | public: |
| 351 | Large2DShapes() |
| 352 | : ShapeDataset("Shape", |
| 353 | { |
| 354 | TensorShape{ 1920U, 1080U }, |
Moritz Pflanzer | 3ce3ff4 | 2017-07-21 17:41:02 +0100 | [diff] [blame] | 355 | TensorShape{ 1245U, 652U }, |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 356 | TensorShape{ 4160U, 3120U } |
| 357 | }) |
| 358 | { |
| 359 | } |
| 360 | }; |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 361 | |
Gian Marco Iodice | 06b184a | 2017-08-29 16:05:25 +0100 | [diff] [blame] | 362 | /** Data set containing large 3D tensor shapes. */ |
| 363 | class Large3DShapes final : public ShapeDataset |
| 364 | { |
| 365 | public: |
| 366 | Large3DShapes() |
| 367 | : ShapeDataset("Shape", |
| 368 | { |
| 369 | TensorShape{ 320U, 240U, 3U }, |
| 370 | TensorShape{ 383U, 653U, 2U }, |
| 371 | TensorShape{ 721U, 123U, 13U } |
| 372 | }) |
| 373 | { |
| 374 | } |
| 375 | }; |
| 376 | |
| 377 | /** Data set containing large 4D tensor shapes. */ |
| 378 | class Large4DShapes final : public ShapeDataset |
| 379 | { |
| 380 | public: |
| 381 | Large4DShapes() |
| 382 | : ShapeDataset("Shape", |
| 383 | { |
| 384 | TensorShape{ 320U, 123U, 3U, 3U }, |
| 385 | TensorShape{ 383U, 413U, 2U, 3U }, |
| 386 | TensorShape{ 517U, 123U, 13U, 2U } |
| 387 | }) |
| 388 | { |
| 389 | } |
| 390 | }; |
| 391 | |
Gian Marco Iodice | 247f52c | 2018-03-22 11:24:56 +0000 | [diff] [blame] | 392 | /** Data set containing small 3x3 tensor shapes. */ |
| 393 | class Small3x3Shapes final : public ShapeDataset |
| 394 | { |
| 395 | public: |
| 396 | Small3x3Shapes() |
| 397 | : ShapeDataset("Shape", |
| 398 | { |
| 399 | TensorShape{ 3U, 3U, 7U, 4U }, |
| 400 | TensorShape{ 3U, 3U, 4U, 13U }, |
| 401 | TensorShape{ 3U, 3U, 9U, 2U }, |
| 402 | TensorShape{ 3U, 3U, 3U, 5U }, |
| 403 | }) |
| 404 | { |
| 405 | } |
| 406 | }; |
| 407 | |
Gian Marco Iodice | f1c2bf0 | 2018-06-13 14:05:54 +0100 | [diff] [blame] | 408 | /** Data set containing small 3x1 tensor shapes. */ |
| 409 | class Small3x1Shapes final : public ShapeDataset |
| 410 | { |
| 411 | public: |
| 412 | Small3x1Shapes() |
| 413 | : ShapeDataset("Shape", |
| 414 | { |
| 415 | TensorShape{ 3U, 1U, 7U, 4U }, |
| 416 | TensorShape{ 3U, 1U, 4U, 13U }, |
| 417 | TensorShape{ 3U, 1U, 9U, 2U }, |
| 418 | TensorShape{ 3U, 1U, 3U, 5U }, |
| 419 | }) |
| 420 | { |
| 421 | } |
| 422 | }; |
| 423 | |
| 424 | /** Data set containing small 1x3 tensor shapes. */ |
| 425 | class Small1x3Shapes final : public ShapeDataset |
| 426 | { |
| 427 | public: |
| 428 | Small1x3Shapes() |
| 429 | : ShapeDataset("Shape", |
| 430 | { |
| 431 | TensorShape{ 1U, 3U, 7U, 4U }, |
| 432 | TensorShape{ 1U, 3U, 4U, 13U }, |
| 433 | TensorShape{ 1U, 3U, 9U, 2U }, |
| 434 | TensorShape{ 1U, 3U, 3U, 5U }, |
| 435 | }) |
| 436 | { |
| 437 | } |
| 438 | }; |
| 439 | |
Gian Marco Iodice | 247f52c | 2018-03-22 11:24:56 +0000 | [diff] [blame] | 440 | /** Data set containing large 3x3 tensor shapes. */ |
| 441 | class Large3x3Shapes final : public ShapeDataset |
| 442 | { |
| 443 | public: |
| 444 | Large3x3Shapes() |
| 445 | : ShapeDataset("Shape", |
| 446 | { |
| 447 | TensorShape{ 3U, 3U, 32U, 64U }, |
| 448 | TensorShape{ 3U, 3U, 51U, 13U }, |
| 449 | TensorShape{ 3U, 3U, 53U, 47U }, |
| 450 | TensorShape{ 3U, 3U, 128U, 384U }, |
| 451 | }) |
| 452 | { |
| 453 | } |
| 454 | }; |
| 455 | |
Gian Marco Iodice | f1c2bf0 | 2018-06-13 14:05:54 +0100 | [diff] [blame] | 456 | /** Data set containing large 3x1 tensor shapes. */ |
| 457 | class Large3x1Shapes final : public ShapeDataset |
| 458 | { |
| 459 | public: |
| 460 | Large3x1Shapes() |
| 461 | : ShapeDataset("Shape", |
| 462 | { |
| 463 | TensorShape{ 3U, 1U, 32U, 64U }, |
| 464 | TensorShape{ 3U, 1U, 51U, 13U }, |
| 465 | TensorShape{ 3U, 1U, 53U, 47U }, |
| 466 | TensorShape{ 3U, 1U, 128U, 384U }, |
| 467 | }) |
| 468 | { |
| 469 | } |
| 470 | }; |
| 471 | |
| 472 | /** Data set containing large 1x3 tensor shapes. */ |
| 473 | class Large1x3Shapes final : public ShapeDataset |
| 474 | { |
| 475 | public: |
| 476 | Large1x3Shapes() |
| 477 | : ShapeDataset("Shape", |
| 478 | { |
| 479 | TensorShape{ 1U, 3U, 32U, 64U }, |
| 480 | TensorShape{ 1U, 3U, 51U, 13U }, |
| 481 | TensorShape{ 1U, 3U, 53U, 47U }, |
| 482 | TensorShape{ 1U, 3U, 128U, 384U }, |
| 483 | }) |
| 484 | { |
| 485 | } |
| 486 | }; |
| 487 | |
Giorgio Arena | 9373c8b | 2018-04-11 19:07:17 +0100 | [diff] [blame] | 488 | /** Data set containing small 5x5 tensor shapes. */ |
| 489 | class Small5x5Shapes final : public ShapeDataset |
| 490 | { |
| 491 | public: |
| 492 | Small5x5Shapes() |
| 493 | : ShapeDataset("Shape", |
| 494 | { |
| 495 | TensorShape{ 5U, 5U, 7U, 4U }, |
| 496 | TensorShape{ 5U, 5U, 4U, 13U }, |
| 497 | TensorShape{ 5U, 5U, 9U, 2U }, |
| 498 | TensorShape{ 5U, 5U, 3U, 5U }, |
| 499 | }) |
| 500 | { |
| 501 | } |
| 502 | }; |
| 503 | |
| 504 | /** Data set containing large 5x5 tensor shapes. */ |
| 505 | class Large5x5Shapes final : public ShapeDataset |
| 506 | { |
| 507 | public: |
| 508 | Large5x5Shapes() |
| 509 | : ShapeDataset("Shape", |
| 510 | { |
| 511 | TensorShape{ 5U, 5U, 32U, 64U }, |
| 512 | TensorShape{ 5U, 5U, 51U, 13U }, |
| 513 | TensorShape{ 5U, 5U, 53U, 47U }, |
| 514 | TensorShape{ 5U, 5U, 128U, 384U }, |
| 515 | }) |
| 516 | { |
| 517 | } |
| 518 | }; |
| 519 | |
Gian Marco Iodice | 876be2a | 2018-07-03 12:22:09 +0100 | [diff] [blame] | 520 | /** Data set containing small 5x1 tensor shapes. */ |
| 521 | class Small5x1Shapes final : public ShapeDataset |
| 522 | { |
| 523 | public: |
| 524 | Small5x1Shapes() |
| 525 | : ShapeDataset("Shape", |
| 526 | { |
| 527 | TensorShape{ 5U, 1U, 7U, 4U }, |
| 528 | TensorShape{ 5U, 1U, 4U, 13U }, |
| 529 | TensorShape{ 5U, 1U, 9U, 2U }, |
| 530 | TensorShape{ 5U, 1U, 3U, 5U }, |
| 531 | }) |
| 532 | { |
| 533 | } |
| 534 | }; |
| 535 | |
| 536 | /** Data set containing large 5x1 tensor shapes. */ |
| 537 | class Large5x1Shapes final : public ShapeDataset |
| 538 | { |
| 539 | public: |
| 540 | Large5x1Shapes() |
| 541 | : ShapeDataset("Shape", |
| 542 | { |
| 543 | TensorShape{ 5U, 1U, 32U, 64U }, |
| 544 | TensorShape{ 5U, 1U, 51U, 13U }, |
| 545 | TensorShape{ 5U, 1U, 53U, 47U }, |
| 546 | TensorShape{ 5U, 1U, 128U, 384U }, |
| 547 | }) |
| 548 | { |
| 549 | } |
| 550 | }; |
| 551 | |
| 552 | /** Data set containing small 1x5 tensor shapes. */ |
| 553 | class Small1x5Shapes final : public ShapeDataset |
| 554 | { |
| 555 | public: |
| 556 | Small1x5Shapes() |
| 557 | : ShapeDataset("Shape", |
| 558 | { |
| 559 | TensorShape{ 1U, 5U, 7U, 4U }, |
| 560 | TensorShape{ 1U, 5U, 4U, 13U }, |
| 561 | TensorShape{ 1U, 5U, 9U, 2U }, |
| 562 | TensorShape{ 1U, 5U, 3U, 5U }, |
| 563 | }) |
| 564 | { |
| 565 | } |
| 566 | }; |
| 567 | |
| 568 | /** Data set containing large 1x5 tensor shapes. */ |
| 569 | class Large1x5Shapes final : public ShapeDataset |
| 570 | { |
| 571 | public: |
| 572 | Large1x5Shapes() |
| 573 | : ShapeDataset("Shape", |
| 574 | { |
| 575 | TensorShape{ 1U, 5U, 32U, 64U }, |
| 576 | TensorShape{ 1U, 5U, 51U, 13U }, |
| 577 | TensorShape{ 1U, 5U, 53U, 47U }, |
| 578 | TensorShape{ 1U, 5U, 128U, 384U }, |
| 579 | }) |
| 580 | { |
| 581 | } |
| 582 | }; |
| 583 | |
Pablo Tello | f5f34bb | 2017-08-22 13:34:13 +0100 | [diff] [blame] | 584 | /** Data set containing small tensor shapes for deconvolution. */ |
| 585 | class SmallDeconvolutionShapes final : public ShapeDataset |
| 586 | { |
| 587 | public: |
| 588 | SmallDeconvolutionShapes() |
| 589 | : ShapeDataset("InputShape", |
| 590 | { |
Georgios Pinitas | ced7a8d | 2018-02-01 16:31:33 +0000 | [diff] [blame] | 591 | TensorShape{ 5U, 4U, 3U, 2U }, |
Pablo Tello | f5f34bb | 2017-08-22 13:34:13 +0100 | [diff] [blame] | 592 | TensorShape{ 5U, 5U, 3U }, |
| 593 | TensorShape{ 11U, 13U, 4U, 3U } |
| 594 | }) |
| 595 | { |
| 596 | } |
| 597 | }; |
| 598 | |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 599 | /** Data set containing tiny tensor shapes for direct convolution. */ |
| 600 | class TinyDirectConvolutionShapes final : public ShapeDataset |
| 601 | { |
| 602 | public: |
| 603 | TinyDirectConvolutionShapes() |
| 604 | : ShapeDataset("InputShape", |
| 605 | { |
| 606 | // Batch size 1 |
| 607 | TensorShape{ 11U, 13U, 3U }, |
| 608 | TensorShape{ 7U, 27U, 3U } |
| 609 | }) |
| 610 | { |
| 611 | } |
| 612 | }; |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 613 | /** Data set containing small tensor shapes for direct convolution. */ |
| 614 | class SmallDirectConvolutionShapes final : public ShapeDataset |
| 615 | { |
| 616 | public: |
| 617 | SmallDirectConvolutionShapes() |
| 618 | : ShapeDataset("InputShape", |
| 619 | { |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 620 | // Batch size 1 |
steniu01 | f81652d | 2017-09-11 15:29:12 +0100 | [diff] [blame] | 621 | TensorShape{ 35U, 35U, 3U }, |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 622 | TensorShape{ 32U, 37U, 3U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 623 | // Batch size 4 |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 624 | TensorShape{ 32U, 37U, 3U, 4U }, |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 625 | // Batch size 8 |
SiCong Li | caf8c5e | 2017-08-21 13:12:52 +0100 | [diff] [blame] | 626 | TensorShape{ 32U, 37U, 3U, 8U }, |
Michalis Spyrou | d466c2d | 2018-01-30 10:54:39 +0000 | [diff] [blame] | 627 | TensorShape{ 33U, 35U, 8U, 8U } |
Moritz Pflanzer | b3d2579 | 2017-07-26 11:49:37 +0100 | [diff] [blame] | 628 | }) |
| 629 | { |
| 630 | } |
| 631 | }; |
Gian Marco Iodice | b2833b8 | 2017-09-13 16:23:18 +0100 | [diff] [blame] | 632 | |
Xinghang Zhou | 33ff9ef | 2018-01-17 11:23:39 +0800 | [diff] [blame] | 633 | /** Data set containing small tensor shapes for direct convolution. */ |
| 634 | class SmallDirectConvolutionTensorShiftShapes final : public ShapeDataset |
| 635 | { |
| 636 | public: |
| 637 | SmallDirectConvolutionTensorShiftShapes() |
| 638 | : ShapeDataset("InputShape", |
| 639 | { |
| 640 | // Batch size 1 |
| 641 | TensorShape{ 35U, 35U, 3U }, |
| 642 | TensorShape{ 32U, 37U, 3U }, |
| 643 | // Batch size 4 |
| 644 | TensorShape{ 32U, 37U, 3U, 4U }, |
| 645 | // Batch size 8 |
| 646 | TensorShape{ 32U, 37U, 3U, 8U }, |
| 647 | TensorShape{ 33U, 35U, 3U, 8U }, |
| 648 | // Arbitrary batch size |
| 649 | TensorShape{ 32U, 37U, 3U, 8U } |
| 650 | }) |
| 651 | { |
| 652 | } |
| 653 | }; |
| 654 | |
Giorgio Arena | 0f17039 | 2018-07-18 16:13:12 +0100 | [diff] [blame] | 655 | /** Data set containing small grouped im2col tensor shapes. */ |
| 656 | class GroupedIm2ColSmallShapes final : public ShapeDataset |
| 657 | { |
| 658 | public: |
| 659 | GroupedIm2ColSmallShapes() |
| 660 | : ShapeDataset("Shape", |
| 661 | { |
| 662 | TensorShape{ 11U, 11U, 48U }, |
| 663 | TensorShape{ 27U, 13U, 24U }, |
| 664 | TensorShape{ 128U, 64U, 12U, 3U }, |
| 665 | TensorShape{ 11U, 11U, 48U, 4U }, |
| 666 | TensorShape{ 27U, 13U, 24U, 4U }, |
| 667 | TensorShape{ 11U, 11U, 48U, 5U } |
| 668 | }) |
| 669 | { |
| 670 | } |
| 671 | }; |
| 672 | |
| 673 | /** Data set containing large grouped im2col tensor shapes. */ |
| 674 | class GroupedIm2ColLargeShapes final : public ShapeDataset |
| 675 | { |
| 676 | public: |
| 677 | GroupedIm2ColLargeShapes() |
| 678 | : ShapeDataset("Shape", |
| 679 | { |
Georgios Pinitas | 2a51818 | 2018-08-13 15:53:31 +0100 | [diff] [blame] | 680 | TensorShape{ 153U, 231U, 12U }, |
| 681 | TensorShape{ 123U, 191U, 12U, 2U }, |
Giorgio Arena | 0f17039 | 2018-07-18 16:13:12 +0100 | [diff] [blame] | 682 | }) |
| 683 | { |
| 684 | } |
| 685 | }; |
| 686 | |
Giorgio Arena | c6aa49b | 2018-08-07 11:53:30 +0100 | [diff] [blame] | 687 | /** Data set containing small grouped weights tensor shapes. */ |
| 688 | class GroupedWeightsSmallShapes final : public ShapeDataset |
| 689 | { |
| 690 | public: |
| 691 | GroupedWeightsSmallShapes() |
| 692 | : ShapeDataset("Shape", |
| 693 | { |
| 694 | TensorShape{ 3U, 3U, 48U, 120U }, |
| 695 | TensorShape{ 1U, 3U, 24U, 240U }, |
| 696 | TensorShape{ 3U, 1U, 12U, 480U }, |
| 697 | TensorShape{ 5U, 5U, 48U, 120U }, |
| 698 | TensorShape{ 1U, 5U, 24U, 240U }, |
| 699 | TensorShape{ 5U, 1U, 48U, 480U } |
| 700 | }) |
| 701 | { |
| 702 | } |
| 703 | }; |
| 704 | |
| 705 | /** Data set containing large grouped weights tensor shapes. */ |
| 706 | class GroupedWeightsLargeShapes final : public ShapeDataset |
| 707 | { |
| 708 | public: |
| 709 | GroupedWeightsLargeShapes() |
| 710 | : ShapeDataset("Shape", |
| 711 | { |
| 712 | TensorShape{ 9U, 9U, 96U, 240U }, |
| 713 | TensorShape{ 7U, 9U, 48U, 480U }, |
| 714 | TensorShape{ 9U, 7U, 24U, 960U }, |
| 715 | TensorShape{ 13U, 13U, 96U, 240U }, |
| 716 | TensorShape{ 11U, 13U, 48U, 480U }, |
| 717 | TensorShape{ 13U, 11U, 24U, 960U } |
| 718 | }) |
| 719 | { |
| 720 | } |
| 721 | }; |
| 722 | |
Giorgio Arena | 04a8f8c | 2017-11-23 11:45:24 +0000 | [diff] [blame] | 723 | /** Data set containing 2D tensor shapes for DepthConcatenateLayer. */ |
| 724 | class DepthConcatenateLayerShapes final : public ShapeDataset |
Gian Marco Iodice | b2833b8 | 2017-09-13 16:23:18 +0100 | [diff] [blame] | 725 | { |
| 726 | public: |
Giorgio Arena | 04a8f8c | 2017-11-23 11:45:24 +0000 | [diff] [blame] | 727 | DepthConcatenateLayerShapes() |
Gian Marco Iodice | b2833b8 | 2017-09-13 16:23:18 +0100 | [diff] [blame] | 728 | : ShapeDataset("Shape", |
| 729 | { |
| 730 | TensorShape{ 322U, 243U }, |
| 731 | TensorShape{ 463U, 879U }, |
| 732 | TensorShape{ 416U, 651U } |
| 733 | }) |
| 734 | { |
| 735 | } |
| 736 | }; |
| 737 | |
Michalis Spyrou | 55b3d12 | 2018-05-09 09:59:23 +0100 | [diff] [blame] | 738 | /** Data set containing tensor shapes for WidthConcatenateLayer. */ |
| 739 | class WidthConcatenateLayerShapes final : public ShapeDataset |
| 740 | { |
| 741 | public: |
| 742 | WidthConcatenateLayerShapes() |
| 743 | : ShapeDataset("Shape", |
| 744 | { |
| 745 | TensorShape{ 232U, 65U, 3U }, |
| 746 | TensorShape{ 432U, 65U, 3U }, |
Michele Di Giorgio | e6dbde0 | 2018-10-19 15:46:19 +0100 | [diff] [blame] | 747 | TensorShape{ 124U, 65U, 3U }, |
| 748 | TensorShape{ 124U, 65U, 3U, 4U } |
Michalis Spyrou | 55b3d12 | 2018-05-09 09:59:23 +0100 | [diff] [blame] | 749 | }) |
| 750 | { |
| 751 | } |
| 752 | }; |
| 753 | |
Gian Marco Iodice | bf17955 | 2017-09-05 13:51:21 +0100 | [diff] [blame] | 754 | /** Data set containing global pooling tensor shapes. */ |
| 755 | class GlobalPoolingShapes final : public ShapeDataset |
| 756 | { |
| 757 | public: |
| 758 | GlobalPoolingShapes() |
| 759 | : ShapeDataset("Shape", |
| 760 | { |
| 761 | // Batch size 1 |
| 762 | TensorShape{ 9U, 9U }, |
| 763 | TensorShape{ 13U, 13U, 2U }, |
| 764 | TensorShape{ 27U, 27U, 1U, 3U }, |
| 765 | // Batch size 4 |
| 766 | TensorShape{ 31U, 31U, 3U, 4U }, |
| 767 | TensorShape{ 34U, 34U, 2U, 4U } |
| 768 | }) |
| 769 | { |
| 770 | } |
| 771 | }; |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 772 | /** Data set containing tiny softmax layer shapes. */ |
| 773 | class SoftmaxLayerTinyShapes final : public ShapeDataset |
| 774 | { |
| 775 | public: |
| 776 | SoftmaxLayerTinyShapes() |
| 777 | : ShapeDataset("Shape", |
| 778 | { |
| 779 | TensorShape{ 9U, 9U }, |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 780 | TensorShape{ 128U, 10U }, |
Anthony Barbier | 1c0d0ff | 2018-01-31 13:05:09 +0000 | [diff] [blame] | 781 | }) |
| 782 | { |
| 783 | } |
| 784 | }; |
Gian Marco Iodice | bf17955 | 2017-09-05 13:51:21 +0100 | [diff] [blame] | 785 | |
Chunosov | d6afedc | 2017-11-06 22:09:45 +0700 | [diff] [blame] | 786 | /** Data set containing small softmax layer shapes. */ |
| 787 | class SoftmaxLayerSmallShapes final : public ShapeDataset |
| 788 | { |
| 789 | public: |
| 790 | SoftmaxLayerSmallShapes() |
| 791 | : ShapeDataset("Shape", |
| 792 | { |
| 793 | TensorShape{ 9U, 9U }, |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 794 | TensorShape{ 256U, 10U }, |
| 795 | TensorShape{ 353U, 8U }, |
| 796 | TensorShape{ 781U, 5U }, |
Chunosov | d6afedc | 2017-11-06 22:09:45 +0700 | [diff] [blame] | 797 | }) |
| 798 | { |
| 799 | } |
| 800 | }; |
| 801 | |
| 802 | /** Data set containing large softmax layer shapes. */ |
| 803 | class SoftmaxLayerLargeShapes final : public ShapeDataset |
| 804 | { |
| 805 | public: |
| 806 | SoftmaxLayerLargeShapes() |
| 807 | : ShapeDataset("Shape", |
| 808 | { |
| 809 | TensorShape{ 1000U, 10U }, |
Georgios Pinitas | 17d6d3c | 2018-07-02 17:52:40 +0100 | [diff] [blame] | 810 | TensorShape{ 3989U, 10U }, |
Chunosov | d6afedc | 2017-11-06 22:09:45 +0700 | [diff] [blame] | 811 | TensorShape{ 7339U, 11U }, |
Giuseppe Rossini | 87e896a | 2018-08-24 10:24:12 +0100 | [diff] [blame] | 812 | |
| 813 | }) |
| 814 | { |
| 815 | } |
| 816 | }; |
| 817 | |
| 818 | /** Data set containing large and small softmax layer 4D shapes. */ |
| 819 | class SoftmaxLayer4DShapes final : public ShapeDataset |
| 820 | { |
| 821 | public: |
| 822 | SoftmaxLayer4DShapes() |
| 823 | : ShapeDataset("Shape", |
| 824 | { |
| 825 | TensorShape{ 9U, 9U, 9U, 9U }, |
| 826 | TensorShape{ 256U, 10U, 1U, 9U }, |
| 827 | TensorShape{ 353U, 8U, 2U }, |
| 828 | TensorShape{ 781U, 5U, 2U, 2U }, |
| 829 | TensorShape{ 781U, 11U, 1U, 2U }, |
Chunosov | d6afedc | 2017-11-06 22:09:45 +0700 | [diff] [blame] | 830 | }) |
| 831 | { |
| 832 | } |
| 833 | }; |
| 834 | |
Ioan-Cristian Szabo | 2c35018 | 2017-12-20 16:27:37 +0000 | [diff] [blame] | 835 | /** Data set containing 2D tensor shapes relative to an image size. */ |
| 836 | class SmallImageShapes final : public ShapeDataset |
| 837 | { |
| 838 | public: |
| 839 | SmallImageShapes() |
| 840 | : ShapeDataset("Shape", |
| 841 | { |
| 842 | TensorShape{ 640U, 480U }, |
| 843 | TensorShape{ 800U, 600U }, |
| 844 | TensorShape{ 1200U, 800U } |
| 845 | }) |
| 846 | { |
| 847 | } |
| 848 | }; |
| 849 | |
| 850 | /** Data set containing 2D tensor shapes relative to an image size. */ |
| 851 | class LargeImageShapes final : public ShapeDataset |
| 852 | { |
| 853 | public: |
| 854 | LargeImageShapes() |
| 855 | : ShapeDataset("Shape", |
| 856 | { |
| 857 | TensorShape{ 1920U, 1080U }, |
| 858 | TensorShape{ 2560U, 1536U }, |
| 859 | TensorShape{ 3584U, 2048U } |
| 860 | }) |
| 861 | { |
| 862 | } |
| 863 | }; |
Giorgio Arena | 7302302 | 2018-09-04 14:55:55 +0100 | [diff] [blame] | 864 | |
| 865 | /** Data set containing small YOLO tensor shapes. */ |
| 866 | class SmallYOLOShapes final : public ShapeDataset |
| 867 | { |
| 868 | public: |
| 869 | SmallYOLOShapes() |
| 870 | : ShapeDataset("Shape", |
| 871 | { |
| 872 | // Batch size 1 |
| 873 | TensorShape{ 11U, 11U, 270U }, |
| 874 | TensorShape{ 27U, 13U, 90U }, |
Gian Marco Iodice | 8e1f3c0 | 2018-09-13 15:56:47 +0100 | [diff] [blame] | 875 | TensorShape{ 13U, 12U, 45U, 2U }, |
Giorgio Arena | 7302302 | 2018-09-04 14:55:55 +0100 | [diff] [blame] | 876 | }) |
| 877 | { |
| 878 | } |
| 879 | }; |
| 880 | |
| 881 | /** Data set containing large YOLO tensor shapes. */ |
| 882 | class LargeYOLOShapes final : public ShapeDataset |
| 883 | { |
| 884 | public: |
| 885 | LargeYOLOShapes() |
| 886 | : ShapeDataset("Shape", |
| 887 | { |
| 888 | TensorShape{ 24U, 23U, 270U }, |
| 889 | TensorShape{ 51U, 63U, 90U, 2U }, |
| 890 | TensorShape{ 76U, 91U, 45U, 3U } |
| 891 | }) |
| 892 | { |
| 893 | } |
| 894 | }; |
Gian Marco Iodice | 5ba5e09 | 2018-12-06 17:13:09 +0000 | [diff] [blame^] | 895 | |
| 896 | /** Data set containing small tensor shapes to be used with the GEMM reshaping kernel */ |
| 897 | class SmallGEMMReshape2DShapes final : public ShapeDataset |
| 898 | { |
| 899 | public: |
| 900 | SmallGEMMReshape2DShapes() |
| 901 | : ShapeDataset("Shape", |
| 902 | { |
| 903 | TensorShape{ 63U, 72U }, |
| 904 | }) |
| 905 | { |
| 906 | } |
| 907 | }; |
| 908 | |
| 909 | /** Data set containing small tensor shapes to be used with the GEMM reshaping kernel when the input has to be reinterpreted as 3D */ |
| 910 | class SmallGEMMReshape3DShapes final : public ShapeDataset |
| 911 | { |
| 912 | public: |
| 913 | SmallGEMMReshape3DShapes() |
| 914 | : ShapeDataset("Shape", |
| 915 | { |
| 916 | TensorShape{ 63U, 9U, 8U }, |
| 917 | }) |
| 918 | { |
| 919 | } |
| 920 | }; |
| 921 | |
| 922 | /** Data set containing large tensor shapes to be used with the GEMM reshaping kernel */ |
| 923 | class LargeGEMMReshape2DShapes final : public ShapeDataset |
| 924 | { |
| 925 | public: |
| 926 | LargeGEMMReshape2DShapes() |
| 927 | : ShapeDataset("Shape", |
| 928 | { |
| 929 | TensorShape{ 16U, 27U }, |
| 930 | TensorShape{ 533U, 171U }, |
| 931 | TensorShape{ 345U, 612U } |
| 932 | }) |
| 933 | { |
| 934 | } |
| 935 | }; |
| 936 | |
| 937 | /** Data set containing large tensor shapes to be used with the GEMM reshaping kernel when the input has to be reinterpreted as 3D */ |
| 938 | class LargeGEMMReshape3DShapes final : public ShapeDataset |
| 939 | { |
| 940 | public: |
| 941 | LargeGEMMReshape3DShapes() |
| 942 | : ShapeDataset("Shape", |
| 943 | { |
| 944 | TensorShape{ 16U, 3U, 9U }, |
| 945 | TensorShape{ 533U, 19U, 9U }, |
| 946 | TensorShape{ 345U, 34U, 18U } |
| 947 | }) |
| 948 | { |
| 949 | } |
| 950 | }; |
Moritz Pflanzer | f6ad98a | 2017-07-21 17:19:58 +0100 | [diff] [blame] | 951 | } // namespace datasets |
| 952 | } // namespace test |
| 953 | } // namespace arm_compute |
| 954 | #endif /* __ARM_COMPUTE_TEST_SHAPE_DATASETS_H__ */ |