From ba13a8e666a14a079722f0fc5f8ec6824745f879 Mon Sep 17 00:00:00 2001 From: Imansame <103526878+Imansame@users.noreply.github.com> Date: Sat, 16 Apr 2022 01:15:42 +0430 Subject: [PATCH] Revert "Fix: fix APU memory leak problem" --- mace/runtimes/apu/v4/neuron_delegate_kernel.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/mace/runtimes/apu/v4/neuron_delegate_kernel.cc b/mace/runtimes/apu/v4/neuron_delegate_kernel.cc index 5003f6e8..27a37747 100644 --- a/mace/runtimes/apu/v4/neuron_delegate_kernel.cc +++ b/mace/runtimes/apu/v4/neuron_delegate_kernel.cc @@ -89,7 +89,6 @@ bool NeuronDelegateKernel::Init(const NetDef *net_def, &restoredModel, &restoredCompilation, buffer.data(), buffer.size()); if (err == NEURON_NO_ERROR) { LOG(INFO) << "Load pre-compiled model successfully."; - nn_model_.reset(restoredModel); nn_compilation_.reset(restoredCompilation); return true; }