未验证 提交 823ab5e8 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix load attr error. test=develop (#18447)

上级 3123d187
......@@ -1286,4 +1286,4 @@ def load(out, file_path, load_as_fp16=None):
attrs = {"file_path": file_path}
if load_as_fp16 is not None:
attrs['load_as_fp16'] = load_as_fp16
helper.append_op(type="load", inputs={}, output={"Out": out}, args=attrs)
helper.append_op(type="load", inputs={}, output={"Out": out}, attrs=attrs)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册