This commit is contained in:
Eren Gölge 2021-04-08 13:17:45 +02:00
parent 3f0993aebe
commit 006b1d3aaa
1 changed files with 1 additions and 2 deletions

View File

@ -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.