From 2e8a2dc31520213fa7e0cc096ad5d30ac010ba9a Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 9 Nov 2018 17:59:00 +0000 Subject: COMPMID-1451: Set axis correctly in CLL2Normalize validate function Change-Id: I93b14106cda8a1f640cf5acf120d31e2ebdaf495 --- src/runtime/CL/functions/CLL2NormalizeLayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/CL') diff --git a/src/runtime/CL/functions/CLL2NormalizeLayer.cpp b/src/runtime/CL/functions/CLL2NormalizeLayer.cpp index a3010a73ea..4f709d561d 100644 --- a/src/runtime/CL/functions/CLL2NormalizeLayer.cpp +++ b/src/runtime/CL/functions/CLL2NormalizeLayer.cpp @@ -63,8 +63,8 @@ Status CLL2NormalizeLayer::validate(const ITensorInfo *input, const ITensorInfo ARM_COMPUTE_RETURN_ON_ERROR(CLReductionOperation::validate(input, &sum_sq, axis, ReductionOperation::SUM_SQUARE)); - // Reduce shape on axis (supported axis is 0) - shape.set(0, 1); + // Reduce shape on axis + shape.set(axis, 1); sum_sq.set_tensor_shape(shape); ARM_COMPUTE_RETURN_ON_ERROR(CLL2NormalizeLayerKernel::validate(input, &sum_sq, output, axis, epsilon)); -- cgit v1.2.1