chinakook opened a new issue #19574: URL: https://github.com/apache/incubator-mxnet/issues/19574
## Description Current symbol's tojson API have memory leak. I found this from debug with https://github.com/dmlc/gluon-cv/blob/849411ed56632cd854850b07142087d599f97dcb/gluoncv/data/batchify.py#L396 . The memory will keep growing in a multiprocessing training environment because of frequently pickling symbol with tojson() may cause memory leak. ## To Reproduce Mini example to reproduce this memory leak: ``` import mxnet as mx from mxnet.gluon.model_zoo.vision import resnet101_v1 net = resnet101_v1() net.collect_params().initialize(ctx=mx.gpu(0)) for i in range(2000): y = net(mx.sym.var(name='data')) y.tojson() ``` ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
