-
Notifications
You must be signed in to change notification settings - Fork 108
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
Memory leak when calling policy function? #19
Comments
Nevermind this issue, that's my bad it's a tensorflow 2.1 non-sense. |
Hi, I'm using tensorflow 2.4.0 and I think there are still memory leak problems somewhere. How do you solve this? Thx @AntoineRichard |
Initially, I had made some modifications to the code to integrate it with python2 and ROS that created a real memory leak because I was not feeding NumPy arrays. I hope this helps. |
Hi,
I run into a memory leak when I use this function over and over and over again.
Is there something that needs to be cleared? I tried calling the function inside the call that resets the state (I'm not sure that it does that I'm assuming). This one:
My guess is that is comes from this function:
But I'm not familiar with tensorflow 2.X and I couldn't fix it.
A quick way to reproduce the issue is to modify the dreamer code as shown below and to run HTOP to monitor the RAM.
Please note that this behavior also happens if you run the call function instead of the policy one.
This happened with both python2.7 python3.8 on a ubuntu 18.04 system using tensorflow 2.1.0
Thanks in advance,
Regards,
Antoine
The text was updated successfully, but these errors were encountered: