fgnt / nara_wpe

Different implementations of "Weighted Prediction Error" for speech dereverberation
MIT License
494 stars 164 forks source link

torch support with torch_complex #47

Closed boeddeker closed 2 years ago

boeddeker commented 4 years ago

Torch has only partial support for complex numbers (1.6.0.dev20200623). torch_complex implements complex operations as real operations. This PR adds support for torch_complex.

One drawback: It looks like the matrix inverse in torch_complex has some stability problems. Therefore, the implementation has an option to use torch.solve as alternative (Strangely torch.solve is implemented for complex numbers, while torch.matmul is not).

boeddeker commented 2 years ago

Deprecated. Torch has now native support and nara_wpe an implementation with native complex numbers.