fix tensor device type incompatibility

This commit is contained in:
EmreOzkose 2021-11-04 10:09:13 +03:00
parent b3a90b1dcf
commit 4544a4e9f1

View File

@ -69,7 +69,7 @@ class OfflineFeature(nn.Module):
for w in waves
]
strided = [self.convert_samples_to_frames(w) for w in waves]
strided = [self.convert_samples_to_frames(w.to(self.opts.device)) for w in waves]
strided = torch.cat(strided, dim=0)
features = self.compute(strided, vtln_warp)