diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-12-18 14:14:05 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:42:33 +0000 |
commit | 3b8a5f5ef2f19b6e15739cd0995ef417b9d0863c (patch) | |
tree | f1cce8d88433bb3f2776b7a29d182ac32a8ea7d9 /tests/validation | |
parent | 6aafcde73861b0b8313e450322fbc731a686e274 (diff) | |
download | ComputeLibrary-3b8a5f5ef2f19b6e15739cd0995ef417b9d0863c.tar.gz |
Add CL/NEON FlattenLayer benchmark tests
Change-Id: I66f6fc257e3887a7a39bde8ad6d66400ad1e2d62
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/113738
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Diffstat (limited to 'tests/validation')
-rw-r--r-- | tests/validation/fixtures/FlattenLayerFixture.h | 4 |
1 files changed, 1 insertions, 3 deletions
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<TensorType>(shape, data_type, 1, _fractional_bits); |