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:
[email protected]


With regards,
Apache Git Services

Reply via email to