-
Notifications
You must be signed in to change notification settings - Fork 25
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
Free a tds.Hash() element's memory #23
Comments
the memory should be freed if you set your variable to nil and collectgarbage() for example. |
This should act as a dummy test case for what I'm doing...
I see that not all the memory is being given back to me (11224---8900) once I re-allocate these variables. So if you consider the above code-snippet as a 800x32 dimensional feature, I have a LOT of such features and this wastage of space for each feature ends up using up my complete RAM even if I use the same variables and garbage-collection to load the data in chunks. |
@soumith were you able to reproduce this problem? |
@NightFury13 first of all, modern allocators dont always release all the memory back to the system unless needed to do so. They might keep the memory for a while. Can you create a dummy snippet of code that generates 800x32 dimensional features. I want a snippet that will really get me to using a LOT of ram, ideally gigabytes of ram. |
How does one explicitly free the memory assigned to any variable which is an instance of tds.Hash()?
I have quite some data that I want to run my torch codes on.However, I face CPU-RAM limitations even if I load my data in chunks as the memory occupied by previously allocated tds is not being freed up even after setting the
variable to nil
and doing acollectgarbage()
in the code.The text was updated successfully, but these errors were encountered: