Closed ahikaml closed 2 years ago
Hi, It happens in band_pass_filter.py _bandwidthdist is allocated on the CPU (ln 101-103) while _centerdist (ln96-98) is allocated on the GPU. I think that it can be solved by using the device info of _selectedsamples for _bandwidthdist .
Ok, yeah, that should be fixed. I'll see if I can patch it real quick
https://github.com/asteroid-team/torch-audiomentations/pull/138
Hi, It happens in band_pass_filter.py _bandwidthdist is allocated on the CPU (ln 101-103) while _centerdist (ln96-98) is allocated on the GPU. I think that it can be solved by using the device info of _selectedsamples for _bandwidthdist .