I have another question about a memory leak.
After predicting labels, the memory is never released—even after the function finishes executing.
What should I do? I tried the following code, but it didn't work.
I use CPU and don't have any gpu.
import gc
tf.keras.backend.clear_session()
del predictions
gc.collect()