Merge pull request #53 from lfchener/reborn

move model.eval() to manually
This commit is contained in:
Feiyu Chan 2020-12-12 18:36:13 +08:00 committed by GitHub
commit ab56eac676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -389,7 +389,6 @@ class Tacotron2(nn.Layer):
@paddle.no_grad()
def infer(self, text_inputs, stop_threshold=0.5, max_decoder_steps=1000):
self.eval()
embedded_inputs = self.embedding(text_inputs)
encoder_outputs = self.encoder(embedded_inputs)
mel_outputs, stop_logits, alignments = self.decoder.infer(