diff options
Diffstat (limited to 'src/runtime/CL/functions/CLLSTMLayer.cpp')
-rw-r--r-- | src/runtime/CL/functions/CLLSTMLayer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/runtime/CL/functions/CLLSTMLayer.cpp b/src/runtime/CL/functions/CLLSTMLayer.cpp index 13c4871148..4606a66bf2 100644 --- a/src/runtime/CL/functions/CLLSTMLayer.cpp +++ b/src/runtime/CL/functions/CLLSTMLayer.cpp @@ -505,7 +505,7 @@ void CLLSTMLayer::run() { prepare(); - _memory_group.acquire(); + MemoryGroupResourceScope scope_mg(_memory_group); CLScheduler::get().enqueue(_concat_inputs_forget_gate); @@ -574,8 +574,6 @@ void CLLSTMLayer::run() CLScheduler::get().enqueue(_copy_output); _concat_scratch_buffer.run(); - - _memory_group.release(); } void CLLSTMLayer::prepare() |