提交 3843ac0b 编写于 作者: C Chenjie Xu

fix typo in 06.understand_sentiment/README.md

上级 b030b6c9
......@@ -173,7 +173,7 @@ def stacked_lstm_net(data, input_dim, class_dim, emb_dim, hid_dim, stacked_num):
# Calculate word vectorvector
emb = fluid.layers.embedding(
input=data, size=[input_dim, emb_dim], is_sparse=True)=True)
input=data, size=[input_dim, emb_dim], is_sparse=True)
#First stack
#Fully connected layer
......@@ -191,7 +191,7 @@ def stacked_lstm_net(data, input_dim, class_dim, emb_dim, hid_dim, stacked_num):
inputs = [fc, lstm]
#pooling layer
pc_last = fluid.layers.sequence_pool(input=inputs[0], pool_type='max')
fc_last = fluid.layers.sequence_pool(input=inputs[0], pool_type='max')
lstm_last = fluid.layers.sequence_pool(input=inputs[1], pool_type='max')
#Fully connected layer, softmax prediction
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册