mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +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)
|
||||
else:
|
||||
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",
|
||||
)
|
||||
model.load_state_dict(checkpoint, strict=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user