mirror of https://github.com/coqui-ai/TTS.git
bug fix
parent
59f8d246c9
commit
6b937d6059
2
train.py
2
train.py
|
@ -95,7 +95,7 @@ def train(model, criterion, criterion_st, data_loader, optimizer, epoch):
|
|||
optimizer.zero_grad()
|
||||
|
||||
stop_target = stop_target.view(c.batch_size, stop_target.size(1) // c.r, -1)
|
||||
stop_target = (stop_target.sum(2) > 0.0).float()
|
||||
stop_target = (stop_target.sum(2) > 0.0).float().unsqueeze(2)
|
||||
|
||||
# dispatch data to GPU
|
||||
if use_cuda:
|
||||
|
|
Loading…
Reference in New Issue