This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix out of bounds error in iterator (#5402)
Fixes 5401 >>> import mxnet as mx >>> x = mx.nd.array([1, 2, 3]) >>> for a in x: ... print a ... <NDArray 1 @cpu(0)> <NDArray 1 @cpu(0)> <NDArray 1 @cpu(0)> [09:44:11] mxnet/dmlc-core/include/dmlc/logging.h:300: [09:44:11] mxnet/include/mxnet/ndarray.h:276: Check failed: shape_[0] > idx (3 vs. 3) index out of range Stack trace returned 6 entries: [bt] (0) 0 libmxnet.so 0x000000010bb7f48e _ZN4dmlc15LogMessageFatalD2Ev + 46 [bt] (1) 1 libmxnet.so 0x000000010bb6dbc5 _ZN4dmlc15LogMessageFatalD1Ev + 21 [bt] (2) 2 libmxnet.so 0x000000010bb71a64 _ZNK5mxnet7NDArray2AtEj + 644 [bt] (3) 3 libmxnet.so 0x000000010bb716b5 MXNDArrayAt + 101
- Loading branch information