diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CL/kernels/CLStridedSliceKernel.cpp | 3 |
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); } |