From e82cd72a15aae094d39e4571e19f1b0942ef7d56 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Wed, 6 Dec 2017 12:13:04 +0000 Subject: COMPMID-556: Add SoftmaxLayer benchmarks Change-Id: I1228b1c2bb803666330a4893a374afbd12a52ffb Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/112107 Tested-by: BSG Visual Compute Jenkins server to access repositories on http://mpd-gerrit.cambridge.arm.com Reviewed-by: Anthony Barbier --- tests/benchmark/fixtures/SoftmaxLayerFixture.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests/benchmark/fixtures/SoftmaxLayerFixture.h') diff --git a/tests/benchmark/fixtures/SoftmaxLayerFixture.h b/tests/benchmark/fixtures/SoftmaxLayerFixture.h index 6e0472ce3a..50b272621e 100644 --- a/tests/benchmark/fixtures/SoftmaxLayerFixture.h +++ b/tests/benchmark/fixtures/SoftmaxLayerFixture.h @@ -50,12 +50,11 @@ public: template void setup(TensorShape shape, DataType data_type) { - // Set batched in source and destination shapes - const int fixed_point_position = is_data_type_fixed_point(data_type) ? 3 : 0; + const unsigned int fixed_point_position = 4; // Create tensors - src = create_tensor(shape, data_type, 1, fixed_point_position); - dst = create_tensor(shape, data_type, 1, fixed_point_position); + src = create_tensor(shape, data_type, 1, fixed_point_position, QuantizationInfo(1.f / 256, 10)); + dst = create_tensor(shape, data_type, 1, fixed_point_position, QuantizationInfo(1.f / 256, 0)); ARM_COMPUTE_EXPECT(src.info()->is_resizable(), framework::LogLevel::ERRORS); ARM_COMPUTE_EXPECT(dst.info()->is_resizable(), framework::LogLevel::ERRORS); -- cgit v1.2.1