You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/07 01:54:11 UTC

[GitHub] lnuchiyo opened a new issue #7359: Compile MXNet error: no matching function for call to ?std::vector::push_back

lnuchiyo opened a new issue #7359: Compile MXNet error: no matching function for call to ?std::vector<unsigned int*>::push_back
URL: https://github.com/apache/incubator-mxnet/issues/7359
 
 
   For bugs or installation issues, please provide the following information.
   The more information you provide, the more likely people will be able to help you.
   
   ## Environment info
   Operating System:  ubuntu 16.04
   Package used (Python/R/Scala/Julia): python
   MXNet version: mxnet (0.10.1)
   i am  using python package ,
    
    when i do this:
   cd ${MXNET_ROOT}
   make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1
   
   there are some error:
   g++ -std=c++11 -c -DMSHADOW_FORCE_STREAM -Wall -Wsign-compare -O3 -I/home/cs/mxnet/mshadow/ -I/home/cs/mxnet/dmlc-core/include -fPIC -I/home/cs/mxnet/nnvm/include -Iinclude -funroll-loops -Wno-unused-variable -Wno-unused-parameter -Wno-unknown-pragmas -Wno-unused-local-typedefs -msse3 -I/usr/local/cuda/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=0 -DMSHADOW_USE_PASCAL=0 -DMXNET_USE_OPENCV=1 -I/usr/include/opencv -fopenmp -DMSHADOW_USE_CUDNN=1  -I/home/cs/mxnet/cub -DMXNET_USE_NVRTC=0 -MMD -c src/operator/custom/ndarray_op.cc -o build/src/operator/custom/ndarray_op.o
   In file included from src/operator/custom/native_op.cc:7:0:
   src/operator/custom/./native_op-inl.h: In member function ?virtual bool mxnet::op::NativeOpProp::InferShape(std::vector<nnvm::TShape>*, std::vector<nnvm::TShape>*, std::vector<nnvm::TShape>*) const?:
   src/operator/custom/./native_op-inl.h:204:36: ****error: no matching function for call to ?std::vector<unsigned int*>::push_back(nnvm::dim_t*)?
          shapes.push_back(iter->data());
                                       ^
   In file included from /usr/include/c++/5/vector:64:0,
                    from /home/cs/mxnet/dmlc-core/include/dmlc/logging.h:13,
                    from src/operator/custom/./native_op-inl.h:10,
                    from src/operator/custom/native_op.cc:7:
   /usr/include/c++/5/bits/stl_vector.h:913:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*]
          push_back(const value_type& __x)
          ^
   /usr/include/c++/5/bits/stl_vector.h:913:7: note:   no known conversion for argument 1 from ?nnvm::dim_t* {aka long int*}? to ?unsigned int* const&?
   /usr/include/c++/5/bits/stl_vector.h:931:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = unsigned int*; _Alloc = std::allocator<unsigned int*>; std::vector<_Tp, _Alloc>::value_type = unsigned int*]
          push_back(value_type&& __x)
          ^
   /usr/include/c++/5/bits/stl_vector.h:931:7: note:   no known conversion for argument 1 from ?nnvm::dim_t* {aka long int*}? to ?unsigned int*&&?
   In file included from src/operator/custom/ndarray_op.cc:7:0:
   src/operator/custom/./ndarray_op-inl.h: In member function ?virtual bool mxnet::op::NDArrayOpProp::InferShape(std::vector<nnvm::TShape>*, std::vector<nnvm::TShape>*, std::vector<nnvm::TShape>*) const?:
   
   is anyone here,can help me to deal with it? 
   
 
----------------------------------------------------------------
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