mxnet系列 安装

caffe一样,编译的时候用make 或者make -8

会遇到如下的错误

include/mxnet/./base.h:50:2: error: #error "Currently we need g++ 4.8 or higher to fully support c++11 features"

需要增加g++的版本到4.8及其以上

查看g++版本号

g++ --version

输入以下语句进行升级

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.8
可能因为网络原因不能正常下载,多试几次就可以了。

然后使用/usr/bin/g++ 即可
把准备好的config.mk和Makefile文件复制到根目录

make -j8

cd 到example/image-classification中运行python train_mnist.py即可

posted @ 2017-04-24 10:57  开往春天的拖拉机  阅读(130)  评论(0编辑  收藏  举报