Fix style issues.

This commit is contained in:
Fangjun Kuang 2021-09-07 16:57:55 +08:00
parent 7a83dd1b3c
commit 4d06ca4d45
12 changed files with 20 additions and 25 deletions

View File

@ -16,7 +16,6 @@
import sphinx_rtd_theme
# -- Project information -----------------------------------------------------
project = "icefall"

View File

@ -15,4 +15,3 @@ We may add recipes for other tasks as well in the future.
yesno
librispeech

View File

@ -43,4 +43,3 @@ We searched the lm_score_scale for best results, the scales that produced the WE
|--|--|
|test-clean|0.8|
|test-other|0.9|

View File

@ -16,9 +16,8 @@
# limitations under the License.
from subsampling import Conv2dSubsampling
from subsampling import VggSubsampling
import torch
from subsampling import Conv2dSubsampling, VggSubsampling
def test_conv2d_subsampling():

View File

@ -17,17 +17,16 @@
import torch
from torch.nn.utils.rnn import pad_sequence
from transformer import (
Transformer,
add_eos,
add_sos,
decoder_padding_mask,
encoder_padding_mask,
generate_square_subsequent_mask,
decoder_padding_mask,
add_sos,
add_eos,
)
from torch.nn.utils.rnn import pad_sequence
def test_encoder_padding_mask():
supervisions = {

View File

@ -26,7 +26,6 @@ from pathlib import Path
from typing import Dict, Iterable, List, TextIO, Tuple, Union
import k2
import k2.ragged as k2r
import kaldialign
import torch
import torch.distributed as dist

View File

@ -16,9 +16,10 @@
# limitations under the License.
from pathlib import Path
from icefall.bpe_graph_compiler import BpeCtcTrainingGraphCompiler
from icefall.lexicon import BpeLexicon
from pathlib import Path
def test():