From 96c54cd9b1e39076142b1d1c37eca251afc5f81b Mon Sep 17 00:00:00 2001 From: Hongyu Liu <43953930+phlrain@users.noreply.github.com> Date: Mon, 18 Mar 2019 17:58:20 +0800 Subject: [PATCH] Update lod_reset_op.cc --- 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 c9d05155371..068868fd36c 100644 --- a/paddle/fluid/operators/lod_reset_op.cc +++ b/paddle/fluid/operators/lod_reset_op.cc @@ -32,8 +32,7 @@ class LoDResetOp : public framework::OperatorWithKernel { PADDLE_ENFORCE_GT(level0.size(), 1, "If Input(Y) not provided, the target lod should be " "specified by attribute `target_lod`."); - } - else { + } else { ctx->ShareLoD( "Y", "Out"); } -- GitLab