diff --git a/paddle/fluid/operators/lod_reset_op.cc b/paddle/fluid/operators/lod_reset_op.cc index f71463a103a6df9d13fc317a7858f60e5fa5f135..c9d0515537123685bf9d4aa1cdafc737b8cd8d59 100644 --- a/paddle/fluid/operators/lod_reset_op.cc +++ b/paddle/fluid/operators/lod_reset_op.cc @@ -33,8 +33,7 @@ class LoDResetOp : public framework::OperatorWithKernel { "If Input(Y) not provided, the target lod should be " "specified by attribute `target_lod`."); } - else - { + else { ctx->ShareLoD( "Y", "Out"); }