From 098516b74a0948707119c64c641a0a8fdf529454 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 25 Apr 2019 18:25:06 +0100 Subject: COMPMID-1995: Fix memory management for weights transform in CLFFT Remove memory manager from weights transformation in CLFFTConvolutionLayer. Instead move the transformation function into a unique_ptr and free once the tranformation has been performed. Change-Id: Iabd691b3d517d60fa0127e44eb37d6df873a37d3 Signed-off-by: Georgios Pinitas Reviewed-on: https://review.mlplatform.org/c/1031 Reviewed-by: Giuseppe Rossini Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm_compute') diff --git a/arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h b/arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h index 0fd2cf3cb1..2fabe3454a 100644 --- a/arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h +++ b/arm_compute/runtime/CL/functions/CLFFTConvolutionLayer.h @@ -118,7 +118,7 @@ private: CLPadLayer _pad_input_func; CLPadLayer _pad_weights_func; CLFFT2D _transform_input_func; - CLFFT2D _transform_weights_func; + std::unique_ptr _transform_weights_func; CLFFT2D _itransform_output_func; CLComplexPixelWiseMultiplication _prod_func; CLReductionOperation _reduce_func; -- cgit v1.2.1