From 72856abfd5c0cd24542bd2ec4f26785d99683c7b Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Thu, 11 Jan 2018 10:45:24 +0000 Subject: COMPMID-786: Remove all the fill() calls in benchmarks Filling buffers with random data takes a significant amount of time and in most cases doesn't affect the performance We will therefore only keep fill() in the functions for which it matters Change-Id: Ica34fe09941f27d6f0417f33176847febf722bc3 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/115892 Tested-by: Jenkins Reviewed-by: Gian Marco Iodice --- tests/benchmark/fixtures/ActivationLayerFixture.h | 5 +---- tests/benchmark/fixtures/AlexNetFixture.h | 3 +-- tests/benchmark/fixtures/BatchNormalizationLayerFixture.h | 9 +-------- tests/benchmark/fixtures/ConvolutionLayerFixture.h | 7 +------ tests/benchmark/fixtures/DepthConcatenateLayerFixture.h | 8 +------- tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h | 6 +----- .../fixtures/DepthwiseSeparableConvolutionLayerFixture.h | 9 +-------- tests/benchmark/fixtures/DequantizationLayerFixture.h | 5 +---- tests/benchmark/fixtures/FlattenLayerFixture.h | 5 +---- tests/benchmark/fixtures/FloorFixture.h | 5 +---- tests/benchmark/fixtures/FullyConnectedLayerFixture.h | 7 +------ tests/benchmark/fixtures/GEMMFixture.h | 6 +----- tests/benchmark/fixtures/GEMMInterleave4x4Fixture.h | 5 +---- tests/benchmark/fixtures/GEMMLowpFixture.h | 6 +----- tests/benchmark/fixtures/L2NormalizeLayerFixture.h | 5 +---- tests/benchmark/fixtures/LeNet5Fixture.h | 3 +-- tests/benchmark/fixtures/MagnitudeFixture.h | 6 +----- tests/benchmark/fixtures/MobileNetFixture.h | 3 +-- tests/benchmark/fixtures/MobileNetV1Fixture.h | 3 +-- tests/benchmark/fixtures/NormalizationLayerFixture.h | 5 +---- tests/benchmark/fixtures/NormalizePlanarYUVLayerFixture.h | 7 +------ tests/benchmark/fixtures/PoolingLayerFixture.h | 5 +---- tests/benchmark/fixtures/QuantizationLayerFixture.h | 5 +---- tests/benchmark/fixtures/ROIPoolingLayerFixture.h | 5 +---- tests/benchmark/fixtures/ReshapeLayerFixture.h | 5 +---- tests/benchmark/fixtures/ScaleFixture.h | 5 +---- tests/benchmark/fixtures/ScaleLayerFixture.h | 4 +--- tests/benchmark/fixtures/SoftmaxLayerFixture.h | 5 +---- tests/benchmark/fixtures/TransposeFixture.h | 5 +---- 29 files changed, 29 insertions(+), 128 deletions(-) diff --git a/tests/benchmark/fixtures/ActivationLayerFixture.h b/tests/benchmark/fixtures/ActivationLayerFixture.h index 11fabf8765..8558527ad1 100644 --- a/tests/benchmark/fixtures/ActivationLayerFixture.h +++ b/tests/benchmark/fixtures/ActivationLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -56,9 +56,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/AlexNetFixture.h b/tests/benchmark/fixtures/AlexNetFixture.h index a543ba2af2..b943f72364 100644 --- a/tests/benchmark/fixtures/AlexNetFixture.h +++ b/tests/benchmark/fixtures/AlexNetFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -57,7 +57,6 @@ public: network.init(data_type, fixed_point_position, batches, weights_reshaped); network.build(); network.allocate(); - network.fill_random(); } void run() diff --git a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h index 5f32e77e55..38a3263203 100644 --- a/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h +++ b/tests/benchmark/fixtures/BatchNormalizationLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -64,13 +64,6 @@ public: variance.allocator()->allocate(); beta.allocator()->allocate(); gamma.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(mean), 1); - library->fill_tensor_uniform(Accessor(variance), 2); - library->fill_tensor_uniform(Accessor(beta), 3); - library->fill_tensor_uniform(Accessor(gamma), 4); } void run() diff --git a/tests/benchmark/fixtures/ConvolutionLayerFixture.h b/tests/benchmark/fixtures/ConvolutionLayerFixture.h index 403160782d..0d2c3fd955 100644 --- a/tests/benchmark/fixtures/ConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/ConvolutionLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -61,11 +61,6 @@ public: weights.allocator()->allocate(); biases.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(weights), 1); - library->fill_tensor_uniform(Accessor(biases), 2); } void run() diff --git a/tests/benchmark/fixtures/DepthConcatenateLayerFixture.h b/tests/benchmark/fixtures/DepthConcatenateLayerFixture.h index 523a41b8be..bd4b404fc7 100644 --- a/tests/benchmark/fixtures/DepthConcatenateLayerFixture.h +++ b/tests/benchmark/fixtures/DepthConcatenateLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -110,12 +110,6 @@ public: } _dst.allocator()->allocate(); - - int i = 0; - for(auto &src : _srcs) - { - library->fill_tensor_uniform(AccessorType(src), i++); - } } void run() diff --git a/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h b/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h index 093655dfdc..8283b4d514 100644 --- a/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/DepthwiseConvolutionLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -61,10 +61,6 @@ public: weights.allocator()->allocate(); biases.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(weights), 1); } void run() diff --git a/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h b/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h index c841996c6c..f78c3e4e4d 100644 --- a/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h +++ b/tests/benchmark/fixtures/DepthwiseSeparableConvolutionLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -69,13 +69,6 @@ public: pointwise_weights.allocator()->allocate(); pointwise_biases.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(depthwise_weights), 1); - library->fill_tensor_uniform(Accessor(depthwise_biases), 2); - library->fill_tensor_uniform(Accessor(pointwise_weights), 3); - library->fill_tensor_uniform(Accessor(pointwise_biases), 4); } void run() diff --git a/tests/benchmark/fixtures/DequantizationLayerFixture.h b/tests/benchmark/fixtures/DequantizationLayerFixture.h index 4251a96881..5ea8b2d437 100644 --- a/tests/benchmark/fixtures/DequantizationLayerFixture.h +++ b/tests/benchmark/fixtures/DequantizationLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -63,9 +63,6 @@ public: src.allocator()->allocate(); dst.allocator()->allocate(); min_max.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/FlattenLayerFixture.h b/tests/benchmark/fixtures/FlattenLayerFixture.h index f6e44a2101..749fa0d7d6 100644 --- a/tests/benchmark/fixtures/FlattenLayerFixture.h +++ b/tests/benchmark/fixtures/FlattenLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -58,9 +58,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/FloorFixture.h b/tests/benchmark/fixtures/FloorFixture.h index b6bb89642d..df3a7da29d 100644 --- a/tests/benchmark/fixtures/FloorFixture.h +++ b/tests/benchmark/fixtures/FloorFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -52,9 +52,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/FullyConnectedLayerFixture.h b/tests/benchmark/fixtures/FullyConnectedLayerFixture.h index 08c2ef9104..b84fecea66 100644 --- a/tests/benchmark/fixtures/FullyConnectedLayerFixture.h +++ b/tests/benchmark/fixtures/FullyConnectedLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -61,11 +61,6 @@ public: weights.allocator()->allocate(); biases.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(weights), 1); - library->fill_tensor_uniform(Accessor(biases), 2); } void run() diff --git a/tests/benchmark/fixtures/GEMMFixture.h b/tests/benchmark/fixtures/GEMMFixture.h index d1eded074c..e958d4fdde 100644 --- a/tests/benchmark/fixtures/GEMMFixture.h +++ b/tests/benchmark/fixtures/GEMMFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -58,10 +58,6 @@ public: b.allocator()->allocate(); c.allocator()->allocate(); dst.allocator()->allocate(); - - library->fill_tensor_uniform(Accessor(a), 0); - library->fill_tensor_uniform(Accessor(b), 1); - library->fill_tensor_uniform(Accessor(c), 2); } void run() diff --git a/tests/benchmark/fixtures/GEMMInterleave4x4Fixture.h b/tests/benchmark/fixtures/GEMMInterleave4x4Fixture.h index 293ceff5d1..793c540482 100644 --- a/tests/benchmark/fixtures/GEMMInterleave4x4Fixture.h +++ b/tests/benchmark/fixtures/GEMMInterleave4x4Fixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -59,9 +59,6 @@ public: // Allocate tensors a.allocator()->allocate(); b.allocator()->allocate(); - - library->fill_tensor_uniform(Accessor(a), 0); - library->fill_tensor_uniform(Accessor(b), 1); } void run() diff --git a/tests/benchmark/fixtures/GEMMLowpFixture.h b/tests/benchmark/fixtures/GEMMLowpFixture.h index 1b64591191..f9338082d2 100644 --- a/tests/benchmark/fixtures/GEMMLowpFixture.h +++ b/tests/benchmark/fixtures/GEMMLowpFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -62,10 +62,6 @@ public: a.allocator()->allocate(); b.allocator()->allocate(); c.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(a), 0); - library->fill_tensor_uniform(Accessor(b), 1); } void run() { diff --git a/tests/benchmark/fixtures/L2NormalizeLayerFixture.h b/tests/benchmark/fixtures/L2NormalizeLayerFixture.h index ae5b1a1cd3..e68c5a76a4 100644 --- a/tests/benchmark/fixtures/L2NormalizeLayerFixture.h +++ b/tests/benchmark/fixtures/L2NormalizeLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -54,9 +54,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/LeNet5Fixture.h b/tests/benchmark/fixtures/LeNet5Fixture.h index 191daa2aff..5108042820 100644 --- a/tests/benchmark/fixtures/LeNet5Fixture.h +++ b/tests/benchmark/fixtures/LeNet5Fixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -49,7 +49,6 @@ public: network.init(batches); network.build(); network.allocate(); - network.fill_random(); } void run() diff --git a/tests/benchmark/fixtures/MagnitudeFixture.h b/tests/benchmark/fixtures/MagnitudeFixture.h index d5fbb2b7f3..f75540c66f 100644 --- a/tests/benchmark/fixtures/MagnitudeFixture.h +++ b/tests/benchmark/fixtures/MagnitudeFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -55,10 +55,6 @@ public: src1.allocator()->allocate(); src2.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src1), 0); - library->fill_tensor_uniform(Accessor(src2), 1); } void run() diff --git a/tests/benchmark/fixtures/MobileNetFixture.h b/tests/benchmark/fixtures/MobileNetFixture.h index 165b269b59..d073bb43e5 100644 --- a/tests/benchmark/fixtures/MobileNetFixture.h +++ b/tests/benchmark/fixtures/MobileNetFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -50,7 +50,6 @@ public: network.init(batches); network.build(); network.allocate(); - network.fill_random(); } void run() diff --git a/tests/benchmark/fixtures/MobileNetV1Fixture.h b/tests/benchmark/fixtures/MobileNetV1Fixture.h index 54b0d09a32..9b5020af0f 100644 --- a/tests/benchmark/fixtures/MobileNetV1Fixture.h +++ b/tests/benchmark/fixtures/MobileNetV1Fixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -53,7 +53,6 @@ public: network.init(InputSize, batches); network.build(); network.allocate(); - network.fill_random(); } void run() diff --git a/tests/benchmark/fixtures/NormalizationLayerFixture.h b/tests/benchmark/fixtures/NormalizationLayerFixture.h index cbe20d59da..00ab23ff5a 100644 --- a/tests/benchmark/fixtures/NormalizationLayerFixture.h +++ b/tests/benchmark/fixtures/NormalizationLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -56,9 +56,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/NormalizePlanarYUVLayerFixture.h b/tests/benchmark/fixtures/NormalizePlanarYUVLayerFixture.h index a84aa26023..af42ba7f9a 100644 --- a/tests/benchmark/fixtures/NormalizePlanarYUVLayerFixture.h +++ b/tests/benchmark/fixtures/NormalizePlanarYUVLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -59,11 +59,6 @@ public: dst.allocator()->allocate(); mean.allocator()->allocate(); sd.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); - library->fill_tensor_uniform(Accessor(mean), 1); - library->fill_tensor_uniform(Accessor(sd), 2); } void run() diff --git a/tests/benchmark/fixtures/PoolingLayerFixture.h b/tests/benchmark/fixtures/PoolingLayerFixture.h index 47deda93ec..88edea30fa 100644 --- a/tests/benchmark/fixtures/PoolingLayerFixture.h +++ b/tests/benchmark/fixtures/PoolingLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -57,9 +57,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/QuantizationLayerFixture.h b/tests/benchmark/fixtures/QuantizationLayerFixture.h index 0843962edf..4b2fc88602 100644 --- a/tests/benchmark/fixtures/QuantizationLayerFixture.h +++ b/tests/benchmark/fixtures/QuantizationLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -53,9 +53,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h index 9013218712..bdd416e049 100644 --- a/tests/benchmark/fixtures/ROIPoolingLayerFixture.h +++ b/tests/benchmark/fixtures/ROIPoolingLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -68,9 +68,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/ReshapeLayerFixture.h b/tests/benchmark/fixtures/ReshapeLayerFixture.h index b92377c58c..85a5b80a64 100644 --- a/tests/benchmark/fixtures/ReshapeLayerFixture.h +++ b/tests/benchmark/fixtures/ReshapeLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -54,9 +54,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/ScaleFixture.h b/tests/benchmark/fixtures/ScaleFixture.h index 21a6391953..cd51f5778f 100644 --- a/tests/benchmark/fixtures/ScaleFixture.h +++ b/tests/benchmark/fixtures/ScaleFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -71,9 +71,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/ScaleLayerFixture.h b/tests/benchmark/fixtures/ScaleLayerFixture.h index f34a0033c1..10568ea531 100644 --- a/tests/benchmark/fixtures/ScaleLayerFixture.h +++ b/tests/benchmark/fixtures/ScaleLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -69,8 +69,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/SoftmaxLayerFixture.h b/tests/benchmark/fixtures/SoftmaxLayerFixture.h index f3657daf75..95790ff452 100644 --- a/tests/benchmark/fixtures/SoftmaxLayerFixture.h +++ b/tests/benchmark/fixtures/SoftmaxLayerFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -58,9 +58,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() diff --git a/tests/benchmark/fixtures/TransposeFixture.h b/tests/benchmark/fixtures/TransposeFixture.h index bc2d6d613e..60643aa5e2 100644 --- a/tests/benchmark/fixtures/TransposeFixture.h +++ b/tests/benchmark/fixtures/TransposeFixture.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -57,9 +57,6 @@ public: // Allocate tensors src.allocator()->allocate(); dst.allocator()->allocate(); - - // Fill tensors - library->fill_tensor_uniform(Accessor(src), 0); } void run() -- cgit v1.2.1