leleamol commented on issue #13437: Memory leak in c++ api
URL: 
https://github.com/apache/incubator-mxnet/issues/13437#issuecomment-473080764
 
 
   @aravindhv10 
   I was able to run your program.cpp under valgrind.  I did not notice any 
memory leak in "Backward()" call.
   I also tried to monitor the RSS consumption and it was very steady after the 
initial epochs.
   The RSS consumption also went down after invoking "MXNotifyShutdown()".
   
   There was recent PR merged to fix the potential memory leak 
https://github.com/apache/incubator-mxnet/pull/14223/files#diff-1857b9d275cb36ebeafadf72a278d09aR81
   
   Can you please try running the test again?
   
   I did notice that the Optimizer object ("adam") created in program.cpp is 
not getting freed.  But that is one time allocation and does not increase 
overtime.
   
   
   
   

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to