abner2015 opened a new issue #14732: cpp-package predict  error at 'int 
best_idx = predicted.At(0, 0)' whether the ndarray.hpp have a bug?
URL: https://github.com/apache/incubator-mxnet/issues/14732
 
 
   The example from 
   
   > 
https://github.com/apache/incubator-mxnet/tree/master/cpp-package/example/inference
   
   when i use the cpp package inference the image , occur the error :
   
   > ### vector subscript out of range
   at the  line :`int best_idx = predicted.At(0, 0)` 
   debug code at `ndarray.hpp' :
    
   `inline size_t NDArray::Offset(size_t h, size_t w)  const {
     return (h * GetShape()[1]) + w;
   }
   `
   whether hava a bug in ndarray.hpp?
   
   >  **and GetShape()[0] is right?**

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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