Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPS: Simple use of RoomImpulseResponse gives TypeError: unsupported operand type(s) for *: 'Tensor' and 'Tensor' #169

Open
turian opened this issue Dec 23, 2023 · 0 comments

Comments

@turian
Copy link

turian commented Dec 23, 2023

I am adding augmentations and particularly want room impulse response:

ApplyImpulseResponse(
                            p=0.5, ir_paths="room-impulse-responses/MIT_Survey/"
                        )

But adding it gives:

  File "/opt/miniconda3/lib/python3.9/site-packages/torch_audiomentations/augmentations/impulse_response.py", line 114, in apply_transform
    convolved_samples = convolve(
  File "/opt/miniconda3/lib/python3.9/site-packages/torch_audiomentations/utils/convolution.py", line 77, in convolve
    f_result = f_signal * f_kernel
TypeError: unsupported operand type(s) for *: 'Tensor' and 'Tensor'

This is on MPS. On CPU it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant