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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to