seorim0 / DCCRN-with-various-loss-functions

DCCRN with various loss functions
MIT License
91 stars 22 forks source link

Some questions about perceptual_transform func? #7

Closed zuowanbushiwo closed 2 years ago

zuowanbushiwo commented 2 years ago

Hi @seorim0 https://github.com/seorim0/DCCRN-with-various-loss-functions/blob/main/tools_for_loss.py#L206
Why use view here, should not be transpose? input x is (..., freq,time) and we need (..., n_mels, time) output, so (..., time, freq) dot (freq, n_mels) -> (..., n_mels, time)? thanks!

seorim0 commented 2 years ago

Hi. What you understand is correct. There is no particular reason to use a view.