Browse Source

modify net to avoid performance decay

tags/v0.5.0-beta
wilfChen 5 years ago
parent
commit
deffd6a638
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/model_zoo/lstm.py

+ 1
- 1
mindspore/model_zoo/lstm.py View File

@@ -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[499]))
outputs = self.decoder(encoding)
return outputs

Loading…
Cancel
Save