提交 af3488c0 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2057 Lstm example fix

Merge pull request !2057 from chenweifeng/lstm
......@@ -88,6 +88,6 @@ class SentimentNet(nn.Cell):
embeddings = self.trans(embeddings, self.perm)
output, _ = self.encoder(embeddings, (self.h, self.c))
# states[i] size(64,200) -> encoding.size(64,400)
encoding = self.concat((output[0], output[1]))
encoding = self.concat((output[0], output[-1]))
outputs = self.decoder(encoding)
return outputs
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册