Open cjmcmurtrie opened 8 years ago
Ah, yes, this is probably connected to https://github.com/hughperkins/pytorch/issues/10#issuecomment-248637508 It's kind of non-trivial to fix, but probably should be fixed... Probably need some kind of gc
command perhaps. If memory was freed iff one called a new hypothetical PyTorch.gc()
command, to what extent could that be acceptable-ish?
I'm having an issue with properly deleting PyTorch objects from memory. With this dummy class:
If I instantiate from Python:
Then delete the object:
CUDA memory is not freed up.
Is there a clean way to delete a PyTorch object from memory?