COMPMID-3783: Segfaulting in Reduction layer with NEON on Mate20 with HFNet

Signed-off-by: Sheri Zhang <sheri.zhang@arm.com>
Change-Id: Iaf7ba1092aeda78b0f2bff3134f4699afc783385
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4013
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/runtime/NEON/functions/NEReductionOperation.cpp b/src/runtime/NEON/functions/NEReductionOperation.cpp
index 853d0ed..fc2e6d2 100644
--- a/src/runtime/NEON/functions/NEReductionOperation.cpp
+++ b/src/runtime/NEON/functions/NEReductionOperation.cpp
@@ -178,6 +178,7 @@
 
 void NEReductionOperation::run()
 {
+    MemoryGroupResourceScope scope_mg(_memory_group);
     if(_reduction_axis == 0)
     {
         NEScheduler::get().schedule(&_fill_border_kernel, Window::DimY);