From 9a819265eb2550efa347cafe6ab9faac146a075b Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Thu, 18 Oct 2018 21:06:00 +0800 Subject: [PATCH] fix test=develop --- paddle/fluid/framework/op_desc.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/framework/op_desc.cc b/paddle/fluid/framework/op_desc.cc index 5e1f8fece2b..121e00b1a3d 100644 --- a/paddle/fluid/framework/op_desc.cc +++ b/paddle/fluid/framework/op_desc.cc @@ -81,10 +81,10 @@ class CompileTimeInferShapeContext : public InferShapeContext { "The %s[%d] is @EMPTY@", out, j); auto *in_var = block_.FindVarRecursive(Inputs(in)[i]); auto *out_var = block_.FindVarRecursive(Outputs(out)[j]); - PADDLE_ENFORCE_EQ(in_var->GetType(), proto::VarType::LOD_TENSOR, - "The %d-th output of Output(%s) must be LoDTensor.", j, - out); - + if (in_var->GetType() != proto::VarType::LOD_TENSOR) { + VLOG(3) << "input " << in << " is not LodTensor"; + return; + } out_var->SetLoDLevel(in_var->GetLoDLevel()); } -- GitLab