Browse Source

model.py: setting weight initialization to xavier uniform

master
rafaelvalle 6 years ago
parent
commit
12ab5ba89c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      model.py

+ 2
- 0
model.py View File

@ -459,6 +459,8 @@ class Tacotron2(nn.Module):
self.n_frames_per_step = hparams.n_frames_per_step
self.embedding = nn.Embedding(
hparams.n_symbols, hparams.symbols_embedding_dim)
torch.nn.init.xavier_uniform_(self.embedding.weight.data)
self.encoder = Encoder(hparams)
self.decoder = Decoder(hparams)
self.postnet = Postnet(hparams)

Loading…
Cancel
Save