From 0a1090a193139129b2433688ade53fb2689169a7 Mon Sep 17 00:00:00 2001 From: Isabella Gottardi Date: Thu, 14 Feb 2019 18:07:36 +0000 Subject: COMPMID-1710: Add check on different input/output quantization info were not supported Change-Id: Id64dab5e2de341316238506d4fb3ab82b992753d Signed-off-by: Isabella Gottardi Reviewed-on: https://review.mlplatform.org/697 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- src/core/NEON/kernels/NEStackLayerKernel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/NEON/kernels/NEStackLayerKernel.cpp') diff --git a/src/core/NEON/kernels/NEStackLayerKernel.cpp b/src/core/NEON/kernels/NEStackLayerKernel.cpp index cc60609f9b..d314fb1dd1 100644 --- a/src/core/NEON/kernels/NEStackLayerKernel.cpp +++ b/src/core/NEON/kernels/NEStackLayerKernel.cpp @@ -55,6 +55,7 @@ Status validate_arguments(const ITensorInfo *input, unsigned int axis, unsigned { ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DIMENSIONS(output->tensor_shape(), compute_stack_shape(*input, axis, num_tensors)); ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_DATA_TYPES(input, output); + ARM_COMPUTE_RETURN_ERROR_ON_MISMATCHING_QUANTIZATION_INFO(input, output); } return Status{}; @@ -73,8 +74,8 @@ std::pair validate_and_configure_window(ITensorInfo *input, unsi inline Coordinates shift_from_axis_and_replace_coordinate(const Coordinates &id, unsigned int axis, unsigned int idx_input) { - constexpr int max_out_coord = 5; // Input shape is max a 4D shape, output is max 5D - Coordinates id_out = id; + constexpr int max_out_coord = 5; // Input shape is max a 4D shape, output is max 5D + Coordinates id_out = id; for(unsigned int i = max_out_coord - 1; i > axis; --i) { id_out.set(i, id[i - 1]); -- cgit v1.2.1