//目录
摘要: from mxnet import gluon,init from mxnet.gluon import loss as gloss, nn from mxnet.gluon import data as gdata from mxnet import nd,autograd import gluo 阅读全文
posted @ 2018-11-28 17:43 小草的大树梦 阅读(690) 评论(0) 推荐(0) 编辑
摘要: from mxnet import gluon,init from mxnet.gluon import loss as gloss,nn from mxnet.gluon import data as gdata from mxnet import autograd,nd import gluonbook as gb import sys # 读取数据 mnist_train = gdata... 阅读全文
posted @ 2018-11-28 16:55 小草的大树梦 阅读(594) 评论(0) 推荐(0) 编辑
摘要: from mxnet import autograd, nd num_inputs = 2 num_examples = 1000 true_w = [2,-3.4] true_b = 4.2 feature = nd.random.normal(scale=1,shape=(num_examples,num_inputs)) labels = true_w[0]*feature[:,0] ... 阅读全文
posted @ 2018-11-28 16:17 小草的大树梦 阅读(372) 评论(0) 推荐(0) 编辑
摘要: GPU In [1]: import mxnet as mx from mxnet import nd from mxnet.gluon import nn In [2]: mx.cpu(),mx.gpu(),mx.gpu(1) Out[2]: (cpu(0), gpu(0), gpu(1)) In 阅读全文
posted @ 2018-11-28 15:45 小草的大树梦 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 还有反向迭代器__reversed__,生成器表达式,等等。 阅读全文
posted @ 2018-11-28 11:26 小草的大树梦 阅读(221) 评论(0) 推荐(0) 编辑