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/11 11:25:34 UTC

[GitHub] squidszyd opened a new issue #12135: Writing own C++ Data Iter

squidszyd opened a new issue #12135: Writing own C++ Data Iter
URL: https://github.com/apache/incubator-mxnet/issues/12135
 
 
   https://github.com/apache/incubator-mxnet/blob/c44f16b0909d94c9beaf9c5fc0773855bbc91807/src/io/inst_vector.h#L147
   
   I'm currently implementing a data iterator for generating data multi-task model, which needs various data and labels as input. However, as I going on, I've found that the data holder `InstVector` is designed to hold only one data and one label. 
   
   Should the `Push` method of `InstVector` be designed like this ?
   ```
   inline void Push(unsigned index, 
                    std::vector<mshadow::Shape<3>>& dshape, 
                    std::vector<mshadow::Shape<1>>& lshape)  // b.t.w., it is not friendly for label other than 1-Dim
   ```
   
   Or, is there another way?

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