t Tensor
import torch.nn as nn

try:
    from asteroid_filterbanks.enc_dec import Encoder, Decoder
    from asteroid_filterbanks.transforms import to_torchaudio, from_torchaudio
    from asteroid_filterbanks import torch_stft_fb
except ImportError:
    pass


def make_filterbanks(n_fft=4096, n_hop=1024, center=False, sample_rate=44100.0, method=&#34;torch&#34;):
    window = nn.Parameter(torch.hann_window(n_fft), requires_grad=False)

    if method == &#34;torch&#34;:
        encoder = TorchSTFT(n_fft=n_fft