From 0895d1d3cbabe8181b5cbff2449c945e854c50bd Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Thu, 21 Dec 2017 16:24:19 +0800 Subject: [PATCH] Fix a error --- paddle/framework/backward.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/framework/backward.cc b/paddle/framework/backward.cc index f011407f495..222aee5974c 100644 --- a/paddle/framework/backward.cc +++ b/paddle/framework/backward.cc @@ -394,8 +394,8 @@ std::vector> MakeOpGrad( std::string new_name = prefix + kZeroVarSuffix; desc->Rename(in_name, new_name); std::unique_ptr fill_zeros_op( - new OpDescBind("fill_zeros_like", {{"X", {prefix}}}, - {{"Out", {new_name}}}, AttributeMap{})); + new OpDesc("fill_zeros_like", {{"X", {prefix}}}, + {{"Out", {new_name}}}, AttributeMap{})); pending_fill_zeros_ops.push_back(std::move(fill_zeros_op)); } } -- GitLab