From 752bab2719e7326ecade527f457d2c163dcaf440 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Wed, 11 Oct 2017 13:51:43 -0700 Subject: [PATCH] Fix bugs --- paddle/framework/op_desc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/framework/op_desc.cc b/paddle/framework/op_desc.cc index a217cdd20..a5d515bbc 100644 --- a/paddle/framework/op_desc.cc +++ b/paddle/framework/op_desc.cc @@ -103,6 +103,7 @@ void OpDescBind::SetAttr(const std::string &name, const Attribute &v) { void OpDescBind::SetBlockAttr(const std::string &name, BlockDescBind &block) { BlockDesc *desc = block.RawPtr(); this->attrs_[name] = desc; + need_update_ = true; } void OpDescBind::SetAttrMap( -- GitLab