1

I'm developing the iOS app with CoreML.
In this app, the class that contains the CoreML model prediction is instantiated for many times. The amount of memory usage accumulates every prediction and it leads the memory leak and crash app.
My question is that how should I release the memory after prediction.

I tried to update the variable that stores the model object after prediction. This effectively reduces the memory usage, but GPU acceleration does not work.
Are there any solution about this problem?

Kazuki
  • 21
  • 2
  • Please create a minimal code example that demonstrates this problem. – Matthijs Hollemans Dec 28 '18 at 14:13
  • @MatthijsHollemans: I am having a same problem, can you please help me to check this issue: https://stackoverflow.com/questions/67364197/coreml-memory-leak-in-ios-14-5 – Tuan Do May 03 '21 at 06:09

0 Answers0