摘要:
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 阅读全文
摘要:
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... 阅读全文
摘要:
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] ... 阅读全文
摘要:
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 阅读全文
摘要:
还有反向迭代器__reversed__,生成器表达式,等等。 阅读全文