mirror of https://github.com/coqui-ai/TTS.git
carry to cuda
This commit is contained in:
parent
e1f7da5cbe
commit
318c26c08c
3
train.py
3
train.py
|
@ -100,6 +100,8 @@ def train(model, criterion, criterion_st, data_loader, optimizer, epoch):
|
|||
mel_spec = mel_spec.cuda()
|
||||
mel_lengths = mel_lengths.cuda()
|
||||
linear_spec = linear_spec.cuda()
|
||||
stop_target = stop_target.cuda()
|
||||
|
||||
|
||||
# create attention mask
|
||||
if c.mk > 0.0:
|
||||
|
@ -241,6 +243,7 @@ def evaluate(model, criterion, criterion_st, data_loader, current_step):
|
|||
mel_spec = mel_spec.cuda()
|
||||
mel_lengths = mel_lengths.cuda()
|
||||
linear_spec = linear_spec.cuda()
|
||||
stop_target = stop_target.cuda()
|
||||
|
||||
# forward pass
|
||||
mel_output, linear_output, alignments, stop_tokens =\
|
||||
|
|
Loading…
Reference in New Issue