| | |
| | | from funasr.layers.sinc_conv import SincConv |
| | | import humanfriendly |
| | | import torch |
| | | from typeguard import check_argument_types |
| | | from typing import Optional |
| | | from typing import Tuple |
| | | from typing import Union |
| | |
| | | windowing_type: Choice of windowing function. |
| | | scale_type: Choice of filter-bank initialization scale. |
| | | """ |
| | | assert check_argument_types() |
| | | super().__init__() |
| | | if isinstance(fs, str): |
| | | fs = humanfriendly.parse_size(fs) |
| | |
| | | dropout_probability: Dropout probability. |
| | | shape (tuple, list): Shape of input tensors. |
| | | """ |
| | | assert check_argument_types() |
| | | super().__init__() |
| | | if shape is None: |
| | | shape = (0, 2, 1) |