Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 1 | /* |
Georgios Pinitas | 51a6730 | 2018-01-17 12:55:26 +0000 | [diff] [blame] | 2 | * Copyright (c) 2017-2018 ARM Limited. |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +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 | #include "arm_compute/core/TensorShape.h" |
| 25 | #include "arm_compute/core/Types.h" |
| 26 | #include "arm_compute/runtime/CL/CLTensor.h" |
| 27 | #include "arm_compute/runtime/CL/CLTensorAllocator.h" |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 28 | #include "arm_compute/runtime/CL/functions/CLGEMMConvolutionLayer.h" |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 29 | #include "arm_compute/runtime/CL/functions/CLWinogradConvolutionLayer.h" |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 30 | #include "tests/CL/CLAccessor.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 31 | #include "tests/benchmark/fixtures/ConvolutionLayerFixture.h" |
Georgios Pinitas | 9fb1159 | 2018-04-26 20:34:58 +0100 | [diff] [blame] | 32 | #include "tests/benchmark/fixtures/WinogradConvolutionLayerFixture.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 33 | #include "tests/datasets/system_tests/alexnet/AlexNetConvolutionLayerDataset.h" |
| 34 | #include "tests/datasets/system_tests/googlenet/inceptionv1/GoogLeNetInceptionV1ConvolutionLayerDataset.h" |
| 35 | #include "tests/datasets/system_tests/googlenet/inceptionv4/GoogLeNetInceptionV4ConvolutionLayerDataset.h" |
| 36 | #include "tests/datasets/system_tests/lenet5/LeNet5ConvolutionLayerDataset.h" |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 37 | #include "tests/datasets/system_tests/mobilenet/MobileNetConvolutionLayerDataset.h" |
Moritz Pflanzer | a09de0c | 2017-09-01 20:41:12 +0100 | [diff] [blame] | 38 | #include "tests/datasets/system_tests/squeezenet/SqueezeNetConvolutionLayerDataset.h" |
| 39 | #include "tests/datasets/system_tests/vgg/vgg16/VGG16ConvolutionLayerDataset.h" |
| 40 | #include "tests/datasets/system_tests/yolo/v2/YOLOV2ConvolutionLayerDataset.h" |
| 41 | #include "tests/framework/Macros.h" |
| 42 | #include "tests/framework/datasets/Datasets.h" |
Anthony Barbier | 2a07e18 | 2017-08-04 18:20:27 +0100 | [diff] [blame] | 43 | #include "utils/TypePrinter.h" |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 44 | |
| 45 | namespace arm_compute |
| 46 | { |
| 47 | namespace test |
| 48 | { |
Michalis Spyrou | 724079d | 2017-12-15 11:37:37 +0000 | [diff] [blame] | 49 | namespace benchmark |
| 50 | { |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 51 | namespace |
| 52 | { |
Gian Marco Iodice | 1d2f267 | 2018-07-10 13:15:34 +0100 | [diff] [blame] | 53 | const auto data_types = framework::dataset::make("DataType", { DataType::F16, DataType::F32, DataType::QASYMM8 }); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 54 | } // namespace |
| 55 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 56 | using CLGEMMConvolutionLayerFixture = ConvolutionLayerFixture<CLTensor, CLGEMMConvolutionLayer, CLAccessor>; |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 57 | |
| 58 | TEST_SUITE(CL) |
| 59 | |
Georgios Pinitas | 9fb1159 | 2018-04-26 20:34:58 +0100 | [diff] [blame] | 60 | using CLWinogradLayerFixture = WinogradConvolutionLayerFixture<CLTensor, CLWinogradConvolutionLayer, CLAccessor>; |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 61 | |
| 62 | REGISTER_FIXTURE_DATA_TEST_CASE(AlexNetWinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::ALL, |
| 63 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::AlexNetWinogradLayerDataset(), |
| 64 | framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 65 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 66 | framework::dataset::make("Batches", 1))); |
| 67 | |
| 68 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1WinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::ALL, |
| 69 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1WinogradLayerDataset(), |
| 70 | framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 71 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 72 | framework::dataset::make("Batches", 1))); |
| 73 | |
| 74 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4WinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::ALL, |
| 75 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV4WinogradLayerDataset(), |
| 76 | framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 77 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 78 | framework::dataset::make("Batches", 1))); |
| 79 | |
| 80 | REGISTER_FIXTURE_DATA_TEST_CASE(SqueezeNetWinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::ALL, |
| 81 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::SqueezeNetWinogradLayerDataset(), |
| 82 | framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 83 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 84 | framework::dataset::make("Batches", 1))); |
| 85 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 86 | REGISTER_FIXTURE_DATA_TEST_CASE(AlexNetConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 87 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::AlexNetConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 88 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 89 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 90 | framework::dataset::make("Batches", 1))); |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 91 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 92 | REGISTER_FIXTURE_DATA_TEST_CASE(LeNet5ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 93 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::LeNet5ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 94 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 95 | framework::dataset::make("Batches", 1))); |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 96 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 97 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 98 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 99 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 100 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 101 | framework::dataset::make("Batches", 1))); |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 102 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 103 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 104 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV4ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 105 | ActivationLayerInfo())), |
SiCong Li | f583fb7 | 2017-08-15 15:09:18 +0100 | [diff] [blame] | 106 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 107 | framework::dataset::make("Batches", 1))); |
SiCong Li | f583fb7 | 2017-08-15 15:09:18 +0100 | [diff] [blame] | 108 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 109 | REGISTER_FIXTURE_DATA_TEST_CASE(SqueezeNetConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 110 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::SqueezeNetConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 111 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 112 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 113 | framework::dataset::make("Batches", 1))); |
SiCong Li | 0aea890 | 2017-07-21 18:24:36 +0100 | [diff] [blame] | 114 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 115 | REGISTER_FIXTURE_DATA_TEST_CASE(MobileNetConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::ALL, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 116 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::MobileNetConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 117 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 118 | data_types), |
| 119 | framework::dataset::make("Batches", 1))); |
| 120 | |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 121 | TEST_SUITE(NIGHTLY) |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 122 | REGISTER_FIXTURE_DATA_TEST_CASE(AlexNetConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 123 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::AlexNetConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 124 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 125 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 126 | framework::dataset::make("Batches", { 4, 8 }))); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 127 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 128 | REGISTER_FIXTURE_DATA_TEST_CASE(LeNet5ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 129 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::LeNet5ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 130 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 131 | framework::dataset::make("Batches", { 4, 8 }))); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 132 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 133 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 134 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 135 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 136 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 137 | framework::dataset::make("Batches", { 4, 8 }))); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 138 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 139 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 140 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV4ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 141 | ActivationLayerInfo())), |
SiCong Li | f583fb7 | 2017-08-15 15:09:18 +0100 | [diff] [blame] | 142 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 143 | framework::dataset::make("Batches", { 4, 8 }))); |
SiCong Li | f583fb7 | 2017-08-15 15:09:18 +0100 | [diff] [blame] | 144 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 145 | REGISTER_FIXTURE_DATA_TEST_CASE(SqueezeNetConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 146 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::SqueezeNetConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 147 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 148 | data_types), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 149 | framework::dataset::make("Batches", { 4, 8 }))); |
| 150 | |
Moritz Pflanzer | 351c20a | 2017-09-11 14:28:56 +0100 | [diff] [blame] | 151 | // 8 batches use about 1.8GB of memory which is too much for most devices! |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 152 | REGISTER_FIXTURE_DATA_TEST_CASE(VGG16ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 153 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::VGG16ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", |
| 154 | ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
SiCong Li | cc65bbe | 2017-08-18 11:58:21 +0100 | [diff] [blame] | 155 | data_types), |
Moritz Pflanzer | 351c20a | 2017-09-11 14:28:56 +0100 | [diff] [blame] | 156 | framework::dataset::make("Batches", { 1, 4 }))); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 157 | |
Gian Marco Iodice | 2bc7441 | 2018-03-01 16:32:10 +0000 | [diff] [blame] | 158 | REGISTER_FIXTURE_DATA_TEST_CASE(YOLOV2ConvolutionLayer, CLGEMMConvolutionLayerFixture, framework::DatasetMode::NIGHTLY, |
Isabella Gottardi | 3f217ec | 2018-02-12 14:59:19 +0000 | [diff] [blame] | 159 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::YOLOV2ConvolutionLayerDataset(), framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 160 | data_types), |
| 161 | framework::dataset::make("Batches", { 1, 4, 8 }))); |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 162 | |
| 163 | REGISTER_FIXTURE_DATA_TEST_CASE(AlexNetWinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::NIGHTLY, |
| 164 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::AlexNetWinogradLayerDataset(), |
| 165 | framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 166 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 167 | framework::dataset::make("Batches", { 4, 8 }))); |
| 168 | |
| 169 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1WinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::NIGHTLY, |
| 170 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1WinogradLayerDataset(), |
| 171 | framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 172 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 173 | framework::dataset::make("Batches", { 4, 8 }))); |
| 174 | |
| 175 | REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV4WinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::NIGHTLY, |
| 176 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV4WinogradLayerDataset(), |
| 177 | framework::dataset::make("ActivationInfo", ActivationLayerInfo())), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 178 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 179 | framework::dataset::make("Batches", { 4, 8 }))); |
| 180 | |
| 181 | REGISTER_FIXTURE_DATA_TEST_CASE(SqueezeNetWinogradLayer, CLWinogradLayerFixture, framework::DatasetMode::NIGHTLY, |
| 182 | framework::dataset::combine(framework::dataset::combine(framework::dataset::combine(datasets::SqueezeNetWinogradLayerDataset(), |
| 183 | framework::dataset::make("ActivationInfo", ActivationLayerInfo(ActivationLayerInfo::ActivationFunction::RELU))), |
Vidhya Sudhan Loganathan | 71ecf39 | 2018-08-31 16:10:16 +0100 | [diff] [blame] | 184 | framework::dataset::make("DataType", { DataType::F16, DataType::F32 })), |
Vidhya Sudhan Loganathan | b34690b | 2018-04-19 14:22:16 +0100 | [diff] [blame] | 185 | framework::dataset::make("Batches", { 4, 8 }))); |
SiCong Li | 1e5c157 | 2017-07-27 17:58:52 +0100 | [diff] [blame] | 186 | TEST_SUITE_END() |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 187 | TEST_SUITE_END() |
Michalis Spyrou | 724079d | 2017-12-15 11:37:37 +0000 | [diff] [blame] | 188 | } // namespace benchmark |
Moritz Pflanzer | ee493ae | 2017-07-05 10:52:21 +0100 | [diff] [blame] | 189 | } // namespace test |
| 190 | } // namespace arm_compute |