CUDA memory leakage

Hi,
I have experienced similar, but in my case it is independent of cuda.
https://discuss.pytorch.org/t/memory-leak-during-backprop-in-reinforcement-learning-tutorial/33968