mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 17:42:21 +00:00
Fix typo (#681)
* Update add_alignment_librispeech.py * Update scaling_converter.py
This commit is contained in:
parent
62302259d0
commit
952a7b3fcc
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user