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 2019/02/12 08:59:24 UTC

[GitHub] songziqin opened a new issue #14129: NDArray C++ construct problem

songziqin opened a new issue #14129: NDArray C++	construct problem 
URL: https://github.com/apache/incubator-mxnet/issues/14129
 
 
   I use MXnet in C++. I want to construct  a new NDArray  object through a vector object. I use the  NDArray (const std::vector< mx_float > &data) function.
   
   vector<mx_float> v;
   for(int index=0;index<10;index++)
        v.push_back(0.01);
   NDArray nd_array(v);
   and I do a test, what surprise me is  nd_array.Size() != v.size()
   I am very confused.
   
   
   
   
   
   

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