caffe2 配置debug

Q: build_python: off

A: cmake -D CUDA_USE_STATIC_CUDA_RUNTIME=OFF -D PYTHON_LIBRARY=/home/xzhao/local/anaconda/lib/python2.7/config/libpython2.7.a -D PYTHON_INCLUDE_DIR=/home/xzhao/local/anaconda/include/python2.7/ ..

Q: cannot find -lopencv_dep_cudart

A:I have the same error. Did you just add it to cmake like this

          -D CUDA_USE_STATIC_CUDA_RUNTIME=OFF

Q: save model的时候,ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

S: 升级numpy version 1.13 and yaml version 3.12.

你可能感兴趣的:(caffe2 配置debug)