Minor fixes

This commit is contained in:
pkufool 2022-01-07 20:25:57 +08:00
parent bfd331c27e
commit 7dae4a11fd
2 changed files with 5 additions and 1 deletions

View File

@ -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,

View File

@ -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]