mirror of
https://github.com/wassname/TTS.git
synced 2026-10-26 12:20:32 +08:00
bug fix
This commit is contained in:
1 parent
bdcd306222
commit
9e30f4aae8
1 file changed
+1
-1
@@ -178,7 +178,7 @@ def train(model, criterion, criterion_st, optimizer, optimizer_st, scheduler,
|
||||
postnet_loss = reduce_tensor(postnet_loss.data, num_gpus)
|
||||
decoder_loss = reduce_tensor(decoder_loss.data, num_gpus)
|
||||
loss = reduce_tensor(loss.data, num_gpus)
|
||||
stop_loss = reduce_tensor(stop_loss.data, num_gpus)
|
||||
stop_loss = reduce_tensor(stop_loss.data, num_gpus) if c.stopnet else stop_loss
|
||||
|
||||
if args.rank == 0:
|
||||
avg_postnet_loss += float(postnet_loss.item())
|
||||
|
||||
Reference in new issue
Block a user