提交 5452beac 编写于 作者: S SunAhong1993

fix

上级 8ed287bf
...@@ -493,7 +493,7 @@ class PaddleGraph(object): ...@@ -493,7 +493,7 @@ class PaddleGraph(object):
gen_codes(["paddle.disable_static()", gen_codes(["paddle.disable_static()",
"params, _ = fluid.load_dygraph('{}/model')".format(code_dir), "params, _ = fluid.load_dygraph('{}/model')".format(code_dir),
"model = {}()".format(self.name), "model = {}()".format(self.name),
"model.set_dict(params, use_structured_name={})".format(use_structured_name),, "model.set_dict(params, use_structured_name={})".format(use_structured_name),
"model.eval()", "model.eval()",
"out = model({})".format(input_data_name), "out = model({})".format(input_data_name),
"return out"], indent=1)) "return out"], indent=1))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册