aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-08-16 14:46:39 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commitbc92a34f9a96da8fa52fd3563e10f0d1bdd7f3fe (patch)
tree5fc9c40a3fe21218bd42096c53d4393ffee094a0
parent1d382593672a58a19ba9a51c67b20401f136342b (diff)
downloadComputeLibrary-bc92a34f9a96da8fa52fd3563e10f0d1bdd7f3fe.tar.gz
COMPMID-1188: Fix subtensor check
Change-Id: Id8366a1d828e2f1a729c70bac1fb232182d59c0c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/144382 Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
-rw-r--r--src/core/Validate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/Validate.cpp b/src/core/Validate.cpp
index 60a97dfcc2..5587dad77c 100644
--- a/src/core/Validate.cpp
+++ b/src/core/Validate.cpp
@@ -179,7 +179,7 @@ arm_compute::Status arm_compute::error_on_invalid_subtensor(const char *function
// Subtensor should not index in x, y dimensions.
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() != shape.y())), function, file, line);
// Check dimensions
for(unsigned int i = 0; i < TensorShape::num_max_dimensions; ++i)