- R Deep Learning Cookbook
- Dr. PKS Prakash Achyutuni Sri Krishna Rao
- 163字
- 2021-07-02 20:49:06
How to do it...
- 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
推薦閱讀
- Android Wearable Programming
- Redis入門指南(第3版)
- Scratch 3游戲與人工智能編程完全自學教程
- HTML5入門經典
- HTML5從入門到精通 (第2版)
- 青少年信息學競賽
- HTML5從入門到精通(第4版)
- MongoDB,Express,Angular,and Node.js Fundamentals
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- Rust游戲開發實戰
- Python數據可視化之美:專業圖表繪制指南(全彩)
- 創意UI Photoshop玩轉移動UI設計
- Scratch從入門到精通
- Learning Concurrency in Python
- Ionic3與CodePush初探:支持跨平臺與熱更新的App開發技術