apatel726 / HurricaneDissertation

2 stars 2 forks source link

Memory Leak #37

Closed hammad93 closed 3 years ago

hammad93 commented 3 years ago

When running the command in the all_timesteps branch,

python test.py --config data/config.json --test data/hurdat2_test.txt

Will use up an additional 20% of the 16GB RAM for each inference. This means that at 5 inferences, the script is using 100% of the RAM and the system crashes.

hammad93 commented 3 years ago

It's a common issue, please see

https://www.tensorflow.org/api_docs/python/tf/keras/backend/clear_session

matplotlib was also leaking memory but that wasn't an issue

Thanks @jbrant @apatel726 !