We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f152b78 commit f3e0ad8Copy full SHA for f3e0ad8
torchaudio_augmentations/augmentations/delay.py
@@ -28,7 +28,7 @@ def forward(self, audio):
28
)
29
30
offset = self.calc_offset(ms)
31
- beginning = torch.zeros(audio.shape[0], offset)
+ beginning = torch.zeros(audio.shape[0], offset).to(audio.device)
32
end = audio[:, :-offset]
33
delayed_signal = torch.cat((beginning, end), dim=1)
34
delayed_signal = delayed_signal * self.volume_factor
0 commit comments