From f0cefbfcb1567b952860824a4767ed15f1a87594 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Tue, 17 Apr 2018 09:54:37 +0100 Subject: COMPMID-959 - Fixing subtensor validation Change-Id: I51c878ec9f19da9d05777271d17ecb740387cac8 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127934 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- src/core/Validate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/Validate.cpp') diff --git a/src/core/Validate.cpp b/src/core/Validate.cpp index f5f9f1f8f7..d4fabd4a0f 100644 --- a/src/core/Validate.cpp +++ b/src/core/Validate.cpp @@ -167,9 +167,9 @@ arm_compute::Status arm_compute::error_on_invalid_subtensor(const char *function const TensorShape &parent_shape, const Coordinates &coords, const TensorShape &shape) { // Subtensor should not index in x, y dimensions. - ARM_COMPUTE_RETURN_ERROR_ON_LOC(((coords.x() != 0) && (coords.y() != 0)), function, file, line); + ARM_COMPUTE_RETURN_ERROR_ON_LOC(((coords.x() != 0) || (coords.y() != 0)), function, file, line); // Subtensor shape should match parent tensor in x, y dimensions. - ARM_COMPUTE_RETURN_ERROR_ON_LOC(((parent_shape.x() != shape.x()) && (parent_shape.y() != parent_shape.y())), function, file, line); + ARM_COMPUTE_RETURN_ERROR_ON_LOC(((parent_shape.x() != shape.x()) || (parent_shape.y() != parent_shape.y())), function, file, line); // Check dimensions for(unsigned int i = 0; i < TensorShape::num_max_dimensions; ++i) -- cgit v1.2.1