mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 17:42:21 +00:00
add missing comma
This commit is contained in:
parent
2461a537dd
commit
e7d3c003ec
@ -548,7 +548,7 @@ def main():
|
|||||||
# torch.save(avg_checkpoint, filename)
|
# torch.save(avg_checkpoint, filename)
|
||||||
else:
|
else:
|
||||||
checkpoint = torch.load(
|
checkpoint = torch.load(
|
||||||
f"{params.exp_dir}/epoch-{params.epoch}/pytorch_model.bin", weights_only=False
|
f"{params.exp_dir}/epoch-{params.epoch}/pytorch_model.bin", weights_only=False,
|
||||||
map_location="cpu",
|
map_location="cpu",
|
||||||
)
|
)
|
||||||
model.load_state_dict(checkpoint, strict=False)
|
model.load_state_dict(checkpoint, strict=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user