From 4e80e04f230cdd1c8e14eabfd204329b33867f8c Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Wed, 26 Dec 2018 19:22:32 +0800 Subject: [PATCH] fix test=develop --- paddle/fluid/framework/operator.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 51b7f572c9..ea3f4b7715 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -16,7 +16,6 @@ limitations under the License. */ #include #include - #include "paddle/fluid/framework/data_transform.h" #include "paddle/fluid/framework/executor.h" #include "paddle/fluid/framework/lod_tensor.h" @@ -1104,8 +1103,7 @@ proto::VarType::Type OperatorWithKernel::IndicateDataType( t = &(var->Get().value()); } if (t != nullptr) { - PADDLE_ENFORCE(t->IsInitialized(), "Input %s is not initialized", - ipt_name); + PADDLE_ENFORCE(t->IsInitialized(), "Input is not initialized"); int tmp = static_cast(t->type()); PADDLE_ENFORCE( tmp == data_type || data_type == -1, -- GitLab