From 20c2b501f206e4db1c15c2334f9e8a1baf640a50 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Tue, 1 Oct 2019 15:39:42 +0100 Subject: COMPMID-2693 Weights manager to mark the initial weights as unsued Change-Id: Iaa964e71d0aa80fff0a465127ac3716563bbe85f Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/2017 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- src/runtime/NEON/functions/NEFullyConnectedLayer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/runtime/NEON') diff --git a/src/runtime/NEON/functions/NEFullyConnectedLayer.cpp b/src/runtime/NEON/functions/NEFullyConnectedLayer.cpp index 7adc3bca9e..ee622f4699 100644 --- a/src/runtime/NEON/functions/NEFullyConnectedLayer.cpp +++ b/src/runtime/NEON/functions/NEFullyConnectedLayer.cpp @@ -426,7 +426,6 @@ void NEFullyConnectedLayer::prepare() { if(_weights_manager && _weights_manager->are_weights_managed(_original_weights)) { - cur_weights->mark_as_unused(); cur_weights = _weights_manager->run(cur_weights, &_reshape_weights_managed_function); } else @@ -455,9 +454,9 @@ void NEFullyConnectedLayer::prepare() { _converted_weights_output.allocator()->allocate(); _convert_weights.run(); + cur_weights->mark_as_unused(); } - cur_weights->mark_as_unused(); _are_weights_converted = true; } -- cgit v1.2.1