安装类别:
1) 用pip安装mxnet的python版本(CPU版本)
2) 用pip安装mxnet的python版本(GPU版本)
3) 编译安装到操作系统上
这里只说前两种,且不管是windows还是linux,python2还是python3,安装命令都一样
以下分别介绍
1, 用pip安装mxnet的python版本
C:\Users\someone>pip install mxnet
100% |████████████████████████████████|
C:\Users\someone>python
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v
.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mxnet as mx
>>> a = mx.nd.ones((2,3))
>>> b = a*2+1
>>> b
[[ 3. 3. 3.]
[ 3. 3. 3.]]
<NDArray 2x3 @cpu(0)>
我不知道为什么这种方法这么简单,但是几乎没有看到有人用
2, 用pip安装mxnet的python版本(GPU版本)
C:\Users\someone>pip install mxnet-cu80
100% |████████████████████████████████|
C:\Users\someone>python
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 5 2016, 11:41:13) [MSC v
.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import mxnet as mx
>>> a = mx.nd.ones((2, 3), mx.gpu())
>>> b = a*2+1
>>> b
以上mxnet-cu80中cu80的意思是cuda8.0