diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-09 17:59:00 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-11-12 12:22:14 +0000 |
commit | 2e8a2dc31520213fa7e0cc096ad5d30ac010ba9a (patch) | |
tree | a5abe219d0a39ba16b8ceba6adb0a226c143b3db /src/runtime/CL/functions/CLL2NormalizeLayer.cpp | |
parent | e7f4a432775eb215c9da7ade1ee2710f67641068 (diff) | |
download | ComputeLibrary-2e8a2dc31520213fa7e0cc096ad5d30ac010ba9a.tar.gz |
COMPMID-1451: Set axis correctly in CLL2Normalize validate function
Change-Id: I93b14106cda8a1f640cf5acf120d31e2ebdaf495
Diffstat (limited to 'src/runtime/CL/functions/CLL2NormalizeLayer.cpp')
-rw-r--r-- | src/runtime/CL/functions/CLL2NormalizeLayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |