Modify icefall/__init__.py and .flake8.

This commit is contained in:
yaozengwei 2022-04-02 10:34:06 +08:00
parent 00baebd46e
commit bc9a82b518
2 changed files with 26 additions and 8 deletions

View File

@ -13,4 +13,5 @@ per-file-ignores =
exclude =
.git,
**/data/**,
icefall/shared/make_kn_lm.py
icefall/shared/make_kn_lm.py,
icefall/__init__.py

View File

@ -1,7 +1,24 @@
from .utils import AttributeDict, MetricsTracker
from .utils import add_eos, add_sos, concat, encode_supervisions, \
get_alignments, get_executor, get_texts, l1_norm, l2_norm, linf_norm, \
load_alignments, make_pad_mask, measure_gradient_norms, \
measure_weight_norms, optim_step_and_measure_param_change, \
save_alignments, setup_logger, store_transcripts, str2bool, \
write_error_stats
from .utils import (
AttributeDict,
MetricsTracker,
add_eos,
add_sos,
concat,
encode_supervisions,
get_alignments,
get_executor,
get_texts,
l1_norm,
l2_norm,
linf_norm,
load_alignments,
make_pad_mask,
measure_gradient_norms,
measure_weight_norms,
optim_step_and_measure_param_change,
save_alignments,
setup_logger,
store_transcripts,
str2bool,
write_error_stats,
)