From 3843ac0bb1f61962d035fd9b69b0dc9d4d7a46ff Mon Sep 17 00:00:00 2001 From: Chenjie Xu Date: Fri, 14 Jun 2019 12:31:27 +0800 Subject: [PATCH] fix typo in 06.understand_sentiment/README.md --- 06.understand_sentiment/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/06.understand_sentiment/README.md b/06.understand_sentiment/README.md index ab3bb85..946243f 100644 --- a/06.understand_sentiment/README.md +++ b/06.understand_sentiment/README.md @@ -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 -- GitLab