it is better to have the collector inside `runTraining`, like that you do in GanMnist.scala. Otherwise when the # of loop increases, too many ndarrays will be stored temporarily in the collector here. But if you just mean to get rid of mem leak in CI, then this is fine.
[ Full content available at: https://github.com/apache/incubator-mxnet/pull/12232 ] This message was relayed via gitbox.apache.org for [email protected]
