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 2055c16 commit 87be315Copy full SHA for 87be315
paddle/fluid/operators/split_lod_tensor_op.cc
@@ -157,7 +157,9 @@ class SplitLoDTensorInferShape : public framework::InferShapeBase {
157
158
auto mask_dim = context->GetInputDim("Mask");
159
PADDLE_ENFORCE_EQ(mask_dim.size(), 2);
160
- PADDLE_ENFORCE_EQ(mask_dim[1], 1);
+ if (context->IsRuntime()) {
161
+ PADDLE_ENFORCE_EQ(mask_dim[1], 1);
162
+ }
163
164
context->SetOutputDim("OutTrue", context->GetInputDim("X"));
165
context->SetOutputDim("OutFalse", context->GetInputDim("X"));
0 commit comments