mirror of
https://github.com/malarinv/tacotron2
synced 2026-03-08 01:32:35 +00:00
model.py: setting weight initialization to xavier uniform
This commit is contained in:
2
model.py
2
model.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user