mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 10:16:14 +00:00
Minor fixes
This commit is contained in:
parent
bfd331c27e
commit
7dae4a11fd
2
.flake8
2
.flake8
@ -6,6 +6,8 @@ per-file-ignores =
|
||||
# line too long
|
||||
egs/librispeech/ASR/*/conformer.py: E501,
|
||||
egs/aishell/ASR/*/conformer.py: E501,
|
||||
# invalid escape sequence (cause by tex formular), W605
|
||||
icefall/utils.py: E501, W605
|
||||
|
||||
exclude =
|
||||
.git,
|
||||
|
@ -25,13 +25,15 @@ from collections import defaultdict
|
||||
from contextlib import contextmanager
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Dict, Iterable, List, TextIO, Tuple, Union
|
||||
from typing import Dict, Iterable, List, TextIO, Optional, Tuple, Union
|
||||
|
||||
import k2
|
||||
import k2.version
|
||||
import kaldialign
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
import torch.distributed as dist
|
||||
from torch.cuda.amp import GradScaler
|
||||
from torch.utils.tensorboard import SummaryWriter
|
||||
|
||||
Pathlike = Union[str, Path]
|
||||
|
Loading…
x
Reference in New Issue
Block a user