Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement on memory usage #282

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Improvement on memory usage #282

merged 1 commit into from
Mar 27, 2024

Conversation

ver0z
Copy link
Contributor

@ver0z ver0z commented Mar 12, 2024

I find the use of garbage collector usefull when using the pygad on colab, because when I tried to train some examples on standard version of quotas colab (12GB RAM), not PRO, the usage of memory exceeded the quantity available and so the colab restarted itself not allowing to train for more than 3 generations. With gc.collect() used outside of on_generation or inside was possible to release the memory and not crash.

@ahmedfgad ahmedfgad merged commit 8024132 into ahmedfgad:master Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants