diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-12-06 12:13:04 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:17 +0000 |
commit | e82cd72a15aae094d39e4571e19f1b0942ef7d56 (patch) | |
tree | 4b5cacc2b82d7c64e14069b0d3709e2251ebce54 /tests/benchmark/fixtures/SoftmaxLayerFixture.h | |
parent | 4af62a0202bbc103a95a1c2d04c2425418935a0f (diff) | |
download | ComputeLibrary-e82cd72a15aae094d39e4571e19f1b0942ef7d56.tar.gz |
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 <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures/SoftmaxLayerFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/SoftmaxLayerFixture.h | 7 |
1 files changed, 3 insertions, 4 deletions
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 <typename...> 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<TensorType>(shape, data_type, 1, fixed_point_position); - dst = create_tensor<TensorType>(shape, data_type, 1, fixed_point_position); + src = create_tensor<TensorType>(shape, data_type, 1, fixed_point_position, QuantizationInfo(1.f / 256, 10)); + dst = create_tensor<TensorType>(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); |