1:git clone --recursive https://github.com/mahyarnajibi/SNIPER.git
3、编译
$cd inclubator-mxnet
$cp make/config.mk . 【可以更改config.mk里边的配置项】
vi config.mk
然后改一下
USE_CUDA = 1
USE_CUDA_PATH = /usr/local/cuda
make -j4
4、安装python接口
cd python && sudo python setup.py install
5、验证安装:
$python
import mxnet as mx
a=mx.nd.ones((2,3),mx.cpu())
print((a*2).asnumpy())
[[2. 2. 2.]
[2. 2. 2.]]