mxnet gluon GRU 文档

# hidden_size = 100 num_layer = 3 layer = mx.gluon.rnn.GRU(100, 3) layer.initialize() # seq_len = 5 batch_size = 3 input_size = 10 input = mx.nd.random.uniform(shape=(5, 3, 10)) # by default zeros are used as begin state output = layer(input) # manually specify begin state. # num_layers = 6 batch_size = 3 num_hidden = 128 h0 = mx.nd.random.uniform(shape=(3, 3, 100)) output, hn = layer(input, h0)
上一篇:HTML随机点名程序


下一篇:k8s日常动手实践 ~~ pod访问 pod请求 k8s api ~ 含新版带curl的busybox镜像