diff options
Diffstat (limited to 'src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp index 470e9220ae..fe1f2da457 100644 --- a/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp +++ b/src/runtime/NEON/functions/NEGEMMAssemblyDispatch.cpp @@ -375,7 +375,7 @@ bool NEGEMMAssemblyDispatch::is_configured() const void NEGEMMAssemblyDispatch::run() { - _memory_group.acquire(); + MemoryGroupResourceScope scope_mg(_memory_group); if(_function != nullptr) { _function->run(); @@ -385,6 +385,5 @@ void NEGEMMAssemblyDispatch::run() ARM_COMPUTE_ERROR_ON(_arm_gemm == nullptr); _arm_gemm->run(); } - _memory_group.release(); } } //namespace arm_compute |