官术网_书友最值得收藏!

How to do it...

  1. The following R command installs MXNet using prebuilt binary packages, and is hassle-free. The drat package is then used to add the dlmc repository from git followed by the mxnet installation:
install.packages("drat", repos="https://cran.rstudio.com")
drat:::addRepo("dmlc")
install.packages("mxnet")

2. The following code helps install MXNet in Ubuntu (V16.04). The first two lines are used to install dependencies and the remaining lines are used to install MXNet, subject to the satisfaction of all the dependencies:

sudo apt-get update
sudo apt-get install -y build-essential git libatlas-base-dev
libopencv-dev
git clone https://github.com/dmlc/mxnet.git ~/mxnet --recursive
cd ~/mxnet
cp make/config.mk .
echo "USE_BLAS=openblas" >>config.mk
make -j$(nproc)

3. If MXNet is to be built for GPU, the following config needs to be updated before the make command:

echo "USE_CUDA=1" >>config.mk
echo "USE_CUDA_PATH=/usr/local/cuda" >>config.mk
echo "USE_CUDNN=1" >>config.mk
A detailed installation of MXNet for other operating systems can be found at http://mxnet.io/get_started/setup.html.

4. The following command is used to install MXNet (GPU-based) using Docker with all the dependencies:

docker pull chstone/mxnet-gpu
主站蜘蛛池模板: 寻甸| 澄城县| 玉田县| 调兵山市| 沾化县| 武汉市| 五指山市| 蕉岭县| 金乡县| 齐齐哈尔市| 泗阳县| 张家口市| 新泰市| 芒康县| 星座| 马鞍山市| 五寨县| 渭源县| 大石桥市| 天柱县| 玉屏| 宣城市| 连州市| 珲春市| 蓬莱市| 晴隆县| 江川县| 河间市| 神池县| 塔河县| 五河县| 屏东市| 灵寿县| 大城县| 襄垣县| 丰台区| 额尔古纳市| 宁海县| 灵武市| 丁青县| 蕲春县|