* Update add_alignment_librispeech.py

* Update scaling_converter.py
This commit is contained in:
Tiance Wang 2022-11-15 10:45:48 +08:00 committed by GitHub
parent 62302259d0
commit 952a7b3fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ def add_alignment(
ali = alignments[origin_id]
else:
logging.info(
f"Warning: {origin_id} does not has alignment."
f"Warning: {origin_id} does not have alignment."
)
ali = []
subcut.alignment = {"word": ali}

View File

@ -87,7 +87,7 @@ def scaled_linear_to_linear(scaled_linear: ScaledLinear) -> nn.Linear:
in_features=scaled_linear.in_features,
out_features=scaled_linear.out_features,
bias=True, # otherwise, it throws errors when converting to PNNX format
# device=weight.device, # Pytorch version before v1.9.0 does not has
# device=weight.device, # Pytorch version before v1.9.0 does not have
# this argument. Comment out for now, we will
# see if it will raise error for versions
# after v1.9.0