October 2017
Intermediate to advanced
330 pages
7h 7m
English
from mxnet import gluon
import mxnet as mximport numpy as npx_input = mx.nd.empty((1, 5), mx.gpu())x_input[:] = np.array([[1,2,3,4,5]], np.float32)y_input = mx.nd.empty((1, 5), mx.gpu())y_input[:] = np.array([[10, 15, 20, 22.5, 25]], np.float32)
net = gluon.nn.Sequential()with net.name_scope(): net.add(gluon.nn.Dense(16, activation="relu"))
Read now
Unlock full access