anirudh2290 commented on issue #15375: Memory leak in Naive engine when 
profiling
URL: 
https://github.com/apache/incubator-mxnet/issues/15375#issuecomment-506877531
 
 
   > it makes sense to you because you know the code
   
   So who are you targeting, someone unfamiliar with the code. Everyone needs 
to spend some time with the code to understand it, but after they spend that 
time it makes sense.
   
   I know the benefits of RAII, but it doesn't apply to this use case of 
threaded engine. I am saying there is no need to change threaded engine code 
here which you are proposing to do. RAII won't benefit here, because engine 
itself is only responsible for indicating to the object pool that the object 
has to be deleted. The rest is taken care by the object pool itself. As I said 
if you really want to add RAII, do it in the graph executor (although I don't 
think it is really needed there either).

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