diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2018-01-17 14:10:00 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:43:42 +0000 |
commit | 9c42de9e4c7061ea0431f2ef2ecf8984e0d9c89b (patch) | |
tree | 1c694737d9dc082e5ecd943f9dbb3f11ef3b1d4b /tests/benchmark/CL/ActivationLayer.cpp | |
parent | a0d1183a15c6788676a12160f56e4c576ee1a84b (diff) | |
download | ComputeLibrary-9c42de9e4c7061ea0431f2ef2ecf8984e0d9c89b.tar.gz |
COMPMID-753 Add benchmarks for ActivationLayers used in MobileNet
Change-Id: Iafc16409430274d5126f0fb054b0de5de6b6ca8f
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/116635
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'tests/benchmark/CL/ActivationLayer.cpp')
-rw-r--r-- | tests/benchmark/CL/ActivationLayer.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/benchmark/CL/ActivationLayer.cpp b/tests/benchmark/CL/ActivationLayer.cpp index 6412bd9680..2e4641bfa5 100644 --- a/tests/benchmark/CL/ActivationLayer.cpp +++ b/tests/benchmark/CL/ActivationLayer.cpp @@ -32,6 +32,7 @@ #include "tests/datasets/system_tests/googlenet/inceptionv1/GoogLeNetInceptionV1ActivationLayerDataset.h" #include "tests/datasets/system_tests/googlenet/inceptionv4/GoogLeNetInceptionV4ActivationLayerDataset.h" #include "tests/datasets/system_tests/lenet5/LeNet5ActivationLayerDataset.h" +#include "tests/datasets/system_tests/mobilenet/MobileNetActivationLayerDataset.h" #include "tests/datasets/system_tests/squeezenet/SqueezeNetActivationLayerDataset.h" #include "tests/datasets/system_tests/vgg/vgg16/VGG16ActivationLayerDataset.h" #include "tests/datasets/system_tests/yolo/v2/YOLOV2ActivationLayerDataset.h" @@ -45,7 +46,8 @@ namespace test { namespace { -const auto data_types = framework::dataset::make("DataType", { DataType::F16, DataType::F32 }); +const auto data_types = framework::dataset::make("DataType", { DataType::F16, DataType::F32, DataType::QS8, DataType::QS16 }); +const auto data_types_mobilenet = framework::dataset::make("DataType", { DataType::F16, DataType::F32, DataType::QS8, DataType::QS16, DataType::QASYMM8 }); } // namespace using CLActivationLayerFixture = ActivationLayerFixture<CLTensor, CLActivationLayer, CLAccessor>; @@ -62,6 +64,11 @@ REGISTER_FIXTURE_DATA_TEST_CASE(LeNet5ActivationLayer, CLActivationLayerFixture, data_types), framework::dataset::make("Batches", 1))); +REGISTER_FIXTURE_DATA_TEST_CASE(MobileNetActivationLayer, CLActivationLayerFixture, framework::DatasetMode::ALL, + framework::dataset::combine(framework::dataset::combine(datasets::MobileNetActivationLayerDataset(), + data_types_mobilenet), + framework::dataset::make("Batches", 1))); + REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1ActivationLayer, CLActivationLayerFixture, framework::DatasetMode::ALL, framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1ActivationLayerDataset(), data_types), @@ -98,6 +105,11 @@ REGISTER_FIXTURE_DATA_TEST_CASE(LeNet5ActivationLayer, CLActivationLayerFixture, data_types), framework::dataset::make("Batches", { 4, 8 }))); +REGISTER_FIXTURE_DATA_TEST_CASE(MobileNetActivationLayer, CLActivationLayerFixture, framework::DatasetMode::NIGHTLY, + framework::dataset::combine(framework::dataset::combine(datasets::MobileNetActivationLayerDataset(), + data_types_mobilenet), + framework::dataset::make("Batches", { 4, 8 }))); + REGISTER_FIXTURE_DATA_TEST_CASE(GoogLeNetInceptionV1ActivationLayer, CLActivationLayerFixture, framework::DatasetMode::NIGHTLY, framework::dataset::combine(framework::dataset::combine(datasets::GoogLeNetInceptionV1ActivationLayerDataset(), data_types), |