aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGian Marco Iodice <gianmarco.iodice@arm.com>2017-09-11 17:38:02 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitee94f6aaf774f1b7841cb43dbefbb4ef5b373bde (patch)
treea08cba4e6d11465a746de3193e4c663eac4871f2
parentb2833b86def3a44af349b71450629fdb4590ad25 (diff)
downloadComputeLibrary-ee94f6aaf774f1b7841cb43dbefbb4ef5b373bde.tar.gz
COMPMID-415 - Fixed bug in CLDirectConvolutionKernel
Change-Id: I95f5bc2237851ae91438809f373ccdd4bb8cd34e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87279 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
-rw-r--r--src/core/TensorInfo.cpp4
-rw-r--r--tests/validation_old/UNIT/TensorInfo.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/TensorInfo.cpp b/src/core/TensorInfo.cpp
index 3d07ccb69a..91a35315dc 100644
--- a/src/core/TensorInfo.cpp
+++ b/src/core/TensorInfo.cpp
@@ -244,13 +244,13 @@ std::tuple<Strides, size_t, size_t> TensorInfo::calculate_padding_requirements(c
{
if(_tensor_shape.total_size() > 0)
{
- required_strides = Strides(stride_x);
+ required_strides = Strides(stride_x, stride_x);
required_total_size = stride_z;
}
break;
}
case 1:
- required_strides = compute_strides(*this, stride_x);
+ required_strides = compute_strides(*this, stride_x, stride_y);
required_total_size = stride_z;
break;
case 2:
diff --git a/tests/validation_old/UNIT/TensorInfo.cpp b/tests/validation_old/UNIT/TensorInfo.cpp
index f2a3acfee0..488378ac1d 100644
--- a/tests/validation_old/UNIT/TensorInfo.cpp
+++ b/tests/validation_old/UNIT/TensorInfo.cpp
@@ -56,7 +56,7 @@ BOOST_DATA_TEST_CASE(AutoPadding,
PaddingSize{ 4, 36, 4, 4 }
})
^ boost::unit_test::data::make({ Strides{},
- Strides{ 1U },
+ Strides{ 1U, 50U },
Strides{ 1U, 50U },
Strides{ 1U, 50U, 900U },
Strides{ 1U, 50U, 900U, 9000U },