lanking520 commented on issue #11571: RNN Example not supported for MXNet Scala URL: https://github.com/apache/incubator-mxnet/issues/11571#issuecomment-404925244 @nswamy and @yzhliu , thanks for your recommendation on the changes. There should be no problem when we dispose a `dataBatch` in the `DataIter`. The core problem happened in the RNN BucketingIter. The `next()` method did not brings a copy. Instead, a reference of NDArray created in the Iterator and passed to the DataIter. The C++ side only see one reference in the original data. In that case, we lose information and that cause the crash. Solution: pass copies to the BucketIter and this will solve the problem, I will send a PR regarding to this and see how well it can perform
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
