Skip to content

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

@turian

Description

@turian

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions