diff options
Diffstat (limited to 'arm_compute/core')
-rw-r--r-- | arm_compute/core/Utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index 590bdf93c0..681a1a708e 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -1351,7 +1351,7 @@ inline unsigned int adjust_vec_size(unsigned int vec_size, size_t dim0) { ARM_COMPUTE_ERROR_ON(vec_size > 16); - if(dim0 == 3) + if((vec_size >= dim0) && (dim0 == 3)) { return dim0; } |