提交 f747cf55 编写于 作者: P phlrain

change set_program_set to load; test=develop

上级 39c14504
......@@ -59,11 +59,10 @@ def init_pretraining_params(exe,
pretraining_params_path,
main_program,
use_fp16=False):
assert os.path.exists(pretraining_params_path + ".params"
), "[%s] cann't be found." % (pretraining_params_path + ".params" )
assert os.path.exists(pretraining_params_path
), "[%s] cann't be found." % pretraining_params_path
program_state = fluid.load_program_state( pretraining_params_path )
fluid.set_program_state( main_program, program_state)
fluid.load( main_program, pretraining_params_path, exe)
print("Load pretraining parameters from {}.".format(
pretraining_params_path))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册