How to unload or delete a tf saved_model after loaded to memory

I have loaded the tf.saved_model.load to the memory as I need to load the model for each audio to process. but I consumed a lot of memory and at the end my machine get crushed. Could anyone help me to unload or delete the model from the memory once the process is finished.

Hi @bakht_ullah, Once you have loaded the model using loaded_model = tf.saved_model.load(model_path) you can use the loaded_model instance for each audio to process, you don’t need to load the model for every audio process. Thank You.