You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/01/07 00:18:55 UTC

[GitHub] [incubator-mxnet] djaym7 commented on issue #1432: How can I clear the memory usage?

djaym7 commented on issue #1432:
URL: https://github.com/apache/incubator-mxnet/issues/1432#issuecomment-755791934


   self.clear_gpu()
   del self.net,train_loader,val_loader,train_dataset,val_dataset
   gc.collect()
   
   There still remains ~2gb memory occupied in gpu which is only cleared after restarting/killing the kernel/process without which the memory keeps increasing till there is None left after every iteration.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org