Skip to content

Commit 1d7ce0e

Browse files
authored
Merge pull request #1060 from Jackwaterveg/fix_bug
fix the load checkpoint
2 parents 2ea3d67 + d0bf506 commit 1d7ce0e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

paddlespeech/s2t/utils/checkpoint.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ def load_parameters(self,
9494
"""
9595
configs = {}
9696

97-
if len(checkpoint_path) == 0 or checkpoint_path == "None":
98-
checkpoint_path = None
99-
100-
if checkpoint_path is not None:
97+
if checkpoint_path:
10198
pass
10299
elif checkpoint_dir is not None and record_file is not None:
103100
# load checkpint from record file

0 commit comments

Comments
 (0)