move model.eval() to manually
This commit is contained in:
parent
814d047129
commit
3a19150344
|
@ -389,7 +389,6 @@ class Tacotron2(nn.Layer):
|
||||||
|
|
||||||
@paddle.no_grad()
|
@paddle.no_grad()
|
||||||
def infer(self, text_inputs, stop_threshold=0.5, max_decoder_steps=1000):
|
def infer(self, text_inputs, stop_threshold=0.5, max_decoder_steps=1000):
|
||||||
self.eval()
|
|
||||||
embedded_inputs = self.embedding(text_inputs)
|
embedded_inputs = self.embedding(text_inputs)
|
||||||
encoder_outputs = self.encoder(embedded_inputs)
|
encoder_outputs = self.encoder(embedded_inputs)
|
||||||
mel_outputs, stop_logits, alignments = self.decoder.infer(
|
mel_outputs, stop_logits, alignments = self.decoder.infer(
|
||||||
|
|
Loading…
Reference in New Issue