linux下安装mxnet和python接口配置
来源:互联网 发布:hbase是关系数据库吗 编辑:程序博客网 时间:2024/06/16 09:50
Build the MXNet core shared library
Step 1 Install build tools and git.
$ sudo apt-get update$ sudo apt-get install -y build-essential git
Step 2 Install OpenBLAS.
MXNet uses BLAS library for accelerated numerical computations. There are several flavors of BLAS libraries -OpenBLAS,ATLAS and MKL. In this step we install OpenBLAS. You can choose to install ATLAS or MKL.
$ sudo apt-get install -y libopenblas-dev
Step 3 Install OpenCV.
MXNet uses OpenCV for efficient image loading and augmentation operations.
$ sudo apt-get install -y libopencv-dev
Step 4 Download MXNet sources and build MXNet core shared library.
$ git clone --recursive https://github.com/dmlc/mxnet$ cd mxnet$ make -j $(nproc) USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1
Note - USE_OPENCV, USE_BLAS, USE_CUDA, USE_CUDA_PATH AND USE_CUDNN are make file flags to set compilation options to use OpenCV, OpenBLAS, CUDA and cuDNN libraries. You can explore and use more compilation options inmake/config.mk
. Make sure to set USE_CUDA_PATH to right CUDA installation path. In most cases it is -/usr/local/cuda.
Build the MXNet Python binding
Step 1 Install prerequisites - python setup tools and numpy.
$ sudo apt-get install -y python-dev python-setuptools python-numpy
Step 2 Build the MXNet Python binding.
$ cd python$ sudo python setup.py install
Step 3 Install Graphviz. (Optional, needed for graph visualization using mxnet.viz
package).
sudo apt-get install graphvizpip install graphviz
Step 4 Validate the installation by running simple MXNet code describedhere.
参考网址: http://mxnet.io/get_started/install.html
- linux下安装mxnet和python接口配置
- linux下安装warpctc,mxnet和python接口配置
- Windows10下安装和配置mxnet
- mxnet CPU版本Windows下简单安装(python接口安装)
- windows下安装配置Mxnet
- Ubuntu 配置 python环境 和 mxnet
- win10,VS2013下MXnet编译和安装
- linux下Anaconda python 配置libsvm接口
- 讲讲我在Linux上安装和配置MXNet的经历
- Windows10下安装Mxnet
- Ubuntu下安装MxNet
- 配置Ubuntu下MXnet 所需的 Python环境
- windows(64位)下用GPU版本的mxnet配置(绑定python)+xgboost快速安装使用
- Linux下C++调用python中训好的mxnet模型
- Python 虚拟环境+安装MxNet(CPU和GPU版本)
- 深度学习之Windows下安装caffe及配置Python和matlab接口
- 深度学习之Windows下安装caffe及配置Python和matlab接口
- 深度学习第一课:MXNet/Gluon环境配置和安装
- 函数和数组的小知识点笔记
- 【QT】文件对话框
- nagiosgraph的配置调整
- Leetcode 17. Letter Combinations of a Phone Number
- 程序员必须弄懂结构体,结构体基础知识
- linux下安装mxnet和python接口配置
- obc学习笔记2
- 1071. Speech Patterns (25)
- 面试题25. 二叉树中和为某一值的路径
- 玩转 Python 3.5 的 await/async
- Docker
- [leetcode]: 414. Third Maximum Number
- Wwise中ProLoadBank和PrepareEvent深入理解
- SQL语句中一些关键字的英文来源