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/17 05:22:04 UTC

[GitHub] jeremiedb commented on issue #9453: [R] CNN Memory Leak - Needs to somehow call Garbage Collector

jeremiedb commented on issue #9453: [R] CNN Memory Leak - Needs to somehow call Garbage Collector
URL: https://github.com/apache/incubator-mxnet/issues/9453#issuecomment-358200492
 
 
   Far from ideal, but as a dirty patch you can add a gc() call within the train.model function training loop here: 
   https://github.com/apache/incubator-mxnet/blob/master/R-package/R/model.R#L221
   This will require to essentially copy and call the entire model.R script since some function has dependencies on functions that aren't exported. 
   It can be worthwile to add a condition such as if (nbatch %% 10) to avoid too many calls to gc() that may slowdown training. 

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