blob: 6c201c5b65815159bd52a067891971c1133a988b [file] [log] [blame]
Gian Marcofa4cacd2017-10-18 17:05:02 +01001/*
Michele Di Giorgiod9eaf612020-07-08 11:12:57 +01002 * Copyright (c) 2017-2018 Arm Limited.
Gian Marcofa4cacd2017-10-18 17:05:02 +01003 *
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_LARGE_GEMMLOWP_DATASET
25#define ARM_COMPUTE_TEST_LARGE_GEMMLOWP_DATASET
26
27#include "tests/datasets/GEMMLowpDataset.h"
28
29#include "utils/TypePrinter.h"
30
31#include "arm_compute/core/TensorShape.h"
32#include "arm_compute/core/Types.h"
33
34namespace arm_compute
35{
36namespace test
37{
38namespace datasets
39{
40class LargeGEMMLowpDataset final : public GEMMLowpDataset
41{
42public:
43 LargeGEMMLowpDataset()
44 {
Gian Marcoc7f9b892017-11-30 14:31:13 +000045 add_config(TensorShape(923U, 1U), TensorShape(871U, 923U), TensorShape(871U, 1U), 0, 0);
Gian Marcoe75a02b2017-11-08 12:24:09 +000046 add_config(TensorShape(923U, 429U), TensorShape(871U, 923U), TensorShape(871U, 429U), 0, 0);
Gian Marco05288a22017-11-21 10:57:50 +000047 add_config(TensorShape(873U, 7U), TensorShape(784U, 873U), TensorShape(784U, 7U), -1, 3);
Gian Marcoe75a02b2017-11-08 12:24:09 +000048 add_config(TensorShape(873U, 513U), TensorShape(784U, 873U), TensorShape(784U, 513U), 0, 4);
49 add_config(TensorShape(697U, 872U), TensorShape(563U, 697U), TensorShape(563U, 872U), -2, 0);
50 add_config(TensorShape(1021U, 973U), TensorShape(783U, 1021U), TensorShape(783U, 973U), 5, 13);
51 add_config(TensorShape(681U, 1023U), TensorShape(213U, 681U), TensorShape(213U, 1023U), -3, -2);
52 add_config(TensorShape(941U, 1011U), TensorShape(623U, 941U), TensorShape(623U, 1011U), -9, 1);
Gian Marcofa4cacd2017-10-18 17:05:02 +010053 }
54};
Georgios Pinitasebf6b8a2018-09-24 16:31:08 +010055class LargeGEMMLowpOutput3DDataset final : public GEMMLowpDataset
56{
57public:
58 LargeGEMMLowpOutput3DDataset()
59 {
60 add_config(TensorShape(923U, 429U), TensorShape(871U, 923U), TensorShape(871U, 143U, 3U), 0, 0);
61 add_config(TensorShape(681U, 1025U), TensorShape(213U, 681U), TensorShape(213U, 205U, 5U), -3, 2);
62 add_config(TensorShape(364U, 3025U), TensorShape(96U, 364U), TensorShape(96U, 605U, 5U), 2, 3);
63 }
64};
65class LargeGEMMLowpInputOutput3DDataset final : public GEMMLowpDataset
66{
67public:
68 LargeGEMMLowpInputOutput3DDataset()
69 {
70 add_config(TensorShape(923U, 143U, 3U), TensorShape(871U, 923U), TensorShape(871U, 143U, 3U), 0, 0);
71 add_config(TensorShape(681U, 205U, 5U), TensorShape(213U, 681U), TensorShape(213U, 205U, 5U), -2, 5);
72 add_config(TensorShape(364U, 605U, 5U), TensorShape(96U, 364U), TensorShape(96U, 605U, 5U), 2, 4);
73 }
74};
Gian Marcofa4cacd2017-10-18 17:05:02 +010075} // namespace datasets
76} // namespace test
77} // namespace arm_compute
78#endif /* ARM_COMPUTE_TEST_LARGE_GEMMLOWP_DATASET */