contiguous on data loader

pull/10/head
Eren Golge 2018-11-20 14:56:19 +01:00
parent 660f8c7b66
commit 3a99ee9492
1 changed files with 2 additions and 2 deletions

View File

@ -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)