You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/10/09 14:53:18 UTC

[GitHub] hyxie6 opened a new issue #5433: mxnet.rnn.BucketSentenceIter has bug

hyxie6 opened a new issue #5433: mxnet.rnn.BucketSentenceIter has bug
URL: https://github.com/apache/incubator-mxnet/issues/5433
 
 
   suppose we have sentences with length [11, 12, 13, 14, 19], all <= 20, 
   and we provide two bucket keys [30, 40], 
   after we call mxnet.rnn.BucketSentenceIter will raise an
   
   > IndexError: too many indices for array
   
   this happens with the following program statement,
   `label[:, :-1] = buck[:, 1:]`
   
   because bucket with key 40 is empty
   one possible solution is to add the following program statement after line 104
   `self.data = [i for i in self.data if i]`
   
 
----------------------------------------------------------------
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