diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-12-15 11:37:37 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:49:16 +0000 |
commit | 724079d6fce3bf6a05cd6c7b4884b132b27e9e90 (patch) | |
tree | 4677c5f845531b45895c82664168ba8ac996f25c /tests/benchmark/fixtures | |
parent | b34b9d4db3c6c75d1a167a4fc25d40214b351f80 (diff) | |
download | ComputeLibrary-724079d6fce3bf6a05cd6c7b4884b132b27e9e90.tar.gz |
COMPMID-959 Add benchmark namespace in benchmark tests
Change-Id: Ieef1c5380bff1c019af0203fb7e4734f48a2fb63
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113499
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures')
17 files changed, 51 insertions, 0 deletions
diff --git a/tests/benchmark/fixtures/ActivationLayerFixture.h b/tests/benchmark/fixtures/ActivationLayerFixture.h index cb8fa7f086..d46ef2827b 100644 --- a/tests/benchmark/fixtures/ActivationLayerFixture.h +++ b/tests/benchmark/fixtures/ActivationLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class ActivationLayerFixture : public framework::Fixture @@ -81,6 +83,7 @@ private: TensorType dst{}; Function act_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_ACTIVATIONLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/AlexNetFixture.h b/tests/benchmark/fixtures/AlexNetFixture.h index e15aa621d7..46ac61b49a 100644 --- a/tests/benchmark/fixtures/AlexNetFixture.h +++ b/tests/benchmark/fixtures/AlexNetFixture.h @@ -33,6 +33,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ template <typename ITensorType, typename TensorType, typename SubTensorType, @@ -88,6 +90,7 @@ private: SoftmaxLayerFunction> network{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_ALEXNETFIXTURE */ diff --git a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h index a031ec6d96..fbb7700710 100644 --- a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h +++ b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class BatchNormalizationLayerFixture : public framework::Fixture @@ -96,6 +98,7 @@ private: TensorType gamma{}; Function batch_norm_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_BATCHNORMALIZATIONLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/ConvolutionLayerFixture.h b/tests/benchmark/fixtures/ConvolutionLayerFixture.h index 7dc7de0dc1..9815040d42 100644 --- a/tests/benchmark/fixtures/ConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/ConvolutionLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class ConvolutionLayerFixture : public framework::Fixture @@ -90,6 +92,7 @@ private: TensorType dst{}; Function conv_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_CONVOLUTIONLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h b/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h index a156f4bc6f..9d29aee76a 100644 --- a/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class DepthwiseConvolutionLayerFixture : public framework::Fixture @@ -89,6 +91,7 @@ private: TensorType dst{}; Function depth_conv{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_DEPTHWISECONVOLUTIONFIXTURE */ diff --git a/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h b/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h index f78c3e4e4d..ef1a40704f 100644 --- a/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class DepthwiseSeparableConvolutionLayerFixture : public framework::Fixture @@ -103,6 +105,7 @@ private: TensorType dst{}; Function depth_sep_conv_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_DEPTHWISESEPARABLECONVOLUTIONLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/FloorFixture.h b/tests/benchmark/fixtures/FloorFixture.h index df3a7da29d..8c80fa386f 100644 --- a/tests/benchmark/fixtures/FloorFixture.h +++ b/tests/benchmark/fixtures/FloorFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class FloorFixture : public framework::Fixture @@ -76,6 +78,7 @@ private: TensorType dst{}; Function floor_func{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_FLOORFIXTURE */ diff --git a/tests/benchmark/fixtures/FullyConnectedLayerFixture.h b/tests/benchmark/fixtures/FullyConnectedLayerFixture.h index b84fecea66..e7a5260f44 100644 --- a/tests/benchmark/fixtures/FullyConnectedLayerFixture.h +++ b/tests/benchmark/fixtures/FullyConnectedLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class FullyConnectedLayerFixture : public framework::Fixture @@ -89,6 +91,7 @@ private: TensorType dst{}; Function fc_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_FULLYCONNECTEDLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/GEMMFixture.h b/tests/benchmark/fixtures/GEMMFixture.h index 3a308d9ada..f706f3eda6 100644 --- a/tests/benchmark/fixtures/GEMMFixture.h +++ b/tests/benchmark/fixtures/GEMMFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class GEMMFixture : public framework::Fixture @@ -86,6 +88,7 @@ private: TensorType dst{}; Function gemm{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_GEMMFIXTURE */ diff --git a/tests/benchmark/fixtures/GEMMLowpFixture.h b/tests/benchmark/fixtures/GEMMLowpFixture.h index f9338082d2..b5381b0934 100644 --- a/tests/benchmark/fixtures/GEMMLowpFixture.h +++ b/tests/benchmark/fixtures/GEMMLowpFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class GEMMLowpMatrixMultiplyCoreFixture : public framework::Fixture @@ -88,6 +90,7 @@ private: Function gemmlowp{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_GEMMLOWPFIXTURE */ diff --git a/tests/benchmark/fixtures/LeNet5Fixture.h b/tests/benchmark/fixtures/LeNet5Fixture.h index 5108042820..03e426d4eb 100644 --- a/tests/benchmark/fixtures/LeNet5Fixture.h +++ b/tests/benchmark/fixtures/LeNet5Fixture.h @@ -33,6 +33,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ template <typename TensorType, typename Accessor, typename ActivationLayerFunction, @@ -76,6 +78,7 @@ private: SoftmaxLayerFunction> network{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_LENET5FIXTURE */ diff --git a/tests/benchmark/fixtures/MobileNetFixture.h b/tests/benchmark/fixtures/MobileNetFixture.h index d073bb43e5..3236e82537 100644 --- a/tests/benchmark/fixtures/MobileNetFixture.h +++ b/tests/benchmark/fixtures/MobileNetFixture.h @@ -33,6 +33,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ template <typename TensorType, typename Accessor, typename ActivationLayerFunction, @@ -78,6 +80,7 @@ private: PoolingLayerFunction> network{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_MOBILENETFIXTURE */ diff --git a/tests/benchmark/fixtures/MobileNetV1Fixture.h b/tests/benchmark/fixtures/MobileNetV1Fixture.h index 9b5020af0f..590aecf207 100644 --- a/tests/benchmark/fixtures/MobileNetV1Fixture.h +++ b/tests/benchmark/fixtures/MobileNetV1Fixture.h @@ -33,6 +33,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ template <typename TensorType, typename Accessor, typename ActivationLayerFunction, @@ -83,6 +85,7 @@ private: SoftmaxLayerFunction> network{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_MOBILENETV1_FIXTURE */ diff --git a/tests/benchmark/fixtures/NormalizationLayerFixture.h b/tests/benchmark/fixtures/NormalizationLayerFixture.h index 00ab23ff5a..7742dcacfd 100644 --- a/tests/benchmark/fixtures/NormalizationLayerFixture.h +++ b/tests/benchmark/fixtures/NormalizationLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class NormalizationLayerFixture : public framework::Fixture @@ -80,6 +82,7 @@ private: TensorType dst{}; Function norm_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_NORMALIZATIONLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/PoolingLayerFixture.h b/tests/benchmark/fixtures/PoolingLayerFixture.h index 88edea30fa..a7deb75370 100644 --- a/tests/benchmark/fixtures/PoolingLayerFixture.h +++ b/tests/benchmark/fixtures/PoolingLayerFixture.h @@ -34,6 +34,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor> class PoolingLayerFixture : public framework::Fixture @@ -81,6 +83,7 @@ private: TensorType dst{}; Function pool_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_POOLINGLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h index bdd416e049..4adfa446d6 100644 --- a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h +++ b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h @@ -36,6 +36,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON and CL */ template <typename TensorType, typename Function, typename Accessor, typename Array_T, typename ArrayAccessor> class ROIPoolingLayerFixture : public framework::Fixture @@ -93,6 +95,7 @@ private: std::unique_ptr<Array_T> rois_array{}; Function roi_pool{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_ROIPOOLINGLAYERFIXTURE */ diff --git a/tests/benchmark/fixtures/SoftmaxLayerFixture.h b/tests/benchmark/fixtures/SoftmaxLayerFixture.h index 95790ff452..4f6dde8706 100644 --- a/tests/benchmark/fixtures/SoftmaxLayerFixture.h +++ b/tests/benchmark/fixtures/SoftmaxLayerFixture.h @@ -35,6 +35,8 @@ namespace arm_compute { namespace test { +namespace benchmark +{ /** Fixture that can be used for NEON, CL and OpenGL ES */ template <typename TensorType, typename Function, typename Accessor> class SoftmaxLayerFixture : public framework::Fixture @@ -82,6 +84,7 @@ private: TensorType dst{}; Function smx_layer{}; }; +} // namespace benchmark } // namespace test } // namespace arm_compute #endif /* ARM_COMPUTE_TEST_SOFTMAXLAYERFIXTURE */ |