Update save_load.py

release/1.1
shaohua.zhang 5 years ago committed by GitHub
parent e0f3bcb494
commit a4abf1322c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -115,8 +115,8 @@ def init_model(config, program, exe):
logger.info("Finish initing model from {}".format(path))
else:
raise ValueError(
"Model checkpoints {} does not exists,"
"check if you lost the file prefix .".format(checkpoints + '.pdparams'))
"Model checkpoints {} does not exists,"
"check if you lost the file prefix.".format(checkpoints + '.pdparams'))
pretrain_weights = config['Global'].get('pretrain_weights')
if pretrain_weights:

Loading…
Cancel
Save