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/08/12 15:11:11 UTC

[GitHub] squidszyd opened a new issue #12138: How to debug C++ Iterator?

squidszyd opened a new issue #12138: How to debug C++ Iterator?
URL: https://github.com/apache/incubator-mxnet/issues/12138
 
 
   I've written a C++ iterator (name it `MyIterator`) for performance purpose. The implementation (.cc) file is put in `src/io`. After `make`, I found myself only able to call it through python interface using `iter = mx.io.MyIterator` and hard to access the C++ code and debug.
   
   For instance, `MyIterator` provides multiple labels (suppose the number is 4) as label data in one sample, which is different from iterators like `ImageRecordIter` which only provides only a classification label. However, when I check the output of `databatch = iter.next()`, I found that the returned `databatch` is incomplete. `databatch.label`  should have 4 labels per instance, but in fact only the first one of the four is provided.
   
   Could someone help me with this?

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