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

[GitHub] weishy-xun commented on issue #9474: how to release gpu memory in the garbage pool?

weishy-xun commented on issue #9474: how to release gpu memory in the garbage pool?
URL: https://github.com/apache/incubator-mxnet/issues/9474#issuecomment-358555240
 
 
   Not sure if I need open another issue for code below,  showing the gpu leaking problem I met with. 
   
   
   import mxnet as mx
   import numpy as np
   a = mx.nd.zeros((500,500,3), ctx=mx.gpu(0))
   b = mx.nd.ones((500,500,3), ctx=mx.gpu(0))
   for i in range(100000):
       rs1 = np.random.randint(1, 480)
       rs2 = np.random.randint(1, 480)
       a[10:10+rs1,10:10+rs2] = b[20:20+rs1, 10:10+rs2]
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services