Refactor MVDR module (#2383)
Summary: - Use `apply_beamforming`, `rtf_evd`, `rtf_power`, `mvdr_weights_souden`, `mvdr_weights_rtf` methods under `torchaudio.functional` to replace the class methods. - Refactor docstrings in `PSD` and `MVDR`. - Put `_get_mvdr_vector` outside of `MVDR` class as it doesn't call self methods inside. - Since MVDR uses einsum for matrix operations, packing and unpacking batches are not necessary. It can be tested by the [batch_consistency_test](https://github.com/pytorch/audio/blob/main/test/torchaudio_unittest/transforms/batch_consistency_test.py#L202). Removed it from the code. Pull Request resolved: https://github.com/pytorch/audio/pull/2383 Reviewed By: carolineechen, mthrok Differential Revision: D36338373 Pulled By: nateanl fbshipit-source-id: a48a6ae2825657e5967a19656245596cdf037c5f
Showing
This diff is collapsed.
Please register or sign in to comment