From 823ab5e88714dffc6f7418d40605c7c447b4b199 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Tue, 2 Jul 2019 17:19:58 +0800 Subject: [PATCH] fix load attr error. test=develop (#18447) --- python/paddle/fluid/layers/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/layers/io.py b/python/paddle/fluid/layers/io.py index c79f788de7..f819625e08 100644 --- a/python/paddle/fluid/layers/io.py +++ b/python/paddle/fluid/layers/io.py @@ -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) -- GitLab