We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6de08b5 commit 9a81926Copy full SHA for 9a81926
paddle/fluid/framework/op_desc.cc
@@ -81,10 +81,10 @@ class CompileTimeInferShapeContext : public InferShapeContext {
81
"The %s[%d] is @EMPTY@", out, j);
82
auto *in_var = block_.FindVarRecursive(Inputs(in)[i]);
83
auto *out_var = block_.FindVarRecursive(Outputs(out)[j]);
84
- PADDLE_ENFORCE_EQ(in_var->GetType(), proto::VarType::LOD_TENSOR,
85
- "The %d-th output of Output(%s) must be LoDTensor.", j,
86
- out);
87
-
+ if (in_var->GetType() != proto::VarType::LOD_TENSOR) {
+ VLOG(3) << "input " << in << " is not LodTensor";
+ return;
+ }
88
out_var->SetLoDLevel(in_var->GetLoDLevel());
89
}
90
0 commit comments