mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
contiguous on data loader
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user