From 3b8a5f5ef2f19b6e15739cd0995ef417b9d0863c Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 18 Dec 2017 14:14:05 +0000 Subject: Add CL/NEON FlattenLayer benchmark tests Change-Id: I66f6fc257e3887a7a39bde8ad6d66400ad1e2d62 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113738 Tested-by: Jenkins Reviewed-by: Gian Marco Iodice --- tests/validation/fixtures/FlattenLayerFixture.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/validation') diff --git a/tests/validation/fixtures/FlattenLayerFixture.h b/tests/validation/fixtures/FlattenLayerFixture.h index 436138b8b4..3de0ba45ae 100644 --- a/tests/validation/fixtures/FlattenLayerFixture.h +++ b/tests/validation/fixtures/FlattenLayerFixture.h @@ -76,9 +76,7 @@ protected: TensorType compute_target(const TensorShape &shape, DataType data_type) { TensorShape shape_flatten(shape); - shape_flatten.set(0, shape[0] * shape[1] * shape[2]); - shape_flatten.remove_dimension(1); - shape_flatten.remove_dimension(1); + shape_flatten.collapse(3); // Create tensors TensorType src = create_tensor(shape, data_type, 1, _fractional_bits); -- cgit v1.2.1