| | |
| | | from typing import Union |
| | | |
| | | import torch |
| | | from torch_complex.tensor import ComplexTensor |
| | | from typeguard import check_argument_types |
| | | |
| | | try: |
| | | from torch_complex.tensor import ComplexTensor |
| | | except: |
| | | print("Please install torch_complex firstly") |
| | | from funasr.modules.nets_utils import make_pad_mask |
| | | from funasr.layers.complex_utils import is_complex |
| | | from funasr.layers.inversible_interface import InversibleInterface |
| | |
| | | normalized: bool = False, |
| | | onesided: bool = True, |
| | | ): |
| | | assert check_argument_types() |
| | | super().__init__() |
| | | self.n_fft = n_fft |
| | | if win_length is None: |