diff options
author | Pablo Tello <pablo.tello@arm.com> | 2018-08-07 11:23:54 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | d8b03dd029261091e34dd8831d546299c60ce094 (patch) | |
tree | ced5c96940aa018f0a5a5a3a5fb0769d8dadcd1e /tests/benchmark/fixtures/WarpAffineFixture.h | |
parent | 7da6dcfc199580828dbedfed15afdcc7a789192c (diff) | |
download | ComputeLibrary-d8b03dd029261091e34dd8831d546299c60ce094.tar.gz |
MLCE-13: Sanitizing matrix argument in the Warp.
This changes help to prevent errors like passing a matrix
with less elements than required into the warp functions.
Change-Id: I863f933a5e0568258717cffed3a20788d3d03083
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143044
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/benchmark/fixtures/WarpAffineFixture.h')
-rw-r--r-- | tests/benchmark/fixtures/WarpAffineFixture.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmark/fixtures/WarpAffineFixture.h b/tests/benchmark/fixtures/WarpAffineFixture.h index 9f61c6ce1a..e1d6855c83 100644 --- a/tests/benchmark/fixtures/WarpAffineFixture.h +++ b/tests/benchmark/fixtures/WarpAffineFixture.h @@ -54,7 +54,7 @@ public: dst = create_tensor<TensorType>(shape, data_type); // Create and configure function - warp_affine_func.configure(&src, &dst, matrix.data(), policy, border_mode, constant_border_value); + warp_affine_func.configure(&src, &dst, matrix, policy, border_mode, constant_border_value); // Allocate tensors src.allocator()->allocate(); @@ -79,7 +79,7 @@ public: } private: - const std::array<float, 6> matrix{ { -0.9f, -0.6f, -0.3f, 0.3f, 0.6f, 0.9f } }; + const std::array<float, 9> matrix{ { -0.9f, -0.6f, -0.3f, 0.3f, 0.6f, 0.9f, /* ignored*/ 1.f, 1.f, 1.f } }; TensorType src{}; TensorType dst{}; Function warp_affine_func{}; |