aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-12-07 13:23:39 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2018-12-07 16:39:51 +0000
commit2ade452bba9211fb999ec4ae303521b9efd041b5 (patch)
tree82f4ce5b975c1ebf3675712b109ebcc8bb9fc3e8 /src
parent7bb6fb8a81111fcb4804bd30657e5ef73d1449a9 (diff)
downloadComputeLibrary-2ade452bba9211fb999ec4ae303521b9efd041b5.tar.gz
COMPMID-1451: Fix shape check in CLStridedSliceKernel
Change-Id: I10979793e22296f9ab091405509d809fd692ab89 Reviewed-on: https://review.mlplatform.org/365 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Matthew Bentham <matthew.bentham@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/CL/kernels/CLStridedSliceKernel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/CL/kernels/CLStridedSliceKernel.cpp b/src/core/CL/kernels/CLStridedSliceKernel.cpp
index 2d2ba103e5..3828a48d02 100644
--- a/src/core/CL/kernels/CLStridedSliceKernel.cpp
+++ b/src/core/CL/kernels/CLStridedSliceKernel.cpp
@@ -69,7 +69,8 @@ Status validate_arguments(const ITensorInfo *input, const ITensorInfo *output,
// Checks output if configured
if(output->total_size() != 0)
{
- ARM_COMPUTE_RETURN_ERROR_ON(output->tensor_shape() != exp_output_shape);
+ const TensorInfo exp_output_info = output->clone()->set_tensor_shape(exp_output_shape);
+ ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_SHAPES(output, &exp_output_info);
ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output);
}