mirror of https://github.com/coqui-ai/TTS.git
contiguous on data loader
parent
660f8c7b66
commit
3a99ee9492
|
@ -131,8 +131,8 @@ class MyDataset(Dataset):
|
|||
# convert things to pytorch
|
||||
text_lenghts = torch.LongTensor(text_lenghts)
|
||||
text = torch.LongTensor(text)
|
||||
linear = torch.FloatTensor(linear)
|
||||
mel = torch.FloatTensor(mel)
|
||||
linear = torch.FloatTensor(linear).contiguous()
|
||||
mel = torch.FloatTensor(mel).contiguous()
|
||||
mel_lengths = torch.LongTensor(mel_lengths)
|
||||
stop_targets = torch.FloatTensor(stop_targets)
|
||||
|
||||
|
|
Loading…
Reference in New Issue