Skip to content

Fix TypeError: 'torch.device' object is not callable #2

@leminhnguyen

Description

@leminhnguyen

As the issue #1, the line 164 in stft.py was changed to

window_sum = window_sum.to(inverse_transform.device()) if magnitude.is_cuda else window_sum

But inverse_transform.device() will raise the exception mentioned in the title. So it can be changed to inverse_transform.device to fix the problem.

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