diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index 51b7f572c97e58a24654892ea0082671324dba50..ea3f4b7715bdee6d895e96dbc15c1691840ceaa1 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,