From e46a94a4a2a8bb68be8f699cc067a95b5bc434f0 Mon Sep 17 00:00:00 2001 From: phlrain Date: Mon, 18 Mar 2019 09:44:07 +0000 Subject: [PATCH] fix lod_rest; test=develop --- paddle/fluid/operators/lod_reset_op.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paddle/fluid/operators/lod_reset_op.cc b/paddle/fluid/operators/lod_reset_op.cc index f71463a103a..c9d05155371 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"); } -- GitLab