Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Annotate MelSpectrogram power as float only (pytorch#1572)
Mel scale frequency is in general defined/used on power spectrogram and as far as we know, it is not defined for raw (complex value) spectrogram. When `power=None` (when intermediate spectrogram is complex-valued), `MelSpectrogram` fails because of extra dimension (when using pseudo complex) or type mismatch between `torch.float` and torch.cfloat` (when using native complex). This commit changes type annotation so that power is only float.
- Loading branch information