未验证 提交 e7f0aa38 编写于 作者: C caozhou 提交者: GitHub

fix dtype bug (#41802)

上级 a4f3c0e9
......@@ -678,8 +678,7 @@ def assign(input, output=None):
raise ValueError("The size of input is too big. Please consider "
"saving it to file and 'load_op' to load it")
if output is None:
output = helper.create_variable_for_type_inference(
dtype=input.dtype)
output = helper.create_variable_for_type_inference(dtype=dtype)
helper.append_op(
type='assign_value',
outputs={'Out': [output]},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册