Skip to content

Commit e56058f

Browse files
committed
Merge pull request #16259 from phlrain/fix_lod_reset
Fix lod reset
1 parent e61d724 commit e56058f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

paddle/fluid/operators/lod_reset_op.cc

+3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ class LoDResetOp : public framework::OperatorWithKernel {
3232
PADDLE_ENFORCE_GT(level0.size(), 1,
3333
"If Input(Y) not provided, the target lod should be "
3434
"specified by attribute `target_lod`.");
35+
} else {
36+
ctx->ShareLoD("Y", "Out");
3537
}
38+
3639
ctx->SetOutputDim("Out", ctx->GetInputDim("X"));
3740
}
3841

0 commit comments

Comments
 (0)