Fix style issues.

This commit is contained in:
Fangjun Kuang 2021-08-23 12:55:02 +08:00
parent 27a0c80af8
commit 7b267e8be6
4 changed files with 5 additions and 6 deletions

View File

@ -4,7 +4,7 @@ statistics=true
max-line-length = 80
per-file-ignores =
# line too long
egs/librispeech/ASR/conformer_ctc/conformer.py: E501,
egs/librispeech/ASR/*/conformer.py: E501,
exclude =
.git,

View File

@ -161,7 +161,7 @@ def get_params() -> AttributeDict:
"att_rate": 0,
"attention_dim": 512,
"nhead": 8,
"num_decoder_layers": 6,
"num_decoder_layers": 0,
"is_espnet_structure": True,
"use_feat_batchnorm": True,
"lr_factor": 5.0,

View File

@ -32,10 +32,9 @@ Then the output is
SPN z o o w o r l d SPN
"""
from pathlib import Path
from typing import Dict
import argparse
from pathlib import Path
from typing import Dict, List
from icefall.lexicon import read_lexicon

View File

@ -1,4 +1,4 @@
from typing import List, Union
from typing import List
import k2
import torch