commit | da953f2e17b401ff595ac88008cd5e90440ebf74 | [log] [tgz] |
---|---|---|
author | Georgios Pinitas <georgios.pinitas@arm.com> | Tue Apr 02 17:27:03 2019 +0100 |
committer | Georgios Pinitas <georgios.pinitas@arm.com> | Mon Apr 08 11:47:38 2019 +0000 |
tree | d27b1a731fdabea773bd97e7ce6808e32e5539d1 | |
parent | 4335a8c163ada987dfc88f8be4575fb6b68d64d9 [diff] [blame] |
COMPMID-2098: Scope handling of memory group resources. Change-Id: Ie945526bd7845301458039edf3129253c1808505 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/938 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/runtime/CL/functions/CLDepthwiseConvolutionLayer.cpp b/src/runtime/CL/functions/CLDepthwiseConvolutionLayer.cpp index 15cbfce..65d3f5f 100644 --- a/src/runtime/CL/functions/CLDepthwiseConvolutionLayer.cpp +++ b/src/runtime/CL/functions/CLDepthwiseConvolutionLayer.cpp
@@ -179,7 +179,7 @@ { prepare(); - _memory_group.acquire(); + MemoryGroupResourceScope scope_mg(_memory_group); if(_needs_permute) { @@ -192,8 +192,6 @@ { _permute_output_to_nhwc.run(); } - - _memory_group.release(); } void CLDepthwiseConvolutionLayer3x3::prepare()