diff options
author | Moritz Pflanzer <moritz.pflanzer@arm.com> | 2017-06-23 14:15:03 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:14:20 +0100 |
commit | 2509fbaea001910e5d46fdf78b6be77f321202ad (patch) | |
tree | b3a09af6c617020799b91c7c9db57d41ae052a0e /tests/validation/NEON/Threshold.cpp | |
parent | 383deec6b38f8b00f901d475000d46f8d3e5fb97 (diff) | |
download | ComputeLibrary-2509fbaea001910e5d46fdf78b6be77f321202ad.tar.gz |
COMPMID-417: Fix PaddingCalculator
Change-Id: Idefa8c62d313e25808ea735c60967437035e266d
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/78711
Reviewed-by: SiCong Li <sicong.li@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/validation/NEON/Threshold.cpp')
-rw-r--r-- | tests/validation/NEON/Threshold.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/validation/NEON/Threshold.cpp b/tests/validation/NEON/Threshold.cpp index b2a289f3b6..55f7889af3 100644 --- a/tests/validation/NEON/Threshold.cpp +++ b/tests/validation/NEON/Threshold.cpp @@ -99,24 +99,24 @@ BOOST_DATA_TEST_CASE(Configuration, shape, thrshConf) { // Create tensors - Tensor src1 = create_tensor(shape, DataType::U8); - Tensor dst = create_tensor(shape, DataType::U8); + Tensor src = create_tensor(shape, DataType::U8); + Tensor dst = create_tensor(shape, DataType::U8); - BOOST_TEST(src1.info()->is_resizable()); + BOOST_TEST(src.info()->is_resizable()); BOOST_TEST(dst.info()->is_resizable()); // Create and configure function NEThreshold thrsh; - thrsh.configure(&src1, &dst, thrshConf.threshold, thrshConf.false_value, thrshConf.true_value, thrshConf.type, thrshConf.upper); + thrsh.configure(&src, &dst, thrshConf.threshold, thrshConf.false_value, thrshConf.true_value, thrshConf.type, thrshConf.upper); // Validate valid region const ValidRegion valid_region = shape_to_valid_region(shape); - validate(src1.info()->valid_region(), valid_region); + validate(src.info()->valid_region(), valid_region); validate(dst.info()->valid_region(), valid_region); // Validate padding - const PaddingSize padding(0, PaddingCalculator(shape.x(), 16).required_padding(), 0, 0); - validate(src1.info()->padding(), padding); + const PaddingSize padding = PaddingCalculator(shape.x(), 16).required_padding(); + validate(src.info()->padding(), padding); validate(dst.info()->padding(), padding); } |