From dc19c6f2fcdc3dd464a3813bbdb07a35e5997eb9 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Mon, 15 Apr 2019 19:25:53 +0800 Subject: [PATCH] Fix attrs test=release/1.4 --- python/paddle/fluid/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index efba771f27..a0a2a79371 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -938,7 +938,7 @@ class Operator(object): self.iop = core.OpBase(type) self.previous_ops = [] - self.attrs = attrs + self.attrs = attrs if attrs else {} else: self.block = block self.desc = desc -- GitLab