mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
bug fix
This commit is contained in:
1 parent
3f0993aebe
commit
006b1d3aaa
1 file changed
+1
-2
@@ -4,7 +4,7 @@ from torch import nn
|
||||
from torch.nn import functional as F
|
||||
|
||||
|
||||
class TorchSTFT(nn.Module): # pylint: disable=abstract-method
|
||||
class TorchSTFT():
|
||||
"""TODO: Merge this with audio.py"""
|
||||
def __init__(self,
|
||||
n_fft,
|
||||
@@ -34,7 +34,6 @@ class TorchSTFT(nn.Module): # pylint: disable=abstract-method
|
||||
if use_mel:
|
||||
self._build_mel_basis()
|
||||
|
||||
@torch.no_grad()
|
||||
def __call__(self, x):
|
||||
"""Compute spectrogram frames by torch based stft.
|
||||
|
||||
|
||||
Reference in new issue
Block a user